Quote:
Originally Posted by Franklin52
Rule 4 of the SIMPLE RULES OF THE UNIX FORUMS:
Do not 'bump up' questions
And now the obligatory question: is this a homework question? If so, we can't help you.
That's against rule 6:
Do not post classroom or homework problems.
Assuming that it's not, can you show us how far you've gotten so far?
Regards
|
Well Its not an Class Room as well as homework problem.. I am trying to make some real world test result documentation script.As i am new to shell domain.. I am not able to figure out this that easily, Till now I have done this much
Code:
#!/bin/sh
#set -x
file=$1
echo $file
while read line;
do
echo $line
done < $file
With this I am able to read my file properly but the data is not coming with proper indentation, It is loosing its initial spacing which I dont want.