Summary: Hi all, the output of my nawk/sed script is leaving me with many repeated entries, ie: entry1 entry1 entry2 entry2 ... There are not similarities on t...
Summary: Hi, I'm using korn shell. The contains of $ddir is not showing up after running the sed script. I used both suggestions. I'm not sure that the quotes ...
Summary: Hi, I have a question regarding the shell script.Program called mysed that applies the sed script given as the first argumenet against the file given...
Summary: William: I tried running your sed script above and I'm getting a garbled command error. I tried it on Solaris 7 and Red Hat Linux 7.1 Regards, Nails ...
Summary: Raxit: I'm not certain what you're doing with the sed script, but you have problems with the while loop. You don't say what shell you're using; I'm ...
Summary: SCO could tell you better, they give it away to UNIX students if that is what you are. I do know you will have to format the drive to UNIX native one ...
Summary: Hi Kromo, The Jim script works fine for me. Have you error messages ? What output did you get ? I have modified the awk script a little bit. For lines...
Summary: Hi Ed, Your proposed command is not exactly my requirement as it displays the file usage at all levels. Actually I want to display the top 10 space us...
Summary: Following script should do what you want: #!/bin/sh mv master.ics master.old cp master.heading master.new if [ -f master.ics ] ; then ___print "Could ...
Summary: Can someone help with the script i'm trying to write; it uses sed. I think i'm doing something wrong with syntax. The script is supposed to replace ...
Summary: Nails, It worked like a charm. Thanks for the response. Now as i am new to shell scripting and sed itself, i guess you don't mind helping me on this o...
Summary: Greetings... I would be very thankful for any insight into this situation: It seems to me as though a text file I've received does not have a new line...
Summary: I have a script that inputs a line into the first line of a text file using sed: sed '/1i\ '$LINE'' <$FILE FILE and LINE are inputted using read. ...
Summary: Is it possible to pass a Unix environment variable to sed? The example script I have included shows what I am trying to do and the header explains why...
Summary: William is right. Unless you are working under the contraints of homework, no one uses csh for scripting because it works poorly. #!/bin/ksh rm /tmp/d...
Summary: Here is what I need to do. First, I want to find all the .cpp and .h files then check if the file is not directory, not already in lower case, and no ...
Summary: I need to create a script, taking a number of parameters (a target string, a string to replace the target string, and a number of files), that perfor...
Summary: Hi I am using sed in a shell script. I am having problems in using parameters in sed for search and replace. TEST=`grep "'/" source | head -1` sed s/...
Summary: I'm writing a csh script, and everytime I try to change this file with sed, it erases everything, this is the code i'm using (to change commas to comm...
Summary: In shell script sed or awk command, can I use hexadecimal code for substitution? I want to perform the following: Input file: Line1 Line2 Line3 Line4...
Summary: Just whipped up this lil script, uses cal and some sed. Format is mm dd yyyy. #!/bin/ksh if [[ -z $1 || -z $2 || -z $3 ]];then echo "usage: dayofweek...
Summary: Hi, I am trying to write a script that can convert the date at the beginning of each record and preserve the rest of the data. The records are stored...