10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have n of files with ending with _ZERO.txt
need to combine all file ending with _ZERO.txt into 1 file
ex:
A_ZERO.txt
1
2
B_ZERO.txt
3
4
Output:
FINAL.txt
1
2 (3 Replies)
Discussion started by: satish1222
3 Replies
2. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
10 Replies
3. Shell Programming and Scripting
All,
i am new to linux script...
source
Filter: vlan281-BUM-5M
BUM-5M 0 0
Filter: vlan282-BUM-5M
BUM-5M 0 0
Filter: vlan2828-BUM-5M
Filter:... (2 Replies)
Discussion started by: samoptimus
2 Replies
4. UNIX for Dummies Questions & Answers
I need to compile a large amount of data with a common string from individual text files throughout many directories.
An example data file is below. I want to search for the following string, "cc_sectors_1" and combine all the data from each file which contains this string, into one new... (2 Replies)
Discussion started by: GradStudent2010
2 Replies
5. UNIX for Dummies Questions & Answers
I have a data file that looks like this:
infile:
A
13
Z
23
F
22
Z
413
R
16how do I combine the -A option with the -v option to get the lines that don't match 'Z' and their next lines?
the outfile should be:
A
13
F
22
R
16I tried: (1 Reply)
Discussion started by: jdhahbi
1 Replies
6. Shell Programming and Scripting
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|... (2 Replies)
Discussion started by: suryanarayana
2 Replies
7. 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
8. 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
9. Shell Programming and Scripting
Hi all,
I am newbie in unix. Just have some doubts on how to join multiple lines into single line.
I have 1 file with following contents.
R96087641
HostName-kul480My
This is no use any more
%%
E78343970
LocalPath-/app/usr/SG
(Blank in this line)
%%
E73615740... (4 Replies)
Discussion started by: whchee
4 Replies
10. Shell Programming and Scripting
I need a script that combines files with the same name. These files are on a windows directory but the PC has Cygwin so i have a limited unix command set.
What I've got;
WebData_9_2007-09-20.txt
WebData_9_2007-09-20.txt
WebData_9_2007-09-21.txt
WebData_9_2007-09-20.txt... (4 Replies)
Discussion started by: jmwhitford
4 Replies