943,740 Members | Top Members by Rank

Ad:
Apr 16th, 2008
0

Help with uunix please

Expand Post »
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 .
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cyberman111 is offline Offline
24 posts
since May 2007
Apr 16th, 2008
0

Re: Help with uunix please

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
Reputation Points: 102
Solved Threads: 47
Posting Whiz
eggi is offline Offline
399 posts
since Oct 2007
Apr 17th, 2008
0

Re: Help with uunix please

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
Reputation Points: 11
Solved Threads: 1
Newbie Poster
jinternalframe is offline Offline
11 posts
since Apr 2008
Apr 17th, 2008
0

Re: Help with uunix please

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.
Reputation Points: 769
Solved Threads: 128
Banned
ithelp is offline Offline
1,910 posts
since May 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Shell Scripting Forum Timeline: How to find the path of the tool?
Next Thread in Shell Scripting Forum Timeline: sed command not running





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC