Carlos E. R. said the following on 04/03/2013 08:39 AM:
On Wednesday, 2013-04-03 at 14:13 +0200, Per Jessen wrote:
Carlos E. R. wrote:
Hmm, how about this:
find / -type f | xargs file | awk '/Bourne-Again/{print $1}' | \ tr -d ':' | xargs -r grep <a recognizable string>
Interesting. Let's try:
cer@Telcontar:~> find bin/* -type f | xargs file | awk '/Bourne-Again/{print $1}' tr -d ':' | xargs -r grep "fdisk" awk: fatal: cannot open file `tr' for reading (No such file or directory) cer@Telcontar:~> which tr /usr/bin/tr cer@Telcontar:~> find bin/* -type f | xargs file | awk '/Bourne-Again/{print $1}' /usr/bin/tr -d ':' | xargs -r grep "fdisk" awk: cmd. line:1: fatal: cannot open file `-d' for reading (No such file or directory) cer@Telcontar:~>
I'm not familiar with awk, so I don't know what is wrong above :-?
There's a TYPO There's a missing "|" try find bin/* -type f | xargs file | \ awk '/Bourne-Again/{print $1}' |\ tr -d ':' | xargs -r grep "fdisk" If you look at the original - was it Per's ? - you'll see that the "|" is there -- If we believe absurdities, we shall commit atrocities. -- Voltaire -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org