Sponsored Content
Full Discussion: Grep line above X condition
Homework and Emergencies Homework & Coursework Questions Grep line above X condition Post 302416807 by DrSammyD on Tuesday 27th of April 2010 08:16:18 PM
Old 04-27-2010
I don't know, this is a chapter on grep, so everything has to be done with grep. we are getting to awk and sid in the next chapter. But remember, I don't need the lines with 6 figures, I need the lines above the lines with 6 figures. It's just that one of the lines above a line with 6 figures also has six figures, so in order to get only the lines above the lines with 6 figures, I can't just erase all the lines with 6 figures. There needs to be a way to print only the lines above the lines with 6 figures, and not the lines with 6 figures themselves (with the exception of the line with 6 figures above the other line with 6 figures).
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

grep inside if condition - need help

hi i need help with below code. if ] then log "Exiting the script as ID= NULL" log "Please run script first." fi i am calling grep inside this but its not running any ideas why ?? input file is like this -- Msg 102, Level 20, State 1: Server... (4 Replies)
Discussion started by: dazdseg
4 Replies

2. Shell Programming and Scripting

grep in the if condition

Hi, In this code can able to match the pattern without case sensitive. Is that possible? if u knw plz help me... code: echo "Enter name to search" read n if ; echo "name found" else echo "Not Found" fi (8 Replies)
Discussion started by: boopal
8 Replies

3. Shell Programming and Scripting

Find a line using a condition and replace a string in that line

Hello, I have a 100 line code. I have given a sample of it below: ABC*654654*1*54.54*21.2*87*1*654654654654 CCC*FS*FS*SFD*DSF GGG*FGH*CGB*FBDFG*FGDG ABC*654654*1*57.84*45.4*88*2*6546546545 CCC*WSF*SG*FGH*GHJ ADA*AF*SFG*DFGH*FGH*FGTH I need to select the line starting with "ABC" its... (6 Replies)
Discussion started by: nithins007
6 Replies

4. Emergency UNIX and Linux Support

Find a line using a condition and replace a string in that line

Hello, I have a 100 line code. I have given a sample of it below: ABC*654654*1*54.54*21.2*87*1*654654654654 CCC*FS*FS*SFD*DSF GGG*FGH*CGB*FBDFG*FGDG ABC*654654*1*57.84*45.4*88*2*6546546545 CCC*WSF*SG*FGH*GHJ ADA*AF*SFG*DFGH*FGH*FGTH I need to select the line starting with "ABC" its... (3 Replies)
Discussion started by: nithins007
3 Replies

5. Shell Programming and Scripting

grep not equal to condition

I have below files under dir_a and dir_b and i want to sort out number of dir_a and dir_b files seperately and if i do the grep it should retrun 2 files in dir_a and 1 file in dir_b. /dir_a/12345678 /dir_a/87654321 /dir_a/dir_b/12345687 But i am getting cat file|grep dir_a|wc -l 3... (6 Replies)
Discussion started by: prash358
6 Replies

6. UNIX for Dummies Questions & Answers

How to grep with certain condition?

hi all, i have an xml what i have to do is to search for the source id(s1) and if it matches with that in xml then extract the file mask from the name of the file i.e if the file name is idr_%YYYY%%MM%%DD%_%N%.idr then , i want the part after first % and before last % ie in this case ... (5 Replies)
Discussion started by: ramsavi
5 Replies

7. UNIX for Dummies Questions & Answers

Grep with condition

I have file input AAAA_XX_Start> rlong . 0W 130526-11:36:13 10.128.13.226 9.0j RBS_NODE_MODEL_N_1_50 stopfile=/tmp/13019 .. ================================================================================================================= MO ... (2 Replies)
Discussion started by: radius
2 Replies

8. Shell Programming and Scripting

Append Next line with current Line bassed on condition

Hi, I have an XML file and I am tring to extract some data form it, after lot of data cleaning process, I ended up with an issue, and need your urgent support. my current input data in below format: <Node>xxxxxx <Node>yyyyy</Node> <Node>zzzzzz <Node>12345</node> I need... (9 Replies)
Discussion started by: rramkrishnas
9 Replies

9. Shell Programming and Scripting

Find line then evaluate text on next line, print when condition is met

Hello, I am looking for a specific situation in a text file. The conditions are, > <CompoundName> InChI=1S/C5H12NO2/c1-5(2)4-8-6(3)7/h5H,4H2,1-3H3/q+1 I am looking for cases where the line "> <CompoundName>" is followed by a line that contains the string "InChI=" without regard to... (5 Replies)
Discussion started by: LMHmedchem
5 Replies
EUKTOEPS(1)							 Eukleides Manual						       EUKTOEPS(1)

NAME
euktoeps - Eukleides to Encapsulated PostScript converter SYNOPSIS
euktoeps [OPTION...] FILE DESCRIPTION
Eukleides is a computer language devoted to elementary plane geometry. It aims to be a fairly comprehensive system to create geometric figures, either static or dynamic. It allows to handle geometric types of data like points, vectors, lines, circles, or conics. The euktoeps script is useful to convert Eukleides scripts into Encapsulated PostScript figures. It runs the euktopst(1) interpreter, then adds appropriate preamble and ending to the resulting code, last runs latex(1) and dvips(1). Hence, it is an alternative to the euklei- des(1) program when mathematics typesetting is required. OPTIONS
-i, --include=STRING Include LaTeX directives in preamble. -l, --locale[=LANG] Use localized keywords. With no argument given, the current locale is set to the value of the LANG environment variable. Otherwise LANG has to be a valid locale identifier, e.g. 'fr_FR' or 'fr_FR.utf8', depending on the default charmap. This feature may be dis- abled. -#, --interactive=STRING Modify interactive variables. -d, --data=DATAFILE Use DATAFILE for input. This option is essential when using input functions, since euktopst(1) is run in batch mode. -v, --version Print version number and exit. -h, --help Print immediate help and exit. AUTHOR
Christian Obrecht <obrecht at eukleides dot org>. SEE ALSO
Eukleides info pages for full documentation. eukleides(1), euktopst(1), euktotex(1), euktopdf(1). Eukleides 2010/02/16 EUKTOEPS(1)
All times are GMT -4. The time now is 08:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy