ul(1) General Commands Manual ul(1)Name
ul - process underscores for terminal
Syntax
ul [-i] [-t terminal] [name...]
Description
The command reads the named files (or standard input if none are given) and translates occurrences of underscores to the sequence which
indicates underlining for the terminal in use, as specified by the environment variable TERM. The -t option overrides the terminal kind
specified in the environment. The file /etc/termcap is read to determine the appropriate sequences for underlining. If the terminal is
incapable of underlining, but is capable of a standout mode then that is used instead. If the terminal can overstrike, or handles under-
lining automatically, degenerates to If the terminal cannot underline, underlining is ignored.
The -i option causes to indicate underlining by a separate line containing appropriate dashes `-'; this is useful when you want to look at
the underlining which is present in an output stream on a crt-terminal.
Options-i Displays underscoring on separate line containing appropriate dashes (-).
-t terminal
Uses type of specified terminal in place your terminal's type.
Restrictions
The command usually outputs a series of backspaces and underlines intermixed with the text to indicate underlining. No attempt is made to
optimize the backward motion.
See Alsoman(1), nroff(1), colcrt(1)ul(1)
Check Out this Related Man Page
UL(1) BSD General Commands Manual UL(1)NAME
ul -- do underlining
SYNOPSIS
ul [-i] [-t terminal] [file ...]
DESCRIPTION
The ul utility reads the named files (or standard input if none are given) and translates occurrences of underscores to the sequence which
indicates underlining for the terminal in use, as specified by the environment variable TERM. The file /etc/termcap is read to determine the
appropriate sequences for underlining. If the terminal is incapable of underlining, but is capable of a standout mode then that is used
instead. If the terminal can overstrike, or handles underlining automatically, ul degenerates to cat(1). If the terminal cannot underline,
underlining is ignored.
The following options are available:
-i Underlining is indicated by a separate line containing appropriate dashes `-'; this is useful when you want to look at the underlin-
ing which is present in an nroff(1) output stream on a crt-terminal.
-t terminal
Overrides the terminal type specified in the environment with terminal.
ENVIRONMENT
The LANG, LC_ALL, LC_CTYPE and TERM environment variables affect the execution of ul as described in environ(7).
EXIT STATUS
The ul utility exits 0 on success, and >0 if an error occurs.
SEE ALSO colcrt(1), man(1), nroff(1)HISTORY
The ul command appeared in 3.0BSD.
BUGS
The nroff(1) command usually outputs a series of backspaces and underlines intermixed with the text to indicate underlining. No attempt is
made to optimize the backward motion.
BSD August 4, 2004 BSD
hi
how to read terminal command,
just i want to read all command which write on terminal
so please tell me any system call, api avilable in c for above purpose (6 Replies)
Greetings,
I have a bunch of music files that I want to strip the underscores out, and leave only spaces. All that I've found on the web is how to add underscores to files that have spaces, and reversing the "tr" command does not make a difference.
Here is how to convert spaces to... (6 Replies)
Hello everybody!!!
I am writing my own rm command in unix.
I prompt the user to type if he wants to delete a file and then read what he typed.
But how do i check what he typed?
This is my program so far:
echo 'Delete prog1.c (y/n)?'
read yesOrNo
if yesOrNo == 'y'
then
rm prog1.c... (6 Replies)
Hi all,
I am new in Unix world. I usually need to trace who connect to which terminal by IP address. So, could you please show me HOW TO RECOGNIZE which IP address connected to terminal? I use netstat by no luck.
Thank you, (9 Replies)
Hi there, im new too shell scripting and was wondering if it is possible to create a shell script to take in a variable and load a c program.
My C program is a file monitor, and is started by using the terminal and using to following code
./monitor FileToBeMonitored
is it possible to have... (12 Replies)
Hi all,
I'm using SunOS.
need to find age of the file in terms of seconds. The file
name with its path will be given to the script as input.
Any kinda help will be appreciated.
Thanks in advance (7 Replies)
My files look like this
I need to remove the columns where dashes are the majority, if any of the sequences has any character in that particular position it should be removed too. The IDs and Freqs should be kept intact. Thus, the resulting file should look like this
Thanks in advance (14 Replies)
Input file
2 5 ASFGEWTEWRQWEQ
10 20 QEWIORUEIOUEWORUQWEQWRQRQWGQWGFQ
1 6 WRQTQWTQTQWTQT
Desired output file
2 5 ASFGEWTEWRQWEQ
10 20 QEWIORUEIOUEWORUQWEQWRQRQWGQWGFQ
1 6 WRQTQWTQTQWTQT
Column 1 is the start region of underline the text in column 3;
Column 2 is the end region of... (13 Replies)
Hi
I want to filter my files which has more than 1 underscores in it.how can i achieve this.
Ex: if my file name is a_b_c, a_b.
my command should result only a_b_c
Thanks
Pracheth (10 Replies)
Hi,
In one of the circumstances, my manager asked my password and opened unix terminal (Putty) with my user credentials. Its been more than 2 days that terminal is opened (saw it through finger command). How do I close that terminal which is not opened in my pc. I'm very uncomfortable of the... (11 Replies)
Hello, I had posted this initially in the UNIX for dummies forum which is now locked to new posts. I have a machine running IRIX and I need to edit a text file on the terminal but I get a "line too long" error when using the vi command. The text file in question is tens of thousands in lines so... (7 Replies)