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 .

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

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

cat file1 > file;
cat file2 >>file;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.