I am new to UNIX. One of my file records are like below
The above mentioned records delimiter is space. I need to extract the records from the 4th column where if any record prefix with 5, then I need to extract the entire records from that file. Please guide me how can I extract the prefix '5' from the 4th column.
Any help is really appreciated.
Expected output:
Moderator's Comments:
Please use code tags, see PM.
Last edited by vbe; 02-13-2014 at 08:23 AM..
Reason: zaxxon's mod typo hehe...
Hi All,
Below is the sample data of my files:
O|A|571000689|D|S|PNH|S|SI
sadm|ibscml1x|
I|A|571000689|P|S|PNH|S|SI
sadm|ibscml1x|
O|A|571000689|V|S|PNH|S|SI
sadm|ibscml1x|
S|C|CAM|D|S|PNH|R|ZOA|2004
bscml1x| ... (3 Replies)
How to manipulate first column and reverse the line order in third and fourth column as follws?
For example i have a original file like this:
file1
0.00000000E+000 -1.17555359E-001 0.00000000E+000
2.00000000E-002 -1.17555359E-001 0.00000000E+000
... (1 Reply)
Hi Gurus,
We have a ftpserver from which we do a dir command and output it to a local file.
The content of the ftpfile is:
07-15-09 06:06AM 5466 ABC_123_ER19057320090714082723.ZIP
07-15-09 06:07AM 3801 ABC_123_ER19155920090714082842.ZIP
07-15-09 06:07AM ... (14 Replies)
Hi guys,
I need help in making a command to find some data.
I have multiple files in which multiple records are present.. Each record is separated with a carriage return and in each record there are multiple fields with each field separated by "|"
what i want is that I want to extract... (1 Reply)
Hi friends,
My input file is this way
chr1 100 200 "abc"
chr1 350 400 "abc"
chr2 450 600 "def"
chr2 612 780 "def"
How do I make this file into
chr1 100 400 "abc"
chr2 450 780 "def"
This is basically matching on the fourth column and taking the minimum of second column and the... (4 Replies)
Hi,
I have a tab delimited text file where the first two columns equal numbers. I want to delete all rows where the value in the first column equals the second column. How do I go about doing that? Thanks!
Input:
1 1 ABC DEF
2 2 IJK LMN
1 2 ZYX OPW
Output:
1 2 ZYX OPW (2 Replies)
hello,
I have a file as follows:
F0100010 A C F0100040 A G BTA-28763-no-rs 77.2692
F0100020 A G F0100030 A T BTA-29334-no-rs 11.4989
F0100030 A T F0100020 A G BTA-29515-no-rs 127.006
F0100040 A G F0100010 A C BTA-29644-no-rs 7.29827
F0100050 A... (9 Replies)
I have a file as follows
ATOM 5181 N AMET K 406 12.440 6.552 25.691 0.50 7.37 N
ATOM 5182 CA AMET K 406 13.685 5.798 25.578 0.50 5.87 C
ATOM 5183 C AMET K 406 14.045 5.179 26.909 0.50 5.07 C
ATOM 5184 O MET K... (14 Replies)
Hello to all,
I have the following text where columns are separated by spaces. I want to have the 3rd column separating
3 strings with 2 "_" in the format below:
LeftSring_CentralString_RightString
So, in 3rd column I want to replace all "_" with "-", except the first and last "_"
The... (5 Replies)
Hi,
I need to extract the first character of second column of my file. If the condition matches, then I need to print the 2nd and 3rd column as my output
I tried below mentioned query but it was not working
awk -F'|' '$2~/^5/' Sgn_group.txt
File Name : Sgn_group.txt
country... (2 Replies)
Discussion started by: suresh_target
2 Replies
LEARN ABOUT DEBIAN
xmpanedwindow
XmPanedWindow(3) LessTif Manuals XmPanedWindow(3)NAME
XmPanedWindow - Motif-compatible container widget for paned windows
SYNOPSIS
#include <Xm/PanedW.h>
XmPanedWindow
XmCreatePanedWindow
DESCRIPTION
XmPanedWindow
X RESOURCES
Name Class Type Default Access
-------------------------------------------------------------------------------------
XmNorientation XmCOrientation Orientation NULL CSG
XmNmarginWidth XmCMarginWidth HorizontalDimension NULL CSG
XmNmarginHeight XmCMarginHeight VerticalDimension NULL CSG
XmNspacing XmCSpacing VerticalDimension NULL CSG
XmNrefigureMode XmCBoolean Boolean NULL CSG
XmNseparatorOn XmCSeparatorOn Boolean NULL CSG
XmNsashIndent XmCSashIndent HorizontalPosition NULL CSG
XmNsashWidth XmCSashWidth HorizontalDimension NULL CSG
XmNsashHeight XmCSashHeight VerticalDimension NULL CSG
XmNsashShadowThickness XmCShadowThickness HorizontalDimension NULL CSG
XmNinsertPosition XmCInsertPosition Function NULL CSG
XmNorientation
XmNmarginWidth
XmNmarginHeight
XmNspacing
XmNrefigureMode
XmNseparatorOn
XmNsashIndent
XmNsashWidth
XmNsashHeight
XmNsashShadowThickness
XmNinsertPosition
CLASS HIERARCHY Object(3)Rect(3)UnNamedObj(3)Core(3)Composite(3)Constraint(3)XmManager(3)XmPanedWindow(3)CALLBACKS CONVENIENCE FUNCTIONS SEE ALSO LessTif Project April 1998 XmPanedWindow(3)