I have a list of lines like
/usr/lib/i386-linux-gnu/libavfilter.so
/usr/lib/i386-linux-gnu/libavfilter.so.3
/usr/lib/i386-linux-gnu/libavfilter.so.3.42.103
/usr/lib/i386-linux-gnu/i686/cmov/libavfilter.so
/usr/lib/i386-linux-gnu/i686/cmov/libavfilter.so.3
/usr/lib/i386-linux-gnu/i686/cmov/libavfilter.so.3.42.103
/usr/local/lib/libavfilter.so
/usr/local/lib/libavfilter.so.4
/usr/local/lib/libavfilter.so.4.4.100
How can I remove those files altogether instead of removing them one by one like
rm /usr/lib/i386-linux-gnu/libavfilter.so
rm /usr/lib/i386-linux-gnu/libavfilter.so.3
rm /usr/lib/i386-linux-gnu/libavfilter.so.3.42.103
rm /usr/lib/i386-linux-gnu/i686/cmov/libavfilter.so
rm /usr/lib/i386-linux-gnu/i686/cmov/libavfilter.so.3
rm /usr/lib/i386-linux-gnu/i686/cmov/libavfilter.so.3.42.103
rm /usr/local/lib/libavfilter.so
rm /usr/local/lib/libavfilter.so.4
rm /usr/local/lib/libavfilter.so.4.4.100
?
WARNING! Don't apply below commands without checking output at first
locate -b libavfilter.soI am trying to removeffmpegthat I manually installed earlier and I removedffmpegdirectory so I can not uninstall it viamake uninstall– kenn Jul 09 '14 at 17:43xargs. There are probably some people who would suggest using the-0argument for bothlocateandxargs(I'll add a snippet to the answer) but I'm not sure it's really necessary here. – Oli Jul 09 '14 at 17:46sudo make uninstallmight be the best idea. The wider problem you're running into is largely down the naming conflict between ffmpeg and its fork libav. Not sure there's a good way for them to coexist yet. – Oli Jul 09 '14 at 18:13catand piping the output to xargs, it is simpler to just runxargs rm < fileand skip the cat process. – psusi Jul 09 '14 at 21:34