Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!bin/bash
- for file1 in `ls`
- do
- if test -e $file1
- then
- printf ""
- else
- tmp="$tmp $file1" #This is not working
- if test -e $tmp
- then
- printf "%s\n" $tmp
- tmp=""
- fi
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement