- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- changing large number of file names
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
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
07-28-2004 09:37 AM
07-28-2004 09:37 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 09:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 09:48 AM
07-28-2004 09:48 AM
Re: changing large number of file names
for FILE in $(ls -1 *";1")
do
NEWFILE=$(echo $FILE | awk -F";" '{print $1}')
mv $FILE $NEWFILE
done
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 10:00 AM
07-28-2004 10:00 AM
Re: changing large number of file names
another try:
for F1 in *\;1
do
F2=`expr "${F1}" : "\(.*\);1"`
mv ${F1} ${F2}
done
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 11:56 AM
07-28-2004 11:56 AM
Re: changing large number of file names
Or... VMS maybe.
Jamie>> for whatever reason, the one hundred plus files with different file names all had a ";1" attached to them
Just in case you are curious about this, or just for you amuzement...
The filesystem ('files-11') for the HP OpenVMS Operating system (nee Digital's VAX/VMS) has a concept of file VERSIONS.
They are identified in a trailing ;
By default programs open the 'latests' version, for example test.txt;4, and editors would create new versions in this example test.txt;5. You can always address old versions directly, by absolute or relative number.
Directory records for VMS consist of a filename + an arrays of version-number + file-id ('i-node') pairs.
The "Purge" operation would delete all but the latests versions.
more than you cared to know huh?
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 02:57 PM
07-28-2004 02:57 PM
Re: changing large number of file names
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 07:48 PM
07-28-2004 07:48 PM
Re: changing large number of file names
Without place to doubts, these files come from a Digital VAX/VMS source, the version controls and the names in capitals they are indicative unmistakable.
Pls try this:
#cd /
#find . -type f -name "*;1"|while read NAME
do
NEWNAME=`echo $NAME|awk -F";" '{print $1}'`
mv $NAME $NEWNAME
done
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 08:19 PM
07-28-2004 08:19 PM
Re: changing large number of file names
find
It will ask you the permission to delete with the y/n. If you want to delete it with out any input then
find
If you want to rename it normally then,
find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 07:17 AM
07-29-2004 07:17 AM
Re: changing large number of file names
PHCO_25841 s700_800 11.11 Add Rock Ridge extension to mount_cdfs(1M)
PHKL_26269 s700_800 11.11 Rock Ridge extension for ISO-9660
PHKL_28025 s700_800 11.11 Rock Ridge extension for ISO-9660
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 02:06 PM
07-29-2004 02:06 PM
Re: changing large number of file names
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 01:53 AM
07-30-2004 01:53 AM
Re: changing large number of file names
The only workaround for 10.20 is to use the PFS toolset which does indeed access the RockRidge directory on the CD, but requires NFS and can be a bit unstable for use in a production system. For 11.xx, get the appropriate patches (always 3) and use -orr. Future release will probably default to -orr behavior (like most other Unices).
Bill Hassell, sysadmin