I have a folder with many subfolders. Each of these subfolders contain several Postscript (.ps) - files. Now I want to convert the ps-files in all of these folders into pdf format, doing so with a Bash Shell Script.
This is what I got so far:
#ls -l $DIR
for dir in `ls`
for file in `ls *.ps`
The parent folder is 'MFold_Output'. in the first for-loop, I go into this parent folder and list all subfolders. The second for-loop enteres each subfolder and lists its containing ps - files.
The Script is working so far.
My problem is how to actually convert the ps to pdf, eventuallly using xargs. It would also be good if the ps files wouln't be deleted.