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 cannot explain why it gives different results when I try the awk, sed, tr command combination with the same input. (aondufd1)psoftfs:/aon/dev/psoft/...
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: 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: Hi guys, Iam a beginner in awk/sed and need a help on awk/sed. This is my requirement. I have a text file with following entry xx yy zz.txt aa bb cc.t...
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: Hello, Can I use sed scripts, for ex: sed -f script filename > newfilename. where script file is : diff -e <my version> <production version> ...
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: Hi, I have a text file with the data in rows the data file has specfic pattern of rows I need to convert first 3 lines of rows into columns by doing a...
Summary: Dear Friends: I currently have a script that does a simple grep on "failed_logon" and emails them to me. It's rather ugly. How can I use awk to...
Summary: looks homeworky to me. If instructor required "pure shell" (no awk,sed ,tr ) and file contains pippo,pluto,paperino bob,mary,bart,jim,buford you could...
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: Here's similar logic in awk. Save script, then execute as: scriptname filename.dat #!/usr/bin/awk -f { if ($0 ~ /^PT..*/) { # Print old concatenate...
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: maybe someone can suggest a solution as i have been playing with awk and sed but cannot get the desired result I have a CSV file delimeted with quoted...
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: Since you asked "can it be done in the Korn shell", the answer is yes. Best way is to write a simple script that accepts an argument. #!/bin/ksh exec ...
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...