Summary: Can you please post a sample of the data. Does the abcd.sed script really only contain --------------------- (ECONF2) run ECONF2 ---------------------...
Summary: I'm using the -f for the first time. I'd like to use it for multiple replaces to clean a file up. This is the command line sed -f clean.sed test > t...
Summary: Can someone help? I'm trying to pass an echo string over to sed in order for sed to insert it into a text file (test) as such: echo "echo "ps -ef | g...
Summary: in a sed file I'd like to append the line to another file if it matches and substitutes s/abc/cat/w filename However I don't want it to create a new ...
Summary: Hello, i wonder how do i remove ^M from above 40 file that comes under a directory and subdirectories. i usually vi the file and user :%s/^M//g but fo...
Summary: I currently have an awk that removes all new lines and works fine, but I'd like to do it in a sed file since everything else is happeing in the sed f...
Summary: You have more than one problem. First, you've designed your for loop to use a file. ls | grep test1 | grep -v gz The above line doesn't return a file ...
Summary: I'm trying to migrate a script from Solaris 8 to hpux. The line I'm having trouble with is as follows: Solaris: tmp=$$ ps -e -o ppid -o sid -o pid |aw...
Summary: Deepak, From the "system" man page: "If a child process cannot be created, or if the termination status for the command language interpreter cannot b...
Summary: find . -name .login will search current directory, recursively, or you can change the dot to any desired directory. Output is like: ./scripts/.login ...
Summary: Hi All, I want to sort a flat file which will contain millions of records [each line a record, fields seperated by delimiters] based on a key/field. F...
Summary: Hi, I have got this line in one of my scripts, md5sum $( find $directory/* -type f -print )|sort -k 1,1n >/tmp/md5sum.txt.$$ I take the directory n...
Summary: targetdir="/Volumes/192.168.1.108/ScriptTest/backup_${date}/" for file in `find . -type f -mtime -1` ; do cp $file $targetdir done See if you have a "...
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: For repetitive executions, you need to choose either to go with cron or to make your script a sleeper script. You can schedule it in cron to run as fr...
Summary: Hello, How can I do a sed script which modify a file himself ? I try : sed "s/dirty/clean/" myfile > myfile But after that, myfile is empty... How can...
Summary: If you are calling sed every time through the loop, there is no way it is more efficient. If you are doing a global change to a file, sed is the util...
Summary: I am trying to look into a file that contains a string of characters such as this: W35876 10034 34553 39889 34560 34500 34598 93458 89899 34/// 222//...
Summary: Hi. I need to write a script to edit a file without using awk or sed. I am given J5: J4 J2: J3 J1: J2 J3 J: J2 J3 J4 And the output should become J5.c...
Summary: Shell commands can append to a file, but that would be AFTER that last newline character. You are wanting to modify the last line, so you need to out...
Summary: I am trying to make a tricky substitution with sed: I have a file 'test.txt' with the following records: address: 192.168.120.1 other: 192.168.120...
Summary: I have the sed commands but need help stringing them together correctly. Reading a variable length file where the last line is only ^Z. Need to change...
Summary: hello all, I have a to find and replace a strings in a file, for which I have a findstring.txt, which contains all strings to be found in each line an...
Summary: I am using sed to replace a string in a file with a file. From looking at the sed help docs on the www this should work sed "s/XXX/r quote/" <...