Home » Infrastructure » Unix » Help with appending files
Help with appending files [message #97737] Wed, 11 December 2002 08:22 Go to next message
Jay W
Messages: 2
Registered: December 2002
Junior Member
I wrote the command below. I want to append one file to the other but I want to add a space between the 2 files in the new file.. how do I do that?? I've looked all over the web.. thanks

grep -i nt filename1 > newfile &#124grep -i nt filename2 >> newfile
Re: Help with appending files [message #97740 is a reply to message #97737] Thu, 12 December 2002 12:30 Go to previous messageGo to next message
Sanjay
Messages: 236
Registered: July 2000
Senior Member
cat file1 > file3
echo "" >> file3
echo "" >> file3
cat file2 >> file3
Re: Help with appending files [message #97744 is a reply to message #97737] Fri, 13 December 2002 06:39 Go to previous message
Jay W
Messages: 2
Registered: December 2002
Junior Member
Thanks.. this is what I used

grep -i nt oldfile > newfile | echo " " >> newfile &#124grep -i nt oldfile2 >> newfile
Previous Topic: How to read sqlloader log files for rejected records
Next Topic: Oracle 8i on SCO Unix
Goto Forum:
  


Current Time: Fri Apr 19 18:38:09 CDT 2024