home *** CD-ROM | disk | FTP | other *** search
- Description of programs.
-
- Thσ followinτ give≤ brieµ description≤ oµ thσ programs« Thσ exac⌠ ì
- syntax can be obtained with a "?" parameter.
-
- change Change≤ onσ patterε int∩ anothe≥ throughou⌠ ß file« ì
- ááááááááááááááááááPattern≤ arσ thσ samσ a≤ thosσ useΣ b∙ gre≡ (below)« ì
- ááááááááááááááááááNote¼ tha⌠ thσ patterε searcheΣ fo≥ i≤ normall∙ ì
- áááááááááááááááááácaseles≤ anΣ thσ patterε t∩ whicΦ i⌠ i≤ t∩ bσ changeΣ ì
- ááááááááááááááááááis assumed to be in lower case unless you use \u.
-
- detab Removes tabs from a file.
-
- df Compares two text files.
-
- èentab Inserts tabs where possible in a file.
-
- grep Genera∞ regula≥ expressioε print« Searche≤ fo≥ ß ì
- áááááááááááááááááápatterε iε ß lis⌠ oµ files« Thi≤ prograφ accept≤ ì
- ááááááááááááááááááwilΣ cards« Iµ thσ patterε contain≤ spaces¼ i⌠ mus⌠ ì
- áááááááááááááááááábσ encloseΣ iε quote≤ o≥ apostrophes« Thi≤ prograφ ì
- áááááááááááááááááái≤ ver∙ versatile¼ bu⌠ ma∙ bσ ß bi⌠ strangσ t∩ ne≈ ì
- ááááááááááááááááááusers. Therefore, some examples are given here.
-
- Pu⌠ al∞ line≤ whicΦ begiε witΦ ß taΓ froφ file▒ int∩ ì
- ááááááááááááááááááthσ outpu⌠ iε file2
-
- grep -f ^\t file1 >file2
-
- Pu⌠ al∞ line≤ whicΦ d∩ no⌠ begiε witΦ aε "Mó froφ ì
- ááááááááááááááááááfile1 into file2
-
- gre≡ -µ -ß ^[^\um] file1 >file2
-
-
- Sho≈ al∞ occurrence≤ oµ "fprintfó anΣ "sprintfó (bu⌠ ì
- ááááááááááááááááááno⌠ oµ "printf" in all c programs on drive b, user 4
-
- grep -a [fs]printf b4:*.c
-
- mprint Type≤ severa∞ file≤ iε columns« Notσ tha⌠ b∙ ì
- áááááááááááááááááádefault¼ iµ ß linσ froφ ß filσ doe≤ no⌠ fi⌠ iε ß ì
- áááááááááááááááááácolumn¼ i⌠ wil∞ expanΣ thσ sizσ oµ thσ columε fo≥ ì
- ááááááááááááááááááthat line.
-
- sort Fairl∙ genera∞ sor⌠ fo≥ largσ files« ╔ kno≈ thσ ì
- ááááááááááááááááááoption≤ arσ ß bi⌠ confusing¼ bu⌠ i⌠ caε d∩ ß lot« ì
- ááááááááááááááááááOnσ thinτ t∩ bea≥ iε minΣ -- iε quitσ ß fe≈ case≤ ì
- ááááááááááááááááááspeeΣ wa≤ sacrificeΣ fo≥ versatility« Don'⌠ expec⌠ ì
- ááááááááááááááááááthis program to win the "sort olympics".
-
- split Split≤ onσ filσ int∩ several« Default≤ t∩ ß rounΣ ì
- áááááááááááááááááárobiε method¼ usefu∞ fo≥ combininτ witΦ mprin⌠ t∩ ge⌠ ì
- áááááááááááááááááácolumna≥ printing« Caε als∩ bσ useΣ simpl∙ t∩ breaδ ì
- ááááááááááááááááááup a file that's gotten too large.
-
- tr Translates characters.
-
- uniq Removes duplicate lines.
-
- wc Count≤ words¼ lines¼ anΣ characters« ┴ ver∙ simplσ ì
- ááááááááááááááááááalgorithφ i≤ useΣ (ß worΣ i≤ an∙ strinτ oµ character≤ ì
- áááááááááááááááááásurroundeΣ b∙ whitσ space)« Thi≤ i≤ adequatσ fo≥ ì
- áááááááááááááááááámos⌠ purposes« Thi≤ prograφ take≤ ß lis⌠ oµ files« ì
- ááááááááááááááááááWild cards are permitted.