Jump to content


Photo

HPR - Ep0531: bash loops


  • Please log in to reply
No replies to this topic

#1 BINREV SPYD3R

BINREV SPYD3R

    Live to Hack...Hack to Live.

  • Members
  • 2,499 posts

Posted 23 March 2010 - 07:00 PM

user@pc:~$ for number in 1 2 3> do> echo my number is $number> donemy number is 1my number is 2my number is 3user@pc:~$ for number in 1 2 3 ; do echo my number is $number; donemy number is 1my number is 2my number is 3user@pc:~$ cat x.txt|while read line;do echo $line;doneone-long-line-with-no-spacesone ling line with spacesuser@pc:~$ for line in `cat x.txt`;do echo $line;doneone

Go to this episode




BinRev is hosted by the great people at Lunarpages!