The description of the ls -m option in the standards is:
Quote:
Stream output format; list pathnames across the page, separated by a <comma> character followed by a <space> character. Use a <newline> character as the list terminator and after the separator sequence when there is not room on a line for the next list entry. This option disables long format output.
The default line width for a regular file is probably something like 80. I have no idea what line length you have set up for your console.
You could try something like:
to list directories in the current directory and the directories in those directories on one line (assuming that no more than one million display columns are needed to print that line). Note, however, that if the value you set for COLUMNS is larger than the value you get from:
(which on many systems is 2048), then the standard text processing utilities might not work on your resulting file.
And, note that your description of what you are trying to print is very vague. Without some idea of what your file structure looks like and what you hope to print from that file structure, we are all just guessing.
Hi,
I am trying to do the following using AWK program.
1. Read the input data file
2. Parse the record and see if it contains errors
3. If the record contains errors, then write it into Reject file, else, write into usual output file or display it on the screen
Here is what I have done -... (6 Replies)
Hi All,
Please help me writing the below script.
I have two sql queries.
1. Select count(1),Client_id from TABLE_A group by Client_id;
2. Select count(1),Client_id from TABLE_B group by Client_id;
I need the output of above two sql queries in a single file. The output 2nd query should be... (4 Replies)
Good morning! Im trying to write and learn at the same time a simple script. fTHe script should tell me if a number is odd or even/
#!/usr/bin/perl
$num = 10;
$string1 = "This number is odd";
$string2 = "This number is even";
if ($num /= 2) {
print "$string1\n";
}else{
... (3 Replies)
Hi
I have developed bash script to connect to database and execute .sql files. I am logging some statements in to log file using echo. While logging I am adding the date in front of the log statements which makes sense. I am unable to add date in front of output from the sqlplus and sqlldr,... (8 Replies)
I do a lot of TSM work and I embarked on what I thought would be an easy task, and I'd be very happy for any input to save the pounding my keyboard is receiving :]
By default, the output of TSM's console has no timestamping, making it hard to sort through accurately.
This puts my console into... (5 Replies)
I'm running long integrations on a remote server, and I'm working in terminal in a tcsh shell.
I'm looking to write ONLY the timing statistics to a file.
For example:
$time ls >timer.out
writes both the files in my current directory & the timer statistics to the file timer.out.
I only... (2 Replies)
Hi,
I have 1000 files names data1.txt through data1000.txt inside a folder. I want to write a script that will take each first line from the files and write them as output into a new file. How do I go about doing that? Thanks! (2 Replies)
Hi All,
I have an input file containing data as below:
Input.DAT
XXXXXXX|YYYYYYY|ZZZZZZZZZZ|12334446456|B|YY|111111111|111111111|111111111|111111111|15|3|NNNNNN|Y|3|AAA|111111111... (11 Replies)
Hi
I am trying to write output to a file in columns
I have file in the follwoing:
# cat file
abc
def
#
I am trying to write next output as like
# cat file
abc 123
def 345
#
:mad: (6 Replies)
HI
I am trying to grep 3 characters from hostname and append a character at the end.
I tried as in the following:
root@abag3:~# hostname | cut -c1-3
hyu
Now I am trying to append "g" at the end of this output as in the following.
root@abag3:~# hostname | cut -c1-3 | sed -s... (4 Replies)
Discussion started by: Priya Amaresh
4 Replies
LEARN ABOUT CENTOS
xlsfonts
xlsfonts(1) General Commands Manual xlsfonts(1)NAME
xlsfonts - server font list displayer for X
SYNOPSIS
xlsfonts [-display host:dpy] [-l] [-ll] [-lll] [-m] [-C] [-1] [-w width] [-n columns] [-u] [-o] [-fn pattern]
DESCRIPTION
xlsfonts lists the fonts that match the given pattern. The wildcard character "*" may be used to match any sequence of characters (includ-
ing none), and "?" to match any single character. If no pattern is given, "*" is assumed.
The "*" and "?" characters must be quoted to prevent them from being expanded by the shell.
OPTIONS -display host:dpy
This option specifies the X server to contact.
-d host:dpy
Same as -display host:dpy.
-l Lists some attributes of the font on one line in addition to its name.
-ll Lists font properties in addition to -l output.
-lll Lists character metrics in addition to -ll output.
-m This option indicates that long listings should also print the minimum and maximum bounds of each font.
-C This option indicates that listings should use multiple columns. This is the same as -n 0.
-1 This option indicates that listings should use a single column. This is the same as -n 1.
-w width
This option specifies the width in characters that should be used in figuring out how many columns to print. The default is 79.
-n columns
This option specifies the number of columns to use in displaying the output. By default, it will attempt to fit as many columns of
font names into the number of character specified by -w width.
-u This option indicates that the output should be left unsorted.
-o This option indicates that xlsfonts should do an OpenFont (and QueryFont, if appropriate) rather than a ListFonts. This is useful
if ListFonts or ListFontsWithInfo fail to list a known font (as is the case with some scaled font systems).
-fn pattern
This option specifies the font name pattern to match.
SEE ALSO X(7), Xserver(1), xset(1), xfd(1), X Logical Font Description Conventions
ENVIRONMENT
DISPLAY
DISPLAY must be set to get the default host and display to use.
BUGS
Doing ``xlsfonts -l'' can tie up your server for a very long time. This is really a bug with single-threaded non-preemptable servers, not
with this program.
AUTHOR
Mark Lillibridge
Jim Fulton
Phil Karlton
Roland Mainz
X Version 11 xlsfonts 1.0.4 xlsfonts(1)