Summary: How do I rename all the files in a particular directory with the file extension .UNC for uncompressed. They are compressed and have a .Z extension bu...
Summary: Thank you for your reply. Sorry, please disregard my original message. Actually, the date extensions do have the same formats, which is file.yyyymmdd....
Summary: Dev: It depends on how 'source code' and 'execuatable' are defined. You can say my source code is all files with an extension of .c or .h and use the...
Summary: I need to create a script that will remove a file if there is no extension. The file is generated with a random name, based on current date. The file...
Summary: Hi, I am very new to Unix (taken one week of class so far) and have been given an assignment that I find impossible to accomplish. It seems like a...
Summary: What i need is a script that renames files like dos. so that if i type: "dosrename" in a sh prompt with the parameters "*.htm" and "*.html" is will re...
Summary: I'm trying to copy several files generated by a fortran program to their correct directories within a script. The problem is that I want to rename tho...
Summary: I am in a situation wherein i need to rename all files in a directory by suffixing it with current timestamp and delete all files 1 week older.Can any...
Summary: hie there, i would like to know how do i compare files in a current directory? i don't want to compare just 2 files with the diff filename1 fil...
Summary: I'm interpreting that you want to find all the files with two spaces in the name and rename them to one? There's no need to escape the spaces, and you...
Summary: Please help... I need to delete files in all sub-directories that are more than 10 days old or delete all sub-directoires (entire directory) that's 10...
Summary: set change_string = $argv[1] set replace_string = $argv[2] foreach x ($argv[3]) sed -e 's/'$change_string'/'$replace_string'/g' $x > $x.temp mv $x...
Summary: I am looking for shell scripting help. I need a script to search all files and directories below a known path. The search is looking for files with ...
Summary: Looking for some help in renaming files using a shell script. Suppose I have a directory which contains several files, some of which are *.dat files. ...
Summary: I like to rename a file based on the first line. Here is an example of what I need to do. File: 034568.dat has 2000 lines with first line as HIOSPAD23...
Summary: This is good script to rename all the files. Try this: ls -1 *.gz | while read fname do newfname=`echo $fname | sed 's/20060723/20060724/g'` mv $fna...
Summary: I've seen enough of David's answers to not question his scripting ability, so I assume that he's just answering the exact question asked. If I assume ...
Summary: Hi: The following command: find . -name "*.zip" -print|xargs chmod 666 finds all files with a zip extension from the current directory down and chang...
Summary: Greeting. I need to concatenate all the files with similar File names. For Example, I have 5 files, 1_100 2_100 3_200 4_200 5_300 Now I need to have 3...
Summary: I am new to shell scripting. The requirement is as follows: At the beginning of the script, check file creation date. If it's more than 2 days old, re...
Summary: #!/bin/ksh cd /directory_name for element in `ls *.txt` do programName $element > "$elementNEW.txt" done what this will do is, generate an a list ...
Summary: Hi, I am trying to write a unix shell script that will scan a directory - find a file with the lowest sequence number and kick of a process with that ...
Summary: You are close, but it's not a good idea to change PATH without a good reason. Do something like this: #!/bin/ksh # remove all files with a 'txt' exte...