Dun'kalis
12-22-2002, 03:26 PM
I'm working on a really big shell script right now, and part of it outputs the results of ls -R to a file. Now, I don't need everything in this file, for example:
./
subdirs
./subdir
files
etc. Now, I just want to move the directory to prefix the file/directory names. Whats an easy way to do this (I'm thinking awk/sed or perl...)?
./
subdirs
./subdir
files
etc. Now, I just want to move the directory to prefix the file/directory names. Whats an easy way to do this (I'm thinking awk/sed or perl...)?