Open pwFoo opened 6 years ago
sift --no-filename --no-color MODALIAS /sys/bus/*/devices/*/uevent
is the equivalent extraction
Thank's! Seems to be easy to include the cut command in sift.
sift '(MODALIAS=)(.*)' --no-filename --no-color --replace '$2' /sys/bus/*/devices/*/uevent
But how to remove empty lines?
Could you help me to replace that bash oneliner with golang / sift? To HW detection and load needed modules during boot / initialization.
I'm new with golang and search a replacement
The modprobe part can be ignored.