The hard copy was way better than reading man pages on 80x24 monochrome terminals. But the disadvantage of learning so much early on was that I rarely used man commands to look them up, and didn't discover new additions. So there was an email discussion going on at work on a build issue, and the sys admin mentioned a command along the lines of this:
find dir -name '*.foo' printf "mkdir -p ../../target/%h ; cp %p ../../other-dir/%h\n" | shNext time I'm about to write a command like
for i in `find` ; doI'm going to try using the printf ... | sh combination instead. Not on OS X, you say? Pity.
...
done
No comments:
Post a Comment