Hi,
Today i have seen a file which shows nothing when i use cat/tac.
But when i use vi it displays a single line at the top.
There are no other lines. I am curious why cat/tac doesn't display that line and only vi does?
Any thoughts?
Thanks in advance, (1 Reply)
As part of a quiz assigned during my unix class I was asked to write a program to ask for a file name, print read errors, and "reverse elements in a list."
I used the 'tac' command in my solution, however, I was then lectured for 5 min about the "limitations" of the 'tac' command and how a 'for'... (6 Replies)
toe(1) General Commands Manual toe(1)NAME
toe - table of (terminfo) entries
SYNOPSIS
toe [-v[n]] [-ahuUV] 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.
-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).
-V reports the version of ncurses which was used in this program, and exits.
FILES
/usr/share/terminfo/?/*
Compiled terminal description database.
SEE ALSO tic(1), infocmp(1), captoinfo(1), infotocap(1), ncurses(3NCURSES), terminfo(5).
This describes ncurses version 5.9 (patch 20110404).
toe(1)