consolidate file in unix


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting consolidate file in unix
# 1  
Old 05-17-2009
consolidate file in unix

hi,
i am trying to consolodate the files in the unix with the '>>' i have some 50 or 60 files.is there any another way of consolidating the alll 50 or 60 files in to one file. actually the way i m doing creaating the problem while loading the file with teradat tpump and fasload.
so if there is any command with which i can do the same.
# 2  
Old 05-17-2009
Code:
cat * > outfile  [ all the files in the direcotry]
cat *.txt > onefile

if all of them hav .txt
# 3  
Old 05-17-2009
but all files with differnet names and one more thing i dont want to do with this operation >
is there any command that effiecently do the same thing
# 4  
Old 05-17-2009
"tee

$command | tee -a output.file

for more info use "$man tee"
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Consolidate files based on priority

please help, I would like to merge 4 files, all of them same format. The first col is the key for all files,followed by variable number of fields so I want to check if the key is present in the files according to priority and then also add a column saying it came from which file . So the... (4 Replies)
Discussion started by: ritakadm
4 Replies

2. Shell Programming and Scripting

Consolidate several lines of a CSV file with firewall rules, in order to parse them easier?

Consolidate several lines of a CSV file with firewall rules Hi guys. I have a CSV file, which I created using an HTML export from a Check Point firewall policy. Each rule is represented as several lines, in some cases. That occurs when a rule has several address sources, destinations or... (4 Replies)
Discussion started by: starriol
4 Replies

3. Shell Programming and Scripting

Consolidate 2 file in 1 file

Hi I have to file in with 1 similar colomn. from both files i want similar values from column1 and col2 from file1 and col2 from file2 in file 3 file1 colomn 1 colomn2 rmoved (8 Replies)
Discussion started by: mirwasim
8 Replies

4. Shell Programming and Scripting

Multiple lines consolidate

This post is start for me ... I stumped at something that I not sure as to how start on ... I tried so of your script that i honestly lost mind looking and looking here ... please help COL1 COl2 COL3 12222 AUH FLUEH 12222 SSC OPERA 12222 SSC ... (8 Replies)
Discussion started by: Sebastian.Thoma
8 Replies

5. Shell Programming and Scripting

Extract two file contents and consolidate in the third file

Hi all I have two files (first_file.txt) and ( second_file.txt). The first file consists of sentences line by line given as : Established in 1905 , Las Vegas officially became a city in 1911 . With the growth that followed , at the close of the century Las Vegas was the most populous... (10 Replies)
Discussion started by: my_Perl
10 Replies

6. Shell Programming and Scripting

How to consolidate values in one column from different rows into one?

Hi Guys, Thank you all for helping me with my different queries and I continue to get better at scripting because of help from all of you! I have a file that would look something like - ID SUB ID VALUE 1 10 5 2 18 7 1 ... (1 Reply)
Discussion started by: sncoupons
1 Replies
Login or Register to Ask a Question