LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-23-2011, 11:28 AM   #1
pandunr
LQ Newbie
 
Registered: May 2011
Posts: 12

Rep: Reputation: Disabled
supression of control characters in linux file


I'm transferring all data enter through key board to text file. While doing so, the control characters like back space, tab, white space etc also transferred to text file. How transfer these characters be prevented.
 
Old 11-23-2011, 12:53 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
What distro are you using, and what text editing program are you using?
 
Old 11-24-2011, 11:27 AM   #3
pandunr
LQ Newbie
 
Registered: May 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
I'm redirecting all activity performed in linux session to a text file using command Sudo -u linuxid | tee -ai > text.log
the text log contain all keys like back space, space bar etc
 
Old 11-24-2011, 11:37 AM   #4
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 673

Rep: Reputation: 94
maybe sed or awk between sudo and tee. I can't give you examples though sorry.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can terminal control characters be removed from the file created in linux pandunr Linux - Newbie 6 02-09-2012 05:32 PM
Handling Control Characters in Linux. bala.linux Linux - General 3 03-27-2008 02:28 PM
[SOLVED] control characters in vi procfs Linux - Newbie 4 08-30-2007 11:52 PM
Viewing control characters in a text file dmorse Linux - General 2 01-07-2007 12:10 AM
Clearing control characters from a text file LinuxLala Linux - General 1 04-07-2006 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration