LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2005, 03:58 AM   #1
fiomba
Member
 
Registered: Sep 2004
Posts: 63

Rep: Reputation: 15
Show LFs & TABs in listing text files


Hi all,
as you probably know, you can list a text file with cat
showing LFs and TABs (as $ and ^I respectively).
Code:
from the cat man:
    -E, --show-ends
          display $ at end of each line
    -T, --show-tabs
          display TAB characters as ^I
My question is:
How can I substitute the aforementioned codes
($ and ^I) with a reversed blank?
In other words, how can I obtain reverse (or color
and flashing) effects?
My attempts are (from the web):
Code:
esc=`echo -e '\033'`
bright="${esc}[7m"
endbright="${esc}[0m"

echo "${bright}ERROR${endbright}: can't read file"

It displays ERROR in reverse,
However, the same as above doesn't work in
file listings...
Bye.
 
  


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
Convert DOS text files to UNIX text files ta0kira Linux - Software 7 03-15-2011 11:42 AM
Text Editor w/ Tabs needed (looking for) Dralnu Linux - Software 7 09-09-2005 06:00 AM
Networking&Text files; A string or two, and LOTS of int's quentusrex Programming 9 10-27-2004 05:19 AM
CLI copy & paste between text files? David the H. Linux - General 3 09-15-2004 12:05 PM
Alphabetical Listing of Text trihai44100 Linux - Software 1 03-13-2004 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 PM.

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
Open Source Consulting | Domain Registration