Hi,
I am new to UNIX (Korn Shell).
Would some one tell me the way to meet my specs?
I will be having a folder by name 'file' and within that a folder as file_01.
This folder will have a file by name file_01.xyz.
This file will have, among other things, a part of line which would read as file_01.abc.
And another line as file_01.txt.
Now, I need a script which would:
1. Create a folder by whatever name I request it to do. Let's say myfile.
2. Create sub-directory myfile_01.
3. Copy the contents of file_01.xyz into the sub folder.
4. Change the string file_01.abc in the file to myfile_01.abc.
5. Change the string file_01.txt in the file to myfile_01.txt.
Note that, I shall be doing this on multiple files.
I was able to create the sub-folders and copy the .xyz files, but was not able to get into the file and change the string names in those files.
Would some one help me in solving this?
Thanks,
RV
I am new to UNIX (Korn Shell).
Would some one tell me the way to meet my specs?
I will be having a folder by name 'file' and within that a folder as file_01.
This folder will have a file by name file_01.xyz.
This file will have, among other things, a part of line which would read as file_01.abc.
And another line as file_01.txt.
Now, I need a script which would:
1. Create a folder by whatever name I request it to do. Let's say myfile.
2. Create sub-directory myfile_01.
3. Copy the contents of file_01.xyz into the sub folder.
4. Change the string file_01.abc in the file to myfile_01.abc.
5. Change the string file_01.txt in the file to myfile_01.txt.
Note that, I shall be doing this on multiple files.
I was able to create the sub-folders and copy the .xyz files, but was not able to get into the file and change the string names in those files.
Would some one help me in solving this?
Thanks,
RV