Hi folks. I've tried to research this, but haven't found a good answer (could be my harried state).
At any rate, I have records that end with
two commas, a number, two commas
this could be anywhere from
,,01,,
to
,,09875953,,
I need to remove the last two fields (the number... (3 Replies)
Frenz,
I have a file with certain columns from ls -lR which looks something like:
file stemp
----------
lrwxrwxrwx ./temp/s1 -> 2.ksh
lrwxrwxrwx ./temp/s2 -> 3.ksh
lrwxrwxrwx ./temp/subtemp/s3 -> 1.ksh
lrwxrwxrwx ./temp/subtemp/s4 -> 2.ksh
lrwxrwxrwx ./temp/s5 -> ... (9 Replies)
I am writing a shell script on SunOS cosuaah01 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Fire-V440
machine. The shell script in.sh looks like this:
install_top=`pwd`
fl2=/d01/applptch/ptchora/iAS/Apache/Apache/cgi-bin/cxtool/display_report.pl
echo $fl2
mv $fl2 $fl2.old
sed 5c\... (6 Replies)
Hello,
I need to use sed to replace a word in file.
My command is this:
sed "s/word_to_replace/'"${INPUT}"'/1 filename
and because INPUT="~@#$%^&*()-_=+{}\|;:<>,./?"
and / is also the delimiter so I'm keep on getting error message
sed: command garbled: ...
any suggestions about how I... (10 Replies)
Hi all,
Actually i want to delete the .ps extension from package1.ps string by using sed.
Can any body tell me that how shell i do it?????????
It is very urgent. Can anybody help me. I am trying to do this in the following way.
ps_file="package1.ps"
echo $ps_file
sed s/.ps//g $ps_file... (9 Replies)
HI All
Im new to shell scripting...kindly plz help me...
I need a shell script for:
We have to take export of all db's on daily basis from all svr's and keep these export backups on diffrent server.
Plz help.
Regards
Gaurav (5 Replies)
I want to grep "abc" from "logyy". I want not only the instance of "abc" to return, but the line just above it as well (no matter what it is).
:)
Can some one please assit me to drive on this (2 Replies)
Hello,
I have a file with the follwoing pattern:
Input file:
===========
tcp://xxx:123
8179 YY
1798 YY
tcp://abc:2345
not found
tcp://swt:4945
7356 QQ
tcp://pqr:456
8178 PP
9485 PP
4485 PP (8 Replies)