Carlos E. R. wrote:
On Wednesday, 2013-04-03 at 09:29 +0200, Per Jessen wrote:
Dunno about mc, but won't this do:
find / -iname <template for bash-scripts> -print0 | \ xargs -r -0 grep <a recognizable string>
What would the template be? I intended to use "file" output.
cer@Telcontar:~> file bin/0_script_constructs bin/0_script_constructs: Bourne-Again shell script, UTF-8 Unicode text cer@Telcontar:~>
Ie, locate all files of that type, then grep on those.
Hmm, how about this: find / -type f | xargs file | awk '/Bourne-Again/{print $1}' | \ tr -d ':' | xargs -r grep <a recognizable string> -- Per Jessen, Zürich (5.5°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org