- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- viewing and removing extra characters hpux 11i
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
02-08-2006 10:10 PM
02-08-2006 10:10 PM
some extra characters got added to pink directory as pink^?^?^?^?^?$
how to remove this extra character ?
can this extra character be viewed by only
command $ls | cat -ev
what could be the root cause of these extra characters ?
Regards,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 10:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 10:29 PM
02-08-2006 10:29 PM
Re: viewing and removing extra characters hpux 11i
cd /op/rose
mv "pink^?^?^?^?^?$" pink
Done.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 10:48 PM
02-08-2006 10:48 PM
Re: viewing and removing extra characters hpux 11i
when you have any spl charc use " " to move
this will work fine even when you have file like this mv /top/pink/"Test Shiv" /opt/pink/test_shiv
use mv /opt/rose/"ping???"
This may be b'cos of your evn set
check man locale or lacaledef
Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 11:37 PM
02-08-2006 11:37 PM
Re: viewing and removing extra characters hpux 11i
If 'pink' is already unique, then the solution may be as simple as:
cd /opt/rose
mv pink* pink
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 12:14 AM
02-09-2006 12:14 AM
Re: viewing and removing extra characters hpux 11i
You already know how to rename or remove the file. You also asked how to view the full filename and how the extra characters appeared.
Using 'cat -etv' is one method to expose non-printing characters. Another is:
# ls | xd
In your specific case, the "^?" couplet was produced by the delete key. You can see this by using 'xd'. A hexadecimal 7F is a DEL character.
Unless you have specifically mapped the delete key, you should be able to reproduce the creation of a file like this by typing:
# touch pinkkkk
...where
When typed, the
Now do:
# stty erase ''
...Note that I typed the single quote twice before pressing the
Now try touching (creating) another file and correct your typing with the
A nice companion reference to 'xd' and to output from 'cat -etv' is the manpage for 'ascii(5)'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 12:31 AM
02-09-2006 12:31 AM
Re: viewing and removing extra characters hpux 11i
the root cause of these extra characters must be a sequence of escape characters (not visible on a terminal session) which had been typed accidentally..
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 02:47 AM
02-09-2006 02:47 AM
Re: viewing and removing extra characters hpux 11i
You may get these characters when stty erase is not configured and when you press "backspace" these characters appear. You can simply move by inode number of the dir or, # mv "/opt/rose/pink* /opt/rose/pink.
Hope this is helpful.
-Arun