Summary: how any one can write SED script for following requirement? Test1.text file has following data : Che is CLA and XP is //event[tag = cast and line = 29...
Summary: Hello, Can I use sed scripts, for ex: sed -f script filename > newfilename. where script file is : diff -e <my version> <production version> ...
Summary: Even though at home I have both a Solaris and Linux box, almost everything I do is on my Windows box (one of these days I'll get smart and reverse th...
Summary: Hi, I am going a global replace using the below script.My problem is the last line of the property file is getting deleted.Please any idea on this iss...
Summary: Need help with awk or sed script. I have multiple files with the following in first line NUMBER_COLUMNS=15 I want to increase the number by 1 so it sh...
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: Hi! I need help in writing a script, in fact, couple of scripts that should do the following: we have a file, the 1st script divide the file into rand...
Summary: Thanks! That was exactly what I needed. Here is what I used: I saved this as a sed script called sub: s/'[^']*'/\n&/g :loop s/\(\n'[^']*\) \|-\([^']*...
Summary: Can you please post a sample of the data. Does the abcd.sed script really only contain --------------------- (ECONF2) run ECONF2 ---------------------...
Summary: I had no idea this would be so difficult to do, most people have no idea. My idea was using a sed in a csh script since I dont know anything sed scrip...
Summary: I'm trying to write a sed script that will switch every 2 lines. For example: Input: Hello there 1 Hello Gerry2 Bye Tim Bye Tim Beans Output would be:...
Summary: Hi guys, Using sed, I need to find every line in a document that starts with <TITLE>, and insert </TITLE> after the first period that follows it...
Summary: Anybody know how to get sed to delete lines up to (but not including) a certain line? To delete all up to and including the line, I use 1,/whateve...
Summary: Have written an awk and sed script contained in a .bat file. It operates on a long input text file. What I want to do is have the .bat file operate ...
Summary: Hi. I am a bit stumped on a rather easy problem .... I have a file with that contains a list of names ( exactly 1 name per line. no spaces) I need ...
Summary: I need to write a sed script that will replace 2 values with a single value. i.e I have to change any occurance of x or X with an s in a file named se...
Summary: I'm not understanding what your final output should look like, but maybe I can get you started. You have two issues (I'm using ksh): 1) To embed she...
Summary: Hi I have a awk/sed script that I am trying to create to remove lines from a file that I thought I needed to call sed in the awk script. This is wha...
Summary: I am running a text file through a sequence of sed scripts, but one clean operation escapes me. I want conditionally insert a blank line between *an...
Summary: This is a tricky one. First, if the shell variable to be embedded in the sed script contains a front slash, it must be escaped \/ FX="\/xyz\/data" S...