Print some results in a text file using script in linux
hello everyone,
i really need your help to write a script which would just print following kind of result into a text file (result.txt) Code:
XYZ test Results above all the values of <something> are dynamic or predefined. Please, kindly help to with this issue... Thanks in advance. |
Just about any programming lang COULD do that, it's your choice... Personally I'd probably use Perl.
http://perldoc.perl.org/ http://www.perlmonks.org/?node=Tutorials |
I am just going to use printf for this now.. Thanks for your response.
|
Code:
echo "ID: $1 Date: $2 /n/n Then you sh program.sh p1 p2 p3 p4 p5 p6 > result.txt where p are the parameters or you can chmod a+x program.sh and just ./program.sh p1 p2 p3 p4 p5 p6 > result.txt I get the feeling that this is homework. |
All times are GMT -5. The time now is 04:20 PM. |