Summary: is it possible with awk or grep (or some other unix tool) to stop the search of a text file after the number of results reaches a predifined number....
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: Ok, based on your example record, I get the following: Field / value $1 - David $2 - Smith $3 - (408) $4 - 123-4567 $5 - 123 (month 1) $6 - 345 ...
Summary: if i understand you correctly, you want to get the line that has "id=" and then the line that is 6 lines down ? ie [ID:...] right? If the 6th line dow...
Summary: Dear gurus, (from a Unix beginner) After reading man pages on awk/sed, and still not having a clue, would someone show me the way in a Unix script to ...
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: 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: 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: Guys, I am new to UNIX world and really need help of your expertise. I have file with each line of fixed length eg., DT00123 1234 FFF 56565 DT00923XX3...
Summary: is this a homework assigment? if not, you always have the option of invoking an external utility/script from KSH. Invoking a custom perl script is no ...
Summary: When using the traditional unix tools such as awk, sed, tr, etc. you have no option but to rename the file after processing finishes. I'm not much of ...
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: I am trying to pull data out of a file to execute a series of repetitive commands. One of the fields is a {hex number}.{hex number} pattern. I need th...
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: Hi, I have a file,lets say InputList which contains a list of files. Inputfile /home/kgeorg/nishana/survey_pages/common/AdvancedSearchPage.jsp /home/k...
Summary: Hey could you please help me!!! Im trying to get an awk script to read a file (data.txt). this file conatains numbers only and print it to screen! in...
Summary: help!!!! arghhhhh!!! Im trying to get an awk script to read a file (data.txt). this file conatains numbers only and print it to screen! into and array...
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...