I'm trying to do a script that will look for a log file if it is already there change the name to another name.
I.E
if log.0 is there
rename to log.1
rename log.1 to log.2
rename log.2 to log.3 and so on.
Only thing is I got no idea where or what is the best command to use for this? ... (3 Replies)
Hi,
Im trying to write something that will report if a filesytem is over 80% but the problem is the output reports on a dir that is a 9%.
any ideas?
this is what I have
*************************************************
if
then
param=90
else
param=$1
fi
df -kl | grep... (1 Reply)
I have a file with a list of filenames. I want to work loopwise through the file and operate on each of the listed files. Normally I'd do something like:
for file in `cat $mydir/file-list`
do
echo $file >> $mydir/my.log
cp $mydir/$file $newdir
done
the problem is that my... (1 Reply)
I'm relatively new to Pro*C programming. In the following example:
char name; EXEC SQL SELECT 'John Doe' INTO :name FROM DUAL;
"John Doe" is in positions 0-7, blanks in 8-19, and a null in 20. I would really prefer the null to be in position 8 and I don't care what's after that. I wrote a... (1 Reply)
Hi ,
i need to write a simple to script in KSh to move some files ,
but these files have spaces in there name, resulting in error in transfering
eg i have following files
30222_Deal Ticket_20071227203.csv
30222_Deal Ticket_20071227204.csv
30222_Deal Ticket_20071227205.csv
and i want to... (7 Replies)
Hello,
I'm trying to replace the first x number of spaces in a line with a |. Right now I'm using a very inefficient syntax to accomplish the task and was looking to simplify it.
I have several cases were the pipes need to replace just the first space on the line, which I did a simple... (11 Replies)
I have just installed AIX 7.1 on a new system, and find that it displays the same annoying behaviour the you find in Linux:
In an xterm, when you quit vim or less, the file listed in the terminal window is blanked out and replaced with whatever was there before.
In vim there is a couple of... (12 Replies)