Sponsored Content
Top Forums Shell Programming and Scripting grep data on 2nd line and 3rd column Post 302409167 by Jairaj on Wednesday 31st of March 2010 10:18:04 AM
Old 03-31-2010
Thanks Alister for your input.
Anyway my command also work. But Franklin52 code is excellent...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to extract 3rd line 4th column of a file

Hi, Shell script: I would need help on How to extract 3rd line 4th column of a file with single liner Thanks in advance. (4 Replies)
Discussion started by: krishnamurthig
4 Replies

2. Shell Programming and Scripting

Awk multiple lines with 3rd column onto a single line?

I have a H U G E file with over 1million entries in it. Looks something like this: USER0001|DEVICE001|VAR1 USER0001|DEVICE001|VAR2 USER0001|DEVICE001|VAR3 USER0001|DEVICE001|VAR4 USER0001|DEVICE001|VAR5 USER0001|DEVICE001|VAR6 USER0001|DEVICE002|VAR1 USER0001|DEVICE002|VAR2... (4 Replies)
Discussion started by: SoMoney
4 Replies

3. Shell Programming and Scripting

split on the basis of 2nd and 3rd column

file A aa 22 48 ab 22 48 tcf 50 76 gf 50 76 h 89 100 yh 89 100 how can we split the file on the basis of common 2 and third column output like file A-1 aa 22 48 ab 22 48 file A-2 cf 50 76 gf 50 76 (3 Replies)
Discussion started by: cdfd123
3 Replies

4. Shell Programming and Scripting

get 3rd column of nth line

hi; i have a file.txt and its 9th, 10th and 11th line lines are: RbsLocalCell=S2C1 maxPortIP 4 (this is 9th line) RbsLocalCell=S3C1 maxPortIP 4 (this is 10th line) RbsLocalCell=S1C1 ... (11 Replies)
Discussion started by: gc_sw
11 Replies

5. Shell Programming and Scripting

1st column,2nd column on first line 3rd,4th on second line ect...

I need to take one column of data and put it into the following format: 1st line,2nd line 3rd line,4th line 5th line,6th line ... Thanks! (6 Replies)
Discussion started by: batcho
6 Replies

6. Shell Programming and Scripting

Grep special pattern in 3rd column

I have a file (test.dat) that has this pattern: 1000 000001 (92.431343802235503, 90.0) 1000 000002 (87.568656197764497, 80.0) 1000 000003 (150.75815307316083, 150.0) 1000 000004 (29.241846926839159, 20.0) 1000 000005 (110.02128542766, 110.0) 1000 000006 (69.978714572339996, 60.0) 1000... (8 Replies)
Discussion started by: kayak
8 Replies

7. Shell Programming and Scripting

Insert data in first column(if blank) from previous line first column

Dear Team I need to insert field(which is need to taken from previous line's first field) in first column if its blank. I had tried using sed but not find the way. Detail input and output file as below. Kindly help for same. INPUT: SCGR SC DEV DEV1 NUMDEV DCP ... (7 Replies)
Discussion started by: jaydeep_sadaria
7 Replies

8. UNIX for Dummies Questions & Answers

Grep -v value in 2nd column

Trying to do a grep -v on a value in the 2nd column of text. So if the word apple appears in a line in the 2nd column, it would not show up when the file was cat. Seems like a simple enough operation but I just can't figure it out. Any help would be appreciated. Thanks in advance. Are apples... (4 Replies)
Discussion started by: jimmyf
4 Replies

9. UNIX for Dummies Questions & Answers

Want the UNIX code - I want to sum of the 1st column wherever the first 2nd and 3rd columns r equal

I have the code for the below things.. File1 has the content as below 8859 0 subscriberCreate 18 0 subscriberPaymentMethodChange 1650 0 subscriberProfileUpdate 7668 0 subscriberStatusChange 13 4020100 subscriberProfileUpdate 1 4020129 subscriberStatusChange 2 4020307 subscriberCreate 8831... (5 Replies)
Discussion started by: Mahen
5 Replies

10. Linux

Print the 1st column and the value in 2nd or 3rd column if that is different from the values in 1st

I have file that looks like this, DIP-17571N|refseq:NP_651151 DIP-17460N|refseq:NP_511165|uniprotkb:P45890 DIP-17571N|refseq:NP_651151 DIP-19241N|refseq:NP_524261 DIP-19241N|refseq:NP_524261 DIP-17151N|refseq:NP_524316|uniprotkb:O16797 DIP-19588N|refseq:NP_731165 ... (2 Replies)
Discussion started by: Syeda Sumayya
2 Replies
vquickmorph3d(1Vi)														vquickmorph3d(1Vi)

NAME
vquickmorph3d - apply a quick 3D morphological filter to a binary image SYNOPSIS
vquickmorph3d [-option ...] [infile] [outfile] DESCRIPTION
vquickmorph3d applies a 3D morphological filter to an image by thresholding a distance transform. Each input image is filtered to produce a corresponding output image. This program emulates a "true" morphological filter by thresholding a 3D distance transform. It can only emulate filtering by a sphere shaped structuring element. It is much faster than the original morphological filtering. It produces slightly different results. The input images must be binary images of type VBit. The output images will also be binary. COMMAND LINE OPTIONS
vquickmorph3d accepts the following options: -help Prints a message describing options. -in infile Specifies the Vista data file containing the input images. -out outfile Specifies where to write the output images as a Vista data file. -radius diameter Specifies the radius of a sphere shaped structuring element. Default: 6. -op op Specifies the operation as one of the following: dilate dilation erode ersion open opening (erosion followed by dilation) close closing (dilation followed by erosion) Input and output files can be specified on the command line or allowed to default to the standard input and output streams. LITERATURE
For an excellent tutorial on image morphology, see Haralick, R.M, S.R. Sternberg, and X. Zhuang, "Image analysis using mathematical mor- phology," IEEE Trans. PAMI, vol. PAMI-9, No. 4, July 1987, pp. 532-550. Or see Maragos, P. and R. Shaffer, "Morphological systems for mul- tidimensional Signal Processing", Proc. IEEE, vol. 78, no. 4, April 1990. SEE ALSO
vbinmorph3d(1Vi), VImage(3Vi), Vista(7Vi) AUTHOR
Gabriele Lohmann <lohmann@cns.mpg.de> Vista Version 2.0 15 Februar 1994 vquickmorph3d(1Vi)
All times are GMT -4. The time now is 07:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy