Shell: Difference between revisions
Jump to navigation
Jump to search
m New page: * '''AWK''' To read a portion of a text file: <pre> $ awk '{print substr($1,1,10)}' file >newfile </pre> |
mNo edit summary |
||
| Line 1: | Line 1: | ||
* '''AWK''' To read a portion of a text file: <pre> $ awk '{print substr($1,1,10)}' file >newfile </pre> | * '''AWK''' To read a portion of a text file: <pre> $ awk '{print substr($1,1,10)}' file >newfile </pre> | ||
* '''SED''' is the ultimate stream editor | |||
* '''WGET''' <pre>$ wget --http-user=usr --http-passwd=pwd http://link</pre> | |||
Revision as of 02:50, 23 August 2008
- AWK To read a portion of a text file:
$ awk '{print substr($1,1,10)}' file >newfile - SED is the ultimate stream editor
- WGET
$ wget --http-user=usr --http-passwd=pwd http://link