Hello, I'm new in bash scripting and i need some help with for loop script. I have file name - YER and in this file are 4 words as,sd,df,fg . I need to create
a for loop that take information from YER file and create 4 folders(as,sd,df,fg). can some one help me ?
3 replies to this topic
#1
Posted 06 December 2011 - 05:08 AM
|
|
|
#2
Posted 06 December 2011 - 07:48 AM
no one knows ?
#3
Posted 08 December 2011 - 06:26 PM
Different ways you can do it.
for folder in $(cat YER) ; do mkdir $folder ; done
for folder in $(cat YER) ; do mkdir $folder ; done
#4
Posted 09 December 2011 - 05:43 AM
I suggest using sed or awk if you want to extract parts of a text file.
Amazon.com: sed & awk (2nd Edition) (9781565922259): Dale Dougherty, Arnold Robbins: Books
Amazon.com: sed & awk (2nd Edition) (9781565922259): Dale Dougherty, Arnold Robbins: Books
Programming is a journey, not a destination.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









