You need to enable JavaScript to view more than 15 articles by this author.
Using Standard Input and Output
Publish Date: Feb. 24, 2000
A quick review of basic redirection techniques used by every Unix guru.
Context diffs
Publish Date: Feb. 24, 2000
Context diffs show the lines around changes in similar files.
Change Many Files by Editing Just One
Publish Date: Feb. 24, 2000
Use ed and diff to edit mulitple files.
Standard Input to a for Loop
Publish Date: Feb. 10, 2000
A for loop can be used to step through a list of arguments from standard input. Find out how in this excerpt from Unix Power Tools, 2nd Edition .
Making a for Loop with Multiple Variables
Publish Date: Feb. 10, 2000
Got more than one variable you want to use in your for loop? Find out how in this excerpt from
Unix Power Tools, 2nd Edition .
Handling Command-Line Arguments with a for Loop
Publish Date: Feb. 10, 2000
Need a shell script that can step through its command line arguments one by one? Read how to do it with a for loop in this excerpt from
Unix Power Tools, 2nd Edition .
Trapping Exits Caused by Interrupts
Publish Date: Feb. 10, 2000
If your shell script is terminated prematurely it could get messy. Learn how to trap those unruly interrupts in this excerpt from Unix Power Tools, 2nd Edition .
The exec Command
Publish Date: Feb. 10, 2000
There is more than one use for exec , learn a couple of new ones in this excerpt from Unix Power Tools, 2nd Edition .
Copying Directory Trees with cp -r
Publish Date: Feb. 3, 2000
Want to recursively copy everything under a given directory? Don't get caught by the gotcha's. Learn about cp -r in this excerpt from Unix Power Tools, 2nd Edition .
Copying Directory Trees with (tar | tar)
Publish Date: Feb. 3, 2000
Not just for tape archives, tar can overcome several of the pitfalls of using cp -r. Find out how in this excerpt from Unix Power Tools, 2nd Edition .
Telling tar Which Files to Exclude or Include
Publish Date: Feb. 3, 2000
Sometimes you don't want to tar just everything in a directory. Or maybe you want to include some subdirectories and exclude others. Find out how in this excerpt from Unix Power Tools, 2nd Edition .
Handle Too-Long Command Lines with xargs
Publish Date: Feb. 3, 2000
That command line getting too long? Conquer it with one of the tools that makes Unix "weird and wonderful" in this excerpt from Unix Power Tools, 2nd Edition .
xargs: Problems with Spaces and Newlines
Publish Date: Feb. 3, 2000
Gnu's xargs patches up a sticky problem in the original - it choked on filenames with spaces or newlines. Find out how to take advantage of that patch in this excerpt from Unix Power Tools, 2nd Edition .
Build Strings with {�}
Publish Date: Jan. 27, 2000
Save typing by expanding strings at the shell prompt. Learn hot to use the {} pattern-expansion characters in this excerpt from Unix Power Tools, 2nd
Edition .
What Can You Do with an Empty File?
Publish Date: Jan. 27, 2000
There are more uses for /dev/null than you might have imagined. Learn four of them in this excerpt from Unix Power Tools, 2nd Edition .