| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
Hi , i've been programming in bash for a week or so and have this assignment to do but i get this error message when i execute my program:
line 6: syntax error near unexpected token `do
And here's my code:
while [ -n $1 ]
list= `ls $1`
for i in $list
cat $i >> basename $i
I know it's a stupid mistake but i can't figure it out.
i would add some echo statements to verify that the argument you are passing is as expected and that the list variable for example contains what you expected.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved