I need to write a program using sed and awk and am new to this unix stuff. So if anyone can give me any pointers that would be great. Here is what I need to do. # 7 I can do.
- Accept two and only two command line arguments
- These will be the names of two directories
- Make sure sending directory exists and is a directory
- make sure receiving directory exists and if not create it.
- copy files that only have a suffix of .log and are not empty
- When copying files change suffix of filenames from .log to .abc
- Display count of number of files copied.
- Log files will contain 2 columns of data, when you copy switch the order of the columns in the files you create in the receiving directory.
Thanks.