The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: echo with stdin
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 09-28-2006
srikanthus2002's Avatar
srikanthus2002 srikanthus2002 is offline
Registered User
  
 

Join Date: Sep 2006
Location: Can u guess...!
Posts: 160
[sri]$ echo "$(<just)"
var=sri
for i in 1 2 3 4 5
do
echo "$var.$i"
done

------------------------------

[sri]$ xargs echo <just
var=sri for i in 1 2 3 4 5 do echo $var.$i done

when i use this command xargs it is giving all line in single line as shown above

so i think it would be better to use first example....

i am woundering that we can use echo in different manner..echo "$(<just)"

Thanks ..jenny...