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: 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 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: Had a little posting error with the spaces - will try again ... The green lines will display all values accumulated for the value being checked for: ...
Summary: In Bourne shell, is it possible to get the read command to include trailing spaces when reading from files? For the script below, the source files HEA...
Summary: Hi, I trying to write a little script to grep for two continuos fields separated with a blank space. "month day" I have tried this: date | nawk '{prin...
Summary: Hello, I have a over 1000 files on a linxu box and I need to rename them. Can you write me a simple script which do the job. Here is my files format...
Summary: You can't have two files with the same name. The OS won't allow that. Apparently there are hidden characters in one of the file names. That also hap...
Summary: There are probably any number of ways to do this. One way is two create a temp file with the required 2 columns then use the paste command to glue th...
Summary: Greetings! Does anyone know of a utility or a script for renaming files on a UNIX web server? I've seen several of these types of renaming utilities ...
Summary: T.T. I'm assuming you want to copy files with a creation date of May 13. The 6th and 7th fields of the 'ls -l' command are the month and day: #!/bin/...
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: Here is a tree script that was sent to me a while back. I modified it to use Korn shell and took out all the `expr` stuff and typeset some integer va...
Summary: In a ksh script I get a file with a path from another program. I need to create the file and it's directories. I know mkdir -p can make the dirs but h...
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: How may I rename files *.txt to *.dat? (*=all). Example: If i have 3 files named a.txt, b.txt, c.txt how can I rename them as a.dat, b.dat & c....
Summary: Thanks, fellas. Just a couple of problems with these though. The first solution lists files with *.extension. The last two list directories along w...
Summary: What I am trying to do is to move the old files in our system to a new archive forlder, these old files are ended with a date extension, which is in v...
Summary: Hi, I would like to rename files in a directory. for eg: ls -ltr *.bup.* would give a result of: ma.bup.Wednesday hw.bup.Wednesday etc I need to tri...
Summary: hi Can any of the awk gurus around show me how to read 2 columns from a file and load them into an associative array. I have to do this from a ksh scr...