The UNIX and Linux Forums  

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 11-15-2007
user_prady user_prady is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 163
Quote:
Originally Posted by user_prady View Post
Thank you very much Mr. Porter.. Will try now shortly...

Regards,
user_prady
How do do with this code,
Code:
I_plt=/tmp/I_out.plt$$
Q_plt=/tmp/Q_out.plt$$
 
plot(){
  echo "#!/usr/local/bin/gnuplot -persist" > $1_plt
  echo "plot \"$1_indat.txt\" " >> $1_plt
  
 }

  plot I
  cat $I_plt 
  plot Q
  cat $Q_plt
I tried that one it works fine inside double quotes but when I want to replace "$1"in the output redirection it wont works.

user_prady
shall I have to put single qute or double quote for that $1 or > $"$1_plt" .

Last edited by user_prady; 11-16-2007 at 12:03 AM..