09-07-2008
Quote:
Originally Posted by
RahulJoshi
name="toe der"
echo $name | sed -e 's/[^[:alpha:]]//g'
it will become:
toeder
then still if u do :
echo $name
it show: toe der
Could you please tell me your exact requirement?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hai, how can i sort a file alphabetically without using sort command (6 Replies)
Discussion started by: rahul801
6 Replies
2. Shell Programming and Scripting
Hello and thx for reading this
I'm using sed to remove only the leading spaces in a file
bash-280R# cat foofile
some text
some text
some text
some text
some text
bash-280R#
bash-280R# sed 's/^ *//' foofile > foofile.use
bash-280R# cat foofile.use
some text
some text
some text... (6 Replies)
Discussion started by: laser
6 Replies
3. UNIX for Dummies Questions & Answers
Anyone know how to represent tabs when doing subsitutions in sed? I have tried using \t but it doesn't seem to work. (11 Replies)
Discussion started by: handak9
11 Replies
4. UNIX for Dummies Questions & Answers
How can I list the file under current directory both in alphabetical and in reverse alphabetical order? (1 Reply)
Discussion started by: g.ashok
1 Replies
5. Shell Programming and Scripting
SHELL SCRIPT
Hi
I have a file in the following format
Mayank Sushant
Dheeraj Kunal
ARUN Samir
How can i replace the white space in between and replace them with a comma?? The resultant output should be
Mayank,Sushant
Dheeraj,Kunal
ARUN,Samir
i tried using
sed -e... (8 Replies)
Discussion started by: mayanksargoch
8 Replies
6. Shell Programming and Scripting
if the answer is obvious, sorry, I'm new here.
anyway, I'm using tr to encrypt with rot-13:
echo `cat $script | tr 'a-zA-Z' 'n-za-mN-ZA-M'` > $script
it works, but it removes any consecutive spaces so that there is just one space between words. I've had this problem before while using sed to... (5 Replies)
Discussion started by: Trichopterus
5 Replies
7. Shell Programming and Scripting
It's been covered in lots of places, and I have banged on it for about an hour and I am not making any headway on this particular string.
A weather-related web page I want to monitor has text on the screen, but it changes. Right now, the page has "None issued by this office recently." but in 2... (4 Replies)
Discussion started by: Habitual
4 Replies
8. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Find the first letter in alphabet from the input:
Accept the input of a series of upper case alphabetic letters one at a time. The input ends with a 0. Find and display the first letter in alphabetic order. For example, input... (27 Replies)
Discussion started by: Ren_kun
27 Replies
9. Shell Programming and Scripting
hi all ,
i had the below sed command to append header at the starting of my output file ....
sed -i -e '1i saikumar suresh hemanth' output.txt
i want to append spaces to the Name saikumar how can i append with in this command ....? (1 Reply)
Discussion started by: hemanthsaikumar
1 Replies
10. Shell Programming and Scripting
The following command works echo "some text with spaces" | sh -c 'sed -e 's/t//g''But this doesn't and should echo "some text with spaces" | sh -c 'sed -e 's/ //g''Any ideas? (3 Replies)
Discussion started by: Tribe
3 Replies
toe(1) General Commands Manual toe(1)
NAME
toe - table of (terminfo) entries
SYNOPSIS
toe [-v[n]] [-ahsuUV] file...
DESCRIPTION
With no options, toe lists all available terminal types by primary name with descriptions. File arguments specify the directories to be
scanned; if no such arguments are given, your default terminfo directory is scanned. If you also specify the -h option, a directory header
will be issued as each directory is entered.
There are other options intended for use by terminfo file maintainers:
-a report on all of the terminal databases which ncurses would search, rather than only the first one that it finds.
If the -s is also given, toe adds a column to the report, showing (like conflict(1)) which entries which belong to a given terminal
database. An "*" marks entries which differ, and "+" marks equivalent entries.
Without the -s option, toe does not attempt to merge duplicates in its report
-s sort the output by the entry names.
-u file
says to write a report to the standard output, listing dependencies in the given terminfo/termcap source file. The report condenses
the "use" relation: each line consists of the primary name of a terminal that has use capabilities, followed by a colon, followed by
the whitespace-separated primary names of all terminals which occur in those use capabilities, followed by a newline
-U file
says to write a report to the standard output, listing reverse dependencies in the given terminfo/termcap source file. The report
reverses the "use" relation: each line consists of the primary name of a terminal that occurs in use capabilities, followed by a
colon, followed by the whitespace-separated primary names of all terminals which depend on it, followed by a newline.
-vn specifies that (verbose) output be written to standard error, showing toe's progress.
The optional parameter n is a number from 1 to 10, interpreted as for tic(1). If ncurses is built without tracing support, the
optional parameter is ignored.
-V reports the version of ncurses which was used in this program, and exits.
FILES
/etc/terminfo/?/*
Compiled terminal description database.
SEE ALSO
tic(1), infocmp(1), captoinfo(1), infotocap(1), ncurses(3NCURSES), terminfo(5).
This describes ncurses version 6.1 (patch 20180127).
toe(1)