- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing a file name with a space
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
03-10-2003 01:00 PM
03-10-2003 01:00 PM
test 1
Based on some research, I thought it was impossible to run into something like this.
What should I do?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 01:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 01:03 PM
03-10-2003 01:03 PM
Re: Removing a file name with a space
First do an ls -b to make sure that there are no non-printables in the filename.
Now, rm 'test 1' or if control characters are embedded rm -i test* and answer y to the file you want to delete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 01:05 PM
03-10-2003 01:05 PM
Re: Removing a file name with a space
rm -i ./*test*
Then, when the correct filename pops up on the list, answer yes. To all others, answer no. This should do it for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 01:07 PM
03-10-2003 01:07 PM
Re: Removing a file name with a space
Back up one directory, then -
rm -i directory/tes*
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 01:07 PM
03-10-2003 01:07 PM
Re: Removing a file name with a space
The easiest way is to go into the file manager with the GUI interface.
Eileen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 01:35 PM
03-10-2003 01:35 PM
Re: Removing a file name with a space
ls -i *
find
Example:
find . -inum 17321 -exec rm -f {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 03:42 PM
03-10-2003 03:42 PM
Re: Removing a file name with a space
If you have a graphical ftp tool will be very easy, connect as "root", select and delete it!
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 03:46 PM
03-10-2003 03:46 PM
Re: Removing a file name with a space
It's a neat way to see all of the other weird characters that are there too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 04:38 PM
03-10-2003 04:38 PM
Re: Removing a file name with a space
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2003 11:56 PM
03-10-2003 11:56 PM
Re: Removing a file name with a space
rm -- "test 1"
"--" option is a very useful thing, it says to rm, that from now on there will be no options, only the file names, did u ever try to remove file named "-alex" ? :)
good luck.