On Fri, 2002-10-25 at 03:02, Daniel Tan wrote: > i got this error ./upadd: line 17: unexpected EOF while looking for matching > `"' > ./upadd: line 19: syntax error: unexpected end of file Looks like Todd's solution will work since he appears to recognize the application,but here is what looks to be the fix of the syntax in my script
> > #!/bin/sh > ctr=0 > topdir="/set/this/to/the/directory/above/1 " > newbook="/path/to/new.abook" > for dir in $topdir/*; do > userfile=$(ls $topdir/$dir/*.abook) > if [ -n $userfile ]; then put a double quote at the end of the next line > echo "copying $newbook to $topdir/$dir/$userfile > should look like this: echo "copying $newbook to $topdir/$dir/$userfile" > # uncomment the line below if the test run looks right > #cp $newbook $topdir/$dir/$userfile > ctr=$(($ctr+1)) > else > echo "there is no abook file in $topdir/$dir" > fi > done > echo "we copied $ctr files" > #end of script I guess I should have written it in vim firt to at least give a cursory syntax check. Love those colors! Bret -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list