Advertisement
PAULDC

Untitled

May 26th, 2011
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. #!bin/bash
  2. for file1 in `ls`
  3.     do
  4.     if test -e $file1
  5.     then
  6.     printf ""
  7.     else
  8.         tmp="$tmp $file1" #This is not working
  9.         if test -e $tmp
  10.             then
  11.             printf "%s\n" $tmp
  12.             tmp=""
  13.             fi
  14.         fi
  15.  
  16.     done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement