- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- strange thing
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
11-11-2003 05:51 PM
11-11-2003 05:51 PM
Hello everybody,
Today I have copied file from windows system to my HP-UX server.But I couldn't delete or move that file.See below the file name.
ssa(12-12-12).txt
If I try to delete or move that file the following error is giving.
sh: Syntax error: `(' is not expected.
Thanking you,
Surya.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 05:55 PM
11-11-2003 05:55 PM
Re: strange thing
rm ' ssa(12-12-12).txt'
or
rm ssa\(12-12-12\).txt
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 05:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 05:55 PM
11-11-2003 05:55 PM
Re: strange thing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 06:02 PM
11-11-2003 06:02 PM
Re: strange thing
Thanks for your instant response.I able to delete that file by using wildcards.I used rm ssa*.txt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 06:03 PM
11-11-2003 06:03 PM
Re: strange thing
The "(" character has special meaning to the hp-ux shells and it is being interpreted as such when you type the normal "rm" command.
THe solutions above show methods of stopping the special meaning of characters being used when you type something in. The "\" before a special character "turns off" the special meaning. Also, any characters between two ' marks will also not have thei special characters interpreted. Example special characters are * ? [ { \ & > < and loads more too I should think.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 06:04 PM
11-11-2003 06:04 PM
Re: strange thing
You might be able to delete several of them with
rm -i *
THis will go through all the files in the directory and ask you to confirm you want them deleted. If you type "y", it deletes them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 06:05 PM
11-11-2003 06:05 PM
Re: strange thing
rm 'ssa(12-12-12).txt'
or rm ssa\(12-12-12\).txt
Ref this link, It will give you clear idea.
http://www.helpdesk.umd.edu/topics/troubleshooting/os/unix/1231/
Regards,
Bala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 06:09 PM
11-11-2003 06:09 PM
Re: strange thing
Using the quotes (in this case they can be single and double) solves the problem in this case and with the spaces. The leading dash needs another solution (using '--' (two dashes) as first argument for rm can solve that issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 12:17 AM
11-13-2003 12:17 AM
Re: strange thing
ls -i *
126 ^H
find . -inum 126 -exec ls -l {} \;
To "see" you grabbed the correct file.
find . -inum -exec mv {} goofyfile \;