sed command not work with variables?
I am trying to write a simple script which will take a variable with sed to take a line out of a text and display it
while read list<&3
sed -n '$list p'<list2
this does not work, yet when I replace the $list variable from the sed command and put in a definite value, it works just fine.
Anybody know whats going on here?
|Thread Tools||Search this Thread|
|More UNIX and Linux Forum Topics You Might Find Helpful|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Perl variables inside Net::Telnet::Cisco Module doesn't work||ahmed_zaher||Shell Programming and Scripting||5||12-22-2010 08:29 AM|
|reading external variables does not work||ABE2202||Shell Programming and Scripting||2||08-03-2009 06:20 PM|
|cd command doesn't work through variables||vipinchauhan222||Shell Programming and Scripting||16||05-02-2009 04:22 AM|
|assign a command line argument and a unix command to awk variables||sweta_doshi||Shell Programming and Scripting||0||08-08-2008 07:54 AM|
|Working with Script variables; seems like this should work...||Chong Lee||UNIX for Dummies Questions & Answers||2||07-27-2007 06:43 PM|