Sponsored Content
Full Discussion: A grep question
Top Forums Shell Programming and Scripting A grep question Post 302424937 by vgersh99 on Wednesday 26th of May 2010 04:22:25 PM
Old 05-26-2010
Code:
echo '<tr align=right><td>elevation</td><td>71.5</td></tr>' | sed 's/.*elevation[^>]*>[^>]*>\([^<]*\).*/elevation \1/'

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

grep question

what is the format for grep if I want to search from the current directory and through all its subdirectories?:) (3 Replies)
Discussion started by: pkappaz
3 Replies

2. UNIX for Dummies Questions & Answers

Grep Question

Hello Everybody, I have files; yyyymmdd.log which the data look like this; "Txid=9426043&MsgTxt=Thankyou&UserId=john&Password=jh2501" "Txid=9426150&MsgTxt=Thankyou&UserId=john&Password=jh2501" . . . "Txid=9426200&MsgTxt=Thankyou&UserId=john&Password=jh2501" Question 1: How to... (3 Replies)
Discussion started by: nazri76
3 Replies

3. Shell Programming and Scripting

grep question

hello people, All my servers have 4 mounts with this norme. For example, if my hostname is siroe. df -h | grep `hostname` /dev/dsk/c1t3d0s6 404G 399G 800M 100% /siroe3 /dev/dsk/c1t2d0s6 404G 399G 800M 100% /siroe2 /dev/md/dsk/d6 20G 812M 19G ... (3 Replies)
Discussion started by: melanie_pfefer
3 Replies

4. UNIX for Dummies Questions & Answers

grep question

Instead of using the following command #dmesg | grep -v sendmail | grep -v xntpd How can I use just one grep -v and give both arguments. Please suggest thanks (4 Replies)
Discussion started by: Tirmazi
4 Replies

5. Shell Programming and Scripting

grep question

Hello, Is there a way in grep to remember patterns? For eg: int a,b,c,d,a; If a variable is declared twice, like in the previous example, I should be able to print only those lines. Is there a way to print only the lines where the variable name occurs more than once, using grep... (1 Reply)
Discussion started by: prasanna1157
1 Replies

6. Shell Programming and Scripting

grep question please

i have files with "DOMAINSOLVER ACMS" with any number of spaces in between the two words on its own line and i can find it with the following: grep -c "DOMAINSOLVER* ACMS" $FILENAMEbut i need to exclude any lines matching: "$DOMAINSOLVER". i've tried a variety of quoting and escaping with no luck.... (4 Replies)
Discussion started by: crimso
4 Replies

7. Shell Programming and Scripting

Question about grep

can anyone tell me what the \/$ means? from grep \/$ (8 Replies)
Discussion started by: Nick1097
8 Replies

8. Shell Programming and Scripting

Question about grep

is there anyway i can ask grep to only get the first line? as in the top command line line 1 <-- just grep this line line 2 line 3 ---------- Post updated at 04:24 PM ---------- Previous update was at 04:19 PM ---------- nvm.. found out that i can do it with |head (12 Replies)
Discussion started by: Nick1097
12 Replies

9. UNIX for Dummies Questions & Answers

Question on grep

Hello all, I'm trying to grep the string "scott" from all files whose names are like srvr*.log and that were created "Nov 15"...I'm trying the following command but throws an error message...seems like the syntax is incorrect.. grep scott < ls -l srvr*.log|grep "Nov 15" Thanks for your... (9 Replies)
Discussion started by: luft
9 Replies

10. UNIX for Dummies Questions & Answers

Grep Question

My grep returns a row of data like this: 75=20130130;60=074338;61=985;511=55473883;452=115439;62=196;267=1; Is there a way for the grep to only return 60="something" and 511="something" ? Thanks in advance. (10 Replies)
Discussion started by: Carl2013
10 Replies
branch(1rheolef)                                                    rheolef-6.1                                                   branch(1rheolef)

NAME
branch -- handle a family of fields SYNOPSIS
branch [options] filename EXAMPLE
Generates vtk file colection for visualization with paraview: branch output.branch -paraview DESCRIPTION
Read and output a branch of finite element fields from file, in field text file format. INPUT FILE SPECIFICATION
-Idir add dir to the RHEOPATH search path. See also geo(2) for RHEOPATH mechanism. filename specifies the name of the file containing the input field. - read field on standard input instead on a file. -ndigit int Number of digits used to print floating point values when using the `-geo' option. Default depends upon the machine precision asso- ciated to the Float type. OUTPUT AND RENDER SPECIFICATION
-extract int Extract the i-th record in the file. The output is a field or multi-field file format. -branch Output on stdout in `.branch' format. This is the default. -paraview Generate a collection of vtk files for using paraview. -vtk Generate a single vtk file with numbered fields. -gnuplot Run 1d animation using gnuplot. -plotmtv This driver is unsupported for animations. OTHER OPTIONS
-umin float -umax float set the solution range for the gnuplot driver. By default this range is computed from the first field of the branch, and this could be problematic when this field is initialy zero. -topography filename[.field[.gz]] performs a tridimensionnal elevation view based on the topographic data. -proj performs a P1 projection on the fly. This option is useful when rendering P0 data while vtk render requieres P1 description. -elevation For two dimensional field, represent values as elevation in the third dimension. This is the default. -noelevation Prevent from the elevation representation. -scale float applies a multiplicative factor to the field. This is useful e.g. in conjonction with the elevation option. The default value is 1. -verbose print messages related to graphic files created and command system calls (this is the default). -noverbose does not print previous messages. -clean clear temporary graphic files (this is the default). -noclean does not clear temporary graphic files. -execute execute graphic command (this is the default). -noexecute does not execute graphic command. Generates only graphic files. This is usefull in conjuction with the -noclean command. BRANCH FILE FORMAT
The `.branch' file format bases on the `.field' one: EXAMPLE GENERAL FORM #!branch #!branch branch branch 1 1 11 <version> <nfield=1> <nvalue=N> time u <key> <field name> #time 3.14 #<key> <key value 1> #u #<field name> field <field 1> ..... .... ..... .... #time 6.28 #<key> <key value N> #u #<field name> field <field N> ..... .... The key name is here time, but could be any string (without spaces). The previous example contains one field at each time step. Labels appears all along the file to facilitate direct jumps and field and step skips. The format supports several fields, such as (t,u(t),p(t)), where u could be a multi-component (e.g. a vector) field: #!branch branch 1 2 11 time u p #time 3.14 #u mfield 1 2 #u0 field ... #u1 field ... #p #time 6.28 ... SEE ALSO
geo(2) rheolef-6.1 rheolef-6.1 branch(1rheolef)
All times are GMT -4. The time now is 09:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy