- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Remove ^I, ^L in file
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
Discussions
Discussions
Forums
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
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-15-2007 06:47 AM
тАО11-15-2007 06:47 AM
Remove ^I, ^L in file
Please your help.
I have a file and I do want to remove him these symbols ^I, ^L like I make?
Thanks very much.
With the command sed i used this,
sed '$d' file1 > file2
thinking in that the symbol was at the end of the file
but it should not always be this way. it is better than it validates in the whole file.
- Tags:
- sed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2007 07:08 AM
тАО11-15-2007 07:08 AM
Re: Remove ^I, ^L in file
# perl -ple 's%\011%%g;s%\014%%g' file
The ^I is a horizonal tab; The ^L is a formfeed. See the manpages for 'ascii(5)'.
By the way, please evaluate and assign points to the responses to your previous question:
https://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1177271
See:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Regards!
...JRF...
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2007 08:51 AM
тАО11-15-2007 08:51 AM
Re: Remove ^I, ^L in file
If you prefer, you could also use the control keys and letters (Ctrl-I and Ctrl-L) to compose a 'sed' substitution:
# sed -e 's/ //g' -e 's/^L//g'
Note that the tab character composed as CTRL-I will appear as whitespace in this post.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2007 08:52 AM
тАО11-15-2007 08:52 AM
Re: Remove ^I, ^L in file
- Tags:
- tr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2007 01:01 PM
тАО11-15-2007 01:01 PM
Re: Remove ^I, ^L in file
:g/^L/s///
ctrl-l has to be entered with the key strokes:
ctrl-v followed by ctrl-l
Rgds...Geoff
- Tags:
- vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2007 08:10 PM
тАО11-18-2007 08:10 PM
Re: Remove ^I, ^L in file
you can use strings ,file> to remove any control chars from your file.
Just my .02$.
HTH,
Art