Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Combine files


 
Thread Tools Search this Thread
# 1  
Combine files

i have 3 files: file1, file2 and file3

file1 has this content:

#!/bin/ksh

sqlplus username/password@Servername << EOF

file2 has this content:

drop table dropme cascade constraints;

file3 has this content:

EOF

all said and done, file1, file2 and file2 will look like this:
#!/bin/ksh
sqlplus username/password@Servername << EOF
EOF

---------- Post updated at 09:04 PM ---------- Previous update was at 08:51 PM ----------

cat test2 >> test1
cat test3 >> test1

worked for me. if you know a better way, please reach out. thanks.
 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Automate splitting of files , scp files as each split completes and combine files on target server
malaika
i use the split command to split a one terabyte backup file into 10 chunks of 100 GB each. The files are split one after the other. While the files is being split, I will like to scp the files one after the other as soon as the previous one completes, from server A to Server B. Then on server B ,...... UNIX for Beginners Questions & Answers
2
UNIX for Beginners Questions & Answers
combine two files...
deepakiniimt
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....... Shell Programming and Scripting
1
Shell Programming and Scripting
combine multiple files by column into one files already sorted!
ahmedamro
I have multiple files; each file contains a certain data in a column view simply i want to combine all those files into one file in columns example file1: a b c d file 2: 1 2 3 4 file 3: G... Shell Programming and Scripting
4
Shell Programming and Scripting
3 files combine into one help please
sctxms
Ok here is what I have file a {{BEGIN}} {{FAX File b 5555464584 5555465292 5555465828 5555485930 5555474939 File C }} ON ORDERS LESS THAN 70 LBS AND THE PACKAGE IS A COMBINED LENGTH AND GIRTH EQUAL TO OR LESS THAN 108" PLEASE UTILIZE UPS. ...... Shell Programming and Scripting
4
Shell Programming and Scripting
Combine files with same name
jmwhitford
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...... Shell Programming and Scripting
4
Shell Programming and Scripting

Featured Tech Videos