Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 


Frequently Asked Questions

Go Back to FAQ list


How do I read environment variables with sed?
By:- dbapool Editor
 2 Person(s) found this faq useful.


To ALLOW the Unix shell to interpret the dollar sign, put the script in double quotes:

sed "s/_terminal-type_/$TERM/g" input.file >output.file

To PREVENT the Unix shell from interpreting the dollar sign as a shell variable, put the script in single quotes:

sed 's/.$//' infile >outfile




Did you find this FAQ helpful?

Yes: No:

Name:

Email:

Comments:




Go Back to FAQ list






  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software