Unix Shell Programming Third Edition phần 1 doc

Unix Shell Programming Third Edition phần 1 doc

Unix Shell Programming Third Edition phần 1 doc

... 4 -rwxr-xr-x 1 pat DP3822 13 58 Jan 15 11 : 01 lcat -rwxr-xr-x 1 pat DP3822 504 Apr 21 18:30 xtr $ ln -s /users/steve/wb ./symwb Symbolic link to wb $ ls -l total 5 -rwxr-xr-x 1 pat DP3822 13 58 Jan 15 11 : 01 ... pat DP3822 13 58 Jan 15 11 : 01 lcat -rwxr-xr-x 1 pat DP3822 504 Apr 21 18:30 xtr $ ln /users/steve/wb . link wb to pat's bin $ ls -l total 5 -rwxr-xr-x...
Ngày tải lên : 13/08/2014, 15:21
  • 69
  • 223
  • 0
Unix Shell Programming Third Edition phần 3 docx

Unix Shell Programming Third Edition phần 3 docx

... text > text.out sed 's/\([Uu]nix\)/ \1( TM)/g' text > text.out date | cut -c12 -16 date | cut -c5 -11 ,25- | sed 's/\([0-9]\ {1, 2\}\)/ \1, /' 3: Write the commands to a. So you ... variables, as shown in the next example: $ value1 =10 $ value2=value1 $ echo $value2 value1 Didn't do that right $ value2=$value1 $ echo $value2 10 That's better $ Remember t...
Ngày tải lên : 13/08/2014, 15:21
  • 69
  • 448
  • 0
Unix Shell Programming Third Edition phần 8 doc

Unix Shell Programming Third Edition phần 8 doc

... are preceded by 0x: $ typeset -i i= 010 0 $ echo $i 64 $ i=0x80 $ echo $i 12 8 $ i=2 #11 010 01 $ echo $i 10 5 $ (( i = 16 #a5 + 16 #12 0 )) $ echo $i 453 $ Unlike the Korn shell, Bash doesn't keep track ... Enter. Table 15 .1 summarizes the basic vi line edit commands. Table 15 .1. Basic vi Line Edit Commands shell, and also contains many extensions from the Korn and C shells....
Ngày tải lên : 13/08/2014, 15:21
  • 69
  • 171
  • 0
Unix Shell Programming Third Edition phần 2 pot

Unix Shell Programming Third Edition phần 2 pot

... occurrences of " ;Unix& quot; in the text to " ;UNIX. " This can be easily done in sed as follows: $ sed 's /Unix/ UNIX/' intro Substitute Unix with UNIX The UNIX operating system ... phonebook Alice Chebba\t973-555-2 015 Barbara Swingle\t2 01- 555-9257 Jeff Goldberg\t2 01- 555-3378 Liz Stachiw\t 212 -555-2298 Susan Goldberg\t2 01- 555-7776 Tony Iannino\t973-555...
Ngày tải lên : 13/08/2014, 15:21
  • 69
  • 206
  • 0
Unix Shell Programming Third Edition phần 4 pptx

Unix Shell Programming Third Edition phần 4 pptx

... positions 12 through 19 . Actually, for this program, you really only need the hour displayed in positions 12 and 13 . So to get the hour from date, you can write $ date | cut -c12 -13 10 $ Now the ... 973-555-2 015 Barbara Swingle 2 01- 555-9257 Billy Bach 2 01- 555-7 618 Liz Stachiw 212 -555-2298 to achieve the same result. The double quotes are needed around the sed command to ensu...
Ngày tải lên : 13/08/2014, 15:21
  • 69
  • 617
  • 0
Unix Shell Programming Third Edition phần 5 pptx

Unix Shell Programming Third Edition phần 5 pptx

... memo [1- 4] > do > run $file > done & Send it to the background [1] 9932 $ request id is laser1-85 (standard input) request id is laser1-87 (standard input) request id is laser1-88 ... done request id is laser1-33 (standard input) request id is laser1-34 (standard input) request id is laser1-35 (standard input) request id is laser1-36 (standard input) $ The four words memo1, mem...
Ngày tải lên : 13/08/2014, 15:21
  • 69
  • 213
  • 0
Unix Shell Programming Third Edition phần 6 ppt

Unix Shell Programming Third Edition phần 6 ppt

... short example: $ cat foo1 echo :$x: foo2 $ cat foo2 echo :$x: $ foo1 :: :: x not known to foo1 or foo2 $ x =10 0 foo1 Try it this way :10 0: x is known to foo1 :10 0: and to its subshells $ echo :$x: :: ... " %12 d %12 d\n" $number1 $number2 done $ cat data 12 34 7960 593 -595 395 304 3234 999 -394 -493 $ align data 12 34 7960 593 -595 395 304 3234 999 -394 -493 $ In Chapte...
Ngày tải lên : 13/08/2014, 15:21
  • 69
  • 453
  • 0
Unix Shell Programming Third Edition phần 7 pdf

Unix Shell Programming Third Edition phần 7 pdf

... Table 13 .1. A more complete list is given under the trap command in Appendix A, " ;Shell Summary." Table 13 .1. Commonly Used Signal Numbers Signal Generated for 0 Exit from the shell 1 Hangup 2 Interrupt ... path # mycd () { if [ $# -le 1 ] then # normal case 0 or 1 argument cd $1 elif [ $# -eq 2 ] then # special case substitute $2 for $1 cd $(echo $PWD | sed &qu...
Ngày tải lên : 13/08/2014, 15:21
  • 69
  • 255
  • 0
Unix Shell Programming Third Edition phần 9 ppt

Unix Shell Programming Third Edition phần 9 ppt

... last 16 commands fc -e vi sed Read the last sed command into vi fc 10 0 11 0 Read commands 10 0 to 11 0 into $FCEDIT fc -s Re-execute the previous command fc -s abc=def 10 4 Re-execute command 10 4, ... read hours mins 10 19 $ echo "$hours:$mins" 10 :19 $ read num rest 39 East 12 th Street, New York City 10 003 $ echo "$num\n$rest" 39 East 12 th Street, New...
Ngày tải lên : 13/08/2014, 15:21
  • 69
  • 240
  • 0
Unix Shell Programming Third Edition phần 10 pptx

Unix Shell Programming Third Edition phần 10 pptx

... phonebook file example 2nd 3rd 4th 5th 6th 7th 8th 9th 10 th shift command 2nd 3rd rem 2nd 3rd 4th 5th 6th 7th 8th 9th 10 th 11 th 12 th 13 th replacing current program with new program 2nd 3rd ... Bash shell beginning of line, matching 2nd bg command 2nd 3rd 4th 5th 6th books AWK Programming Language, The Learning Pearl Programming Pearl Unix C Shell Field Gui...
Ngày tải lên : 13/08/2014, 15:21
  • 60
  • 213
  • 0