Re: add folder name to filename

2006-09-14 Thread Nikolaos A. Patsopoulos
Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Nikolaos A. Patsopoulos on 9/14/2006 6:35 AM: I get the same error with my code and yours: Script started, file is typescript nothing happens, except an empty file called typescript in the

Re: add folder name to filename

2006-09-14 Thread Nikolaos A. Patsopoulos
Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Nikolaos A. Patsopoulos on 9/14/2006 6:35 AM: I get the same error with my code and yours: Script started, file is typescript nothing happens, except an empty file called typescript in the

Re: add folder name to filename

2006-09-14 Thread Nikolaos A. Patsopoulos
Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Nikolaos A. Patsopoulos on 9/14/2006 6:35 AM: I get the same error with my code and yours: Script started, file is typescript nothing happens, except an empty file called typescript in the

Re: add folder name to filename

2006-09-14 Thread Nikolaos A. Patsopoulos
Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Nikolaos A. Patsopoulos on 9/14/2006 6:23 AM: I used the following script but doesn't work under cygwin: for file in folder*/*; do dir=$(basename $(dirname $file) ) base=$(basename $file) mv

add folder name to filename

2006-09-14 Thread Nikolaos A. Patsopoulos
Hi, I have the following structure of folders and files: .. folder1 file1 file2 folder2 file1 file2 . and want to add the folder name into the filename: folder1 folder1_file1 folder1_file2 folder2 folder2_file1 folder2_file2