Click to See Complete Forum and Search --> : Heavy automated text modification


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...)?

uptimenotifier
12-22-2002, 06:40 PM
The find command will recursively list the relative paths of files and directories.

Dun'kalis
12-22-2002, 08:07 PM
Yay! Thanks...The EPIC MISSION continues...now, it will work!

Yes!!!!