LinuxQuestions.org
Visit Jeremy's Blog.
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, 01:30 PM   #16
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599

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, 01:43 PM   #17
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,976

Rep: Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181
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 06:55 PM
Suppressing error messages in BASH Shell swiftguy121 Linux - Software 4 05-25-2007 08:59 PM
bash shell script error redirect problem..... budword Programming 4 05-09-2007 07:32 PM
Error in bash shell ppy Programming 2 11-10-2004 12:35 AM
pesky bash shell error every time I log in illiniguy3043 Linux - Newbie 1 06-12-2004 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:24 AM.

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
Open Source Consulting | Domain Registration