LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2012, 02:30 PM   #16
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530

Quote:
Originally Posted by catkin View Post
But change read $DEPENV to read DEPENV
Good one.


Quote:
Originally Posted by catkin View Post
unSpawn, what's got into you?
Dunno.

BTW why won't "${DEPENV//\[A-Z\]/\[a-z\]}" work?
 
Old 05-08-2012, 02:43 PM   #17
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,252

Rep: Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685
Quote:
BTW why won't "${DEPENV//\[A-Z\]/\[a-z\]}" work?
No it will not, for 2 reasons:

1. Bash is not storing the first value after // and it would have no idea what in the second list to change it with

2. The [] do not need to be escaped after the // otherwise it is looking for the real brackets
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bash Shell program question - if error then mailx khandu Programming 4 04-20-2012 07:55 PM
Suppressing error messages in BASH Shell swiftguy121 Linux - Software 4 05-25-2007 09:59 PM
bash shell script error redirect problem..... budword Programming 4 05-09-2007 08:32 PM
Error in bash shell ppy Programming 2 11-10-2004 01:35 AM
pesky bash shell error every time I log in illiniguy3043 Linux - Newbie 1 06-12-2004 02:54 PM


All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration