- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Name Changing
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 03:45 PM
тАО01-23-2003 03:45 PM
Name Changing
EDIT:
Script needs to be in the UNIX Korn Shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 01:30 AM
тАО01-24-2003 01:30 AM
Re: Name Changing
I would use the sed to do the actual replacement.
sed -e 's/\(^[a-z][a-z]*\)\([A-Z][A-Z]*\)/\1_\2/g' -e 's/\(^[A-Z][A-Z]*\)\([a-z][a-z]*\)/\1_\2/g'
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 01:43 AM
тАО01-24-2003 01:43 AM
Re: Name Changing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 02:17 AM
тАО01-24-2003 02:17 AM
Re: Name Changing
Perhaps a shorter variant of Dietmar solution :
sed -e 's/[a-z][a-z]*/&_/g' -e 's/[A-Z][A-Z]*/&_/g' -e 's/_$//'
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 02:23 AM
тАО01-24-2003 02:23 AM
Re: Name Changing
sed -e 's/[a-z][a-z]*/&_/g' -e 's/[A-Z][A-Z]*/&_/g' -e 's/_$//' -e 's/_\././'
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 02:33 AM
тАО01-24-2003 02:33 AM
Re: Name Changing
[NIT-PICK MODE ON]
What happens with e.g. "aaa111"?
[NIT-PICK MODE OFF]
:-)
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 03:20 AM
тАО01-24-2003 03:20 AM
Re: Name Changing
By the way, I wanted to tell you that I apreciate a lot your contributions to this forum. Fast and efficient !
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 10:26 AM
тАО01-24-2003 10:26 AM
Re: Name Changing
[NIT-NIT-PICK MODE ON]
Where's the case change in "aaa111"?
[NIT-NIT-PICK MODE OFF]
;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 11:22 AM
тАО01-24-2003 11:22 AM
Re: Name Changing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 06:23 AM
тАО01-29-2003 06:23 AM
Re: Name Changing
if you like...
the file is already in UNIX... don't forget to change the directory of perl on the first line...
ciao
jerome
EDIT
the script can be run from ksh ;)
see attached