The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
If first letter of name is a-m do this if n-x do something else
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
If first letter of name is a-m do this if n-x do something else
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
03-12-2009
sandholm
Registered User
Join Date: Dec 2007
Location: New Hampshire
Posts: 20
What about case?
Let me add to the previous example:
case $USER in
[a-mA-M]* ) A;;
[n-zN-Z]* ) B;;
esac
This way you'll match independent of case.
You know how "users" are!
sandholm
View Public Profile
Find all posts by sandholm
Find sandholm's past nominations received
Find sandholm's present nominations given