10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
help with a command please
i have 3 files that i need to merge in to a 4th file
using awk or sed
the files have more than 3 lines in them
file 1
AAA
BBB
CCCfile 2
AAA
BBB
CCCfile 3
AAA
BBB
CCCi want the 4th file to look like this after merging
AAA AAA AAA (3 Replies)
Discussion started by: bob123
3 Replies
2. Shell Programming and Scripting
I have two files with same layout which i want to merge, removing the duplicate header and adding the count in footer
HD|09052014|09052014
data1|data2|data3
data1|data2|data3
data1|data2|data3
data1|data2|data3
TR|09052014|09052014|4
HD|09052014|09052014
dt1|dt2|dt3... (4 Replies)
Discussion started by: depakjan
4 Replies
3. Shell Programming and Scripting
Dear Gents,
Please I need your help... I need small script :) to do the following.
I have a thousand of files in a folder produced daily.
I need first to merge all files called. txt (0009.txt, 0010.txt, 0011.txt) and and to output a resume of all information on 2 separate files in csv... (14 Replies)
Discussion started by: jiam912
14 Replies
4. Shell Programming and Scripting
Hi Gurus,
I have two files as below
file1
abc
cde
cdd
cdf
file2
123
234
345
456
I want to get
abc 123
cde 234
cdd 345 (3 Replies)
Discussion started by: ken6503
3 Replies
5. Shell Programming and Scripting
Hi,
My requirement is,there is a directory location like:
:camp/current/
In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated... (10 Replies)
Discussion started by: srikanth_sagi
10 Replies
6. Shell Programming and Scripting
hi,
i've two files whcih i need to merge in below format.
File1-
DEFINE
lc_driver CHAR(3)
INITIALIZE gr_XXX_MAIN_TABLE_XXX.* TO NULL
{
EXECUTE p_XXX_MAIN_TABLE_XXX_ins USING gr_XXX_MAIN_TABLE_XXX.*
}
File2 -
# field1
LET table1.field1= (8 Replies)
Discussion started by: dvah
8 Replies
7. UNIX for Dummies Questions & Answers
Hello everybody,
I'm trying to merge a lot of files, but I want to include the filename to the end of each line. I've tried to use cat, but I got stuck.
My files are for example:
file01.001
123456 aaa ddd ee
458741 eee fff ee
file02.003
478596 uuu ddd ee
145269 ttt fff ee
... (4 Replies)
Discussion started by: ernesto561
4 Replies
8. Shell Programming and Scripting
Given are File A and File B
File A has for example 5 lines:
AAA
BBB
CCC
DDD
EEE
File B has 3 lines:
111
222
333
How can i merge A and B into:
111
222
333
AAA (first line from A)
then a new file: (4 Replies)
Discussion started by: Y-T
4 Replies
9. Shell Programming and Scripting
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
Discussion started by: shashi1982
2 Replies
10. Shell Programming and Scripting
Hi Gurus,
I have 13 comma(,) seperated files that i have to merge and create a single file which has file name attached at th end of each record in the out put file. Can any one please help me with writing a unix script with this issue?
test1.dat
BIG ID,Local ID,Bond... (2 Replies)
Discussion started by: vkr
2 Replies