[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ProgSoc] cat grep
grep -H 'text-im-trying-to-find' *
It's nice, but doesn't contain enough extraneous pipes. Here's a more
Unixey version:
ls | grep -v ^$ | sed 's/^/"/' | sed 's/$/"/' | xargs grep text
And here's one with a few more cats, because I love animals:
ls | cat |grep -v ^$ | cat | sed 's/^/"/' | cat | sed 's/$/"/' | cat |
xargs grep text | cat
Got to keep those modern CPUs busy ;)
-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@xxxxxxxxxxxxxxxxxxx
If you are having trouble, ask owner-progsoc@xxxxxxxxxxxxxxxxxx for help.