Shell: Difference between revisions

From RAJ INFO
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
 
(4 intermediate revisions by the same user not shown)
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''' with authentication <pre>$ wget --http-user=usr --http-passwd=pwd http://link</pre>
* '''SCP''': Copy across servers
[[Category:Bioinformatics]]

Latest revision as of 18:49, 3 January 2010

  • AWK To read a portion of a text file:
     $ awk '{print substr($1,1,10)}' file >newfile 
  • SED is the ultimate stream editor
  • WGET with authentication
    $ wget --http-user=usr --http-passwd=pwd http://link
  • SCP: Copy across servers