Help with uunix please

Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: May 2007
Posts: 24
Reputation: cyberman111 is an unknown quantity at this point 
Solved Threads: 0
cyberman111 cyberman111 is offline Offline
Newbie Poster

Help with uunix please

 
0
  #1
Apr 16th, 2008
HELLO i HAVE A SCRIPT THAT TAKES INFORMATION FROM 2 FILES AND PUT IT IN ONE, NOW I NEED TO PUT ALL THE INFORMATION(OUTPUT) INTO A NEW FILE , THIS IS HAS TO BE DONE IN THE ORIGINAL SCRIPT NOT COMMAND LINE, CAN ANYONE TELL ME HOW TO DO THIS .
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 399
Reputation: eggi will become famous soon enough eggi will become famous soon enough 
Solved Threads: 47
eggi eggi is offline Offline
Posting Whiz

Re: Help with uunix please

 
0
  #2
Apr 16th, 2008
Hey There,

You could just script out a simple cat from both files and redirect the all the output to a new one as part of the script.

Best wishes,

Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 11
Reputation: jinternalframe is an unknown quantity at this point 
Solved Threads: 1
jinternalframe's Avatar
jinternalframe jinternalframe is offline Offline
Newbie Poster

Re: Help with uunix please

 
0
  #3
Apr 17th, 2008
Its very simple, just after doing all the processing
echo {data} > output_file

If you need some more explanation, please paste a snippet of the actual script
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,857
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 120
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: Help with uunix please

 
0
  #4
Apr 17th, 2008
Shell Scripting Syntax (Toggle Plain Text)
  1. cat file1 > file;
  2. cat file2 >>file;
Last edited by ithelp; Apr 17th, 2008 at 8:40 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Shell Scripting Forum
Thread Tools Search this Thread



Tag cloud for Shell Scripting
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC