Sign in to follow this  
Followers 0
BINREV SPYD3R

HPR - Ep0531: bash loops

1 post in this topic

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

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0