04-06-2010
combine
Dear all
i am having text file like
xxx|yyy|1|2|
zzz|rrr|3|4|
www|xxx|><
5|6|><
jjj|kkk|><
8|9><
i want to join two lines which are having ' >< ' by taking only two lines at a stretch ...using awk command
the result output should be
xxx|yyy|1|2|
zzz|rrr|3|4|
www|xxx|5|6|
jjj|kkk|8|9|
pls help
pls help
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi all,
i have file as below:
N000150100B00|1
N000150100B00|3
E0P2C42100000|2
E0P2C42100000|3
N000150100B00|2
N000150100B00|4
E0P2C42100000|3
E0P2C42100000|3
E0P2C42100000|6
now i want to compare 1st field of all rows with all other row's first field
and if they are same then i... (2 Replies)
Discussion started by: pranav.pandya
2 Replies
2. Post Here to Contact Site Administrators and Moderators
I have two accounts, one for gmail and one for all other Google applications. I would like to put the gmail account on the same account as the others.
I like Google, and all the products offered. However, it has been very difficult and frustrating to find this forum, and to figure out how to... (2 Replies)
Discussion started by: chaimelle
2 Replies
3. Shell Programming and Scripting
Hi All ,
Any one help me to combine two files in shell scripting .Below is my requrement
i have 2 files as follows
filea
newyork America
Texas America
london Engalad
Fileb
abc
def
xyz
i have to combine this file as follows
newyork America abc
Texas ... (1 Reply)
Discussion started by: ajmalc
1 Replies
4. Shell Programming and Scripting
Hi
I am having text file like this
001|ramu|hno221|><
sheshadripuram|delhi|560061><
002|krishna|hno225|><
newdelhimain|delhi|560061><
i want to combine every two lines as single...line...
i.e
001|ramu|hno221|sheshadripuram|delhi|560061
can u pls help me (3 Replies)
Discussion started by: suryanarayana
3 Replies
5. Shell Programming and Scripting
Hi Evereyone,
%q = ();
$q{"a"} = 0;
$q{"b"} = 0;
$q{"c"} = 0;
if ($q{"a"} !=0 || $q{"b"} !=0 || $q{"c"} !=0) {
print "non-zero"
}
if any simple way to do that? assume you have not only a, b, c inside %q, but a, b, c, d, e, ... ...
Thanks (2 Replies)
Discussion started by: jimmy_y
2 Replies
6. Shell Programming and Scripting
Hi, can anybody help me.
I want to combine these two file into one horizontally.
1st File:
...
10:00
10:01
10:02
10:03
10:04
10:05
...
2nd File:
...
0715 10:00 Caps: 50
0715 10:01 Caps: 65
0715 10:02 Caps: 75
0715 10:04 Caps: 50
0715 10:05 Caps: 87 (3 Replies)
Discussion started by: lurak
3 Replies
7. Shell Programming and Scripting
Hi,
i have two files. i want to combine records from these two files in below manner :-
first line from first file(1st line)
2nd line from 2nd file(1st line)
3rd line from 1st file(2nd line)
4th line from 2nd file(2nd line)
so on.... (1 Reply)
Discussion started by: deepakiniimt
1 Replies
8. Programming
can these 3 be combined into 1 query?
createtablea1as
selecta.tps_Res_nb,
b.tkt_prod_cd,
b.tkt_prod_typ_nm,
b.prod_intrnl_ds,
b.tkt_prod_typ_nm AS TKT_ENTL_NM,
casewhen b.tkt_prod_nm isnotnullthen b.tkt_prod_nm
when b.tkt_prod_nm isnulland b.prod_intrnl_ds isnotnullthen... (1 Reply)
Discussion started by: dwr80
1 Replies
9. Shell Programming and Scripting
How to cilnd desided output from file1 and file2 with awk.
file1
1 2
7 8 9
14 15 16
21 22 23
28 29 30
file2
aa bb cc
dd ee ff
gg hh ii jj
kk ll (3 Replies)
Discussion started by: theshashi
3 Replies
LEARN ABOUT DEBIAN
xdriver
xdriver(1grass) Grass User's Manual xdriver(1grass)
NAME
XDRIVER - GRASS Monitor - driver to display GRASS maps in X11 environment.
(drivers)
DESCRIPTION
The GRASS XDRIVER can be used to display GRASS maps in X11 environment.
Usage in details
Variables:
GRASS_WIDTH
set the x size in pixel for the XDRIVER (default: 640)
GRASS_HEIGHT
set the y size in pixel for the XDRIVER (default: 480)
XDRIVER_TRUECOLOR=[TRUE|FALSE]
Look for a TrueColor visual (?)
XDRIVER_WINDOW
?
XDRIVER_PRIVATE_CMAP
Private color map (?)
XDRIVER_LEFT
defines the left position of GRASS monitor (removed?)
XDRIVER_TOP
define the upper position of GRASS monitor (removed?)
Set the XDRIVER size
# bash shell syntax:
export GRASS_WIDTH=xxx
export GRASS_HEIGHT=yyy
# c shell syntax:
setenv GRASS_WIDTH xxx
setenv GRASS_HEIGHT yyy
To control the XDRIVER, use the d.mon module.
The maximum color depth depends on the current X Server settings.
SEE ALSO
Display drivers
HTMLMAP driver, PNG driver, PostScript driver
d.frame, d.mon, g.region d.rast, d.vect
AUTHORS
CERL
various improvements from several authors.
Rewritten 2001 by Glynn Clements
Last changed: $Date: 2008-03-23 15:34:53 +0100 (Sun, 23 Mar 2008) $
Full index
(C) 2003-2011 GRASS Development Team
GRASS 6.4.2 xdriver(1grass)