Posted on

Download e-book for iPad: Advanced Bash scripting guide Rev1.4 by Cooper M.

| # is 0000000 1198195154\n # # # # # # # # # # sed begins reading characters: 0000000 1198195154\n. Here it finds a newline character, so it is ready to process the first line (0000000 1198195154).

Bin/bash # lookup: Does a dictionary lookup on each word in a data file. data # Data file from which to read words to test. = end ] # Last word in data file. do read word # From data file, because of redirection at end of loop. look $word > /dev/null # Don't want to display lines in dictionary file. lookup=$? # Exit status of 'look' command. " fi done <"$file" # Redirects stdin to $file, so "reads" come from there. html (10 of 19) [7/15/2002 6:33:48 PM] Text Processing Commands echo exit 0 # ---------------------------------------------------------------# Code below line will not execute because of "exit" command above.

Download PDF sample

Advanced Bash scripting guide Rev1.4 by Cooper M.


by Jason
4.5

Rated 4.11 of 5 – based on 3 votes