- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to change the latest character of the file...
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
Forums
Discussions
Discussions
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
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
11-10-2003 10:08 PM
11-10-2003 10:08 PM
how to change the latest character of the filename from 0 --> ?
I have a filename like:
2003-11-10_235900, but I want to translate it to 2003-11-10_235900?. The question is how??
I just want to change the latest character from 0 to ?
Thanks.
//john
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2003 10:11 PM
11-10-2003 10:11 PM
Re: how to change the latest character of the filename from 0 --> ?
mv 2003-11-10_235900 "2003-11-10_235900?"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2003 10:12 PM
11-10-2003 10:12 PM
Re: how to change the latest character of the filename from 0 --> ?
It's a bad idea to have a "?" in your filename because "?" is a shell meta-character. This means that things like "ls *?*" won't give you the results you were expecting. Also, "rm 2003-11-10_23590?" would actually remove all files that begin with 2003-11-10_23590 and have one other character after them, not just the one file you meant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2003 10:12 PM
11-10-2003 10:12 PM
Re: how to change the latest character of the filename from 0 --> ?
just use:
mv 2003-11-10_235900 2003-11-10_235900\?
the result will be
2003-11-10_235900?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2003 10:14 PM
11-10-2003 10:14 PM
Re: how to change the latest character of the filename from 0 --> ?
if you use ksh, make use of name competion then just replace the last char by \?
All the best
Victor