- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Special characaters
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
12-11-2001 02:05 AM
12-11-2001 02:05 AM
however, there are those pesky ^[[5C type characters that clog up the output... i can't find out what they are or, more importantly, how i can use a regex to manipulate the text they are attached to...
using my meager s/ / /g skills i can get rid of all of it but not the first ^[
any ideas?
thanks in advance
jerome
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 02:27 AM
12-11-2001 02:27 AM
Re: Special characaters
try this:
sed 's/[[:cntrl:]]\[//g'
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 02:35 AM
12-11-2001 02:35 AM
SolutionYou can also use strings to filter off non-text chracters including the ctrl chracters ie.
# top -d 1 | strings
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 02:42 AM
12-11-2001 02:42 AM
Re: Special characaters
Not sure if you realise, but there's a hidden (not in my man pages anyway) -f switch to allow you to dump the output to a file.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 02:56 AM
12-11-2001 02:56 AM
Re: Special characaters
The same search will fail if you use ^M (which is caret/circumflex/(Shift + 6).
Cntrl+v remains the same and the other charachters keep changing based on your search requirements.
Hope this helps.
-Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 02:58 AM
12-11-2001 02:58 AM
Re: Special characaters
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5ee3f841489fd4118fef0090279cd0f9,00.html
-Madhu