- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Open or Remove the file with bad name
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
01-05-2006 12:41 AM
01-05-2006 12:41 AM
I have a bunch of files created by users with 3rd party software, the file names are all look like c:\01042006155142bs. Could someone tell me how to open these files, or how to delete these files?
My server is HPUX 11i, thanks a lot for your help.
Leah
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 12:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 12:45 AM
01-05-2006 12:45 AM
Re: Open or Remove the file with bad name
Leah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 12:45 AM
01-05-2006 12:45 AM
Re: Open or Remove the file with bad name
A general variation of this problem is to handle a file with special, non-printing characters as well as embedded spaces or special characters. Here's one way to search-and-destroy those:
# cd filesystem
# find . -xdev name "*bad*" -exec ls -li {} \;
(or):
# ls -ilb . #...in place of the above 'find'
Either the 'find' or the 'ls' alone will expose the inode number of the file in question. Now use it to delete the file, like this:
# find . -inum 152 -xdev -exec rm -i {} \;
REMEMBER that an inode number is only unique WITHIN a filesystem! Using an interactive 'rm' is always a safety net. The '-xdev' option of 'find' also insures that you do NOT cross mountpoints (filesystems).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 01:03 AM
01-05-2006 01:03 AM
Re: Open or Remove the file with bad name
find . -xdev name "*gltest*" -exec ls -li {} \
and i got this error:
find: missing conjunction
could you help me
Thanks again
Leah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 01:06 AM
01-05-2006 01:06 AM
Re: Open or Remove the file with bad name
i tried this:
find . -xdev name "*gltest*" -exec ls -li {} \
and i got this error:
find: missing conjunction
could you tell me what's wrong?
Thanks again
Leah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 01:11 AM
01-05-2006 01:11 AM
Re: Open or Remove the file with bad name
I think that is because you need a minus sign in front of the "name"
find . -xdev -name "*gltest*" -exec ls -li {} \
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 01:13 AM
01-05-2006 01:13 AM
Re: Open or Remove the file with bad name
Leah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 01:15 AM
01-05-2006 01:15 AM
Re: Open or Remove the file with bad name
My apologies, I dropped the "-". You should use:
# find . -xdev -name "*bad*" -exec ls -li {} \;
See the manpages for 'find(1)' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 01:16 AM
01-05-2006 01:16 AM
Re: Open or Remove the file with bad name
Good luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 01:19 AM
01-05-2006 01:19 AM
Re: Open or Remove the file with bad name
http://www.helpdesk.umd.edu/topics/troubleshooting/os/unix/1231/
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 01:23 AM
01-05-2006 01:23 AM
Re: Open or Remove the file with bad name
Leah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 01:33 AM
01-05-2006 01:33 AM
Re: Open or Remove the file with bad name
:-((