![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| redirection | DNAx86 | Shell Programming and Scripting | 9 | 04-18-2008 11:24 AM |
| sed redirection | myle | UNIX for Dummies Questions & Answers | 3 | 03-12-2008 04:04 PM |
| Complex Pipeline/Redirection/Regular Expression problem | netmaster | UNIX for Dummies Questions & Answers | 1 | 11-28-2005 09:55 PM |
| Redirection Problem | vibhor_agarwali | UNIX for Dummies Questions & Answers | 7 | 07-14-2005 03:01 AM |
| facing a problem in redirection | vivekshankar | UNIX for Dummies Questions & Answers | 4 | 05-23-2005 09:24 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
redirection problem
Hello Experts,
I am facing the following problem .. Code:
>cat my_file initial begin StartSim; LDR(on); // Lock Detect Enable But when I trying the same with the following command it shows me all the line in the same line.Like Code:
>echo `cat my_file` Is there any way around to print it as in my input file .. to the output file. Thanks in advance.. Last edited by user_prady; 12-09-2007 at 11:46 PM. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
echo "`cat cattest`\n" wil honor the new line.
|
|
#3
|
|||
|
|||
|
Thanks for the reply. But I am afraid its not working in my shell.<tcsh>........
|
|
#4
|
|||
|
|||
|
What exactly are you trying to achieve with this code? Your code makes no sense.
|
|
#5
|
|||
|
|||
|
Quote:
I want to do some thing like this Code:
#! /bin/sh for temp in `find ./CSV/ -name "*.file"` do fname=`basename $temp` echo "Line 1 " > ./out/$fname echo "Line 2 " >> ./out/$fname ........ echo "Line 100" >> ./out/$fname ./transform.sh $temp >> ./out/$fname done like echo `cat morelines` Thanks in advance . If any other method to do it better most appriciated.. |
|||
| Google The UNIX and Linux Forums |