Sponsored Content
Full Discussion: Formatting bdf output
Top Forums Shell Programming and Scripting Formatting bdf output Post 302183516 by Franklin52 on Wednesday 9th of April 2008 08:17:48 AM
Old 04-09-2008
You can use printf to determine the width of the columns, something like:

Code:
awk '{printf("%-30s%-10s%-10s%-10s%-5s%-10s\n",$1,$2,$3,$4,$5,$6)}'

Regards
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Formatting the output

Hi all, Have the following code(1) producing the results(2 & 3). Would like to know if there is a way to format the two reports created in a similar fashion. IE - The first is formatted nicely as a result of the echo "$xmpbdate $xavgs" >> $xmpbrpt However when I attempt to do the same on... (7 Replies)
Discussion started by: Cameron
7 Replies

2. Shell Programming and Scripting

more help with formatting ls output...

Ok, for a fun project, my goal is to replicate the style of "catalog" on an old apple ] *A 002 SOMEAPPLESOFTFILE B 004 SOMEFILE T 006 SOMETEXT I 002 SOMEINTEGERFILE The first character is either " " or "*" depending on if the file is locked or not. Next is the filetype, so in... (1 Reply)
Discussion started by: patrick99e99
1 Replies

3. Shell Programming and Scripting

formatting output

my script is as follows cnt=`ps -ef |grep pmon|grep -v grep|awk 'END {{print NR}}'` cnt2=`ps -ef |grep tns|grep -v grep|awk 'END {{print NR}}'` if then if then rman target/ catalog recdb/recdb@recdb cmdfile report_need_backup.sql > report_need_backup.txt ... (1 Reply)
Discussion started by: swkambli
1 Replies

4. Shell Programming and Scripting

Bdf output

Here is my bdf output #bdf Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol3 2097152 217112 1865424 10% / /dev/vg00/lvol1 1835008 329040 1494288 18% /stand /dev/vg00/lvol7 10485760 7864080 2601240 75% /var /dev/vg00/lvol8 8454144 486597 7469647 ... (5 Replies)
Discussion started by: indrajit_renu
5 Replies

5. Shell Programming and Scripting

Formatting BDF output

Hello people. First of all I googled my problem and even found answers in this forum. Unfortunatelly my problem is not solved. When the lenght of the filesystem is too big the output of bdf wraps into another line. e.g.: Filesystem kbytes used avail %used Mounted on... (5 Replies)
Discussion started by: drbiloukos
5 Replies

6. Shell Programming and Scripting

Output Formatting

Hi Guys I need help removing some lines from output i am receiving from a shell script. Here is the output: http://i52.tinypic.com/10z0fut.png I am trying to remove the output that i have circled. . ${EDW}/extracts/bin/extracts_setup2.sh . ${EDW}/extracts/extracts.conf ... (7 Replies)
Discussion started by: mooey1232003
7 Replies

7. UNIX for Dummies Questions & Answers

Formatting df output

Hi all, Can anyone please suggest how best to handle output from running df where some of the information for a volume/filesystem spread over two lines? Some of my volume/filesytem are NFS mounted and when I run a df, the information is spread over the two lines instead of the usual norm... (4 Replies)
Discussion started by: newbie_01
4 Replies

8. Shell Programming and Scripting

Using the output of bdf in script

Hello all, First I have an old HP-UX box(11.21) for which I need to implement file-system utilization monitoring. I choosed to use bdf and a simple for loop. However sometimes the output of bdf is as this one(this is actually form linux but the idea is the same) Filesystem ... (4 Replies)
Discussion started by: click
4 Replies

9. Shell Programming and Scripting

Formatting output

I have the output like below: DEV#: 9 DEVICE NAME: hdisk9 TYPE: 1750500 ALGORITHM: Load Balance SERIAL: 68173531021 ========================================================================== Path# Adapter/Path Name State Mode Select Errors 0 ... (4 Replies)
Discussion started by: Daniel Gate
4 Replies

10. Shell Programming and Scripting

Formatting the Output

Hi, I am trying to use printf command and format certain output in a specific format as under: While the left side (upto |) of the above format is part of a fixed header function, the right side is where i am expecting data to be printed. However, as seen, Row1 value is reflecting on last... (5 Replies)
Discussion started by: EmbedUX
5 Replies
UPDATE-XFONTS-TRADITIONAL(8)					 chiark utilities				      UPDATE-XFONTS-TRADITIONAL(8)

NAME
update-xfonts-traditional - generate traditional ASCII fixed-with fonts SYNOPSIS
update-xfonts-traditional --bdf-filter update-xfonts-traditional --process-pcf in.pcf.gz out.pcf.gz update-xfonts-traditional --process-fontdirs fontdir ... update-xfonts-traditional --process-fonttrees fonttree ... DESCRIPTION
update-xfonts-traditional generates versions of X11 PCF fonts which have been edited to restore compatibility with traditional versions of US-ASCII, and to restore some of the glyphs to more traditional appearance. MODES
--bdf-filter Takes a BDF on standard input and tries to generate an edited BDF on standard output. --process-pcf Takes to PCF filename arguments; the input PCF is uncompressed, decompiled to a BDF, processed, recompiled to a PCF and recom- pressed. --process-fontdirs In each fontdir all files font.pcf.gz are processed, to generate where applicable corresponding trad--font.pcf.gz files. The mtime, ctime and inode number of the input files are recorded so that reprocessing the same directory later will be fast. --process-fonttrees Each fonttree is searched for font directories which are processed as above. --update Each built in font tree location is searched for font directories which are processed as above. OPTIONS
-R|--rules-path rulespath Prepend rulespath to the path of directories from which to load glyph editing rules. --share-dir share-dir Use share-dir instead of /usr[/local]/share/xfonts-traditional. --parallel|-j cpus Use up to cpus cores for processing fonts. The default is all the cpus available. --always-reprocess When scanning font directories, always reprocess all the fonts, regardless of whether we think they have been done already. --no-tolerate-bad-fonts Treat bad input fonts (eg, ones for which pcf2bdf crashes, or ones with other problems) as a fatal error. Normally they just pro- duce a warning. FILES
xfonts-traditional.done In each font directory, records information about processed fonts, so as to optimise away unnecessary reprocessing. xfonts-traditional.log In each font directory, records a lot of which fonts were processed and to a certain extent if not why not. /usr/share/fonts/X11 /usr/local/share/fonts/X11 Default font tree paths for --update. trad--font.pcf.gz In any font directory, our output files. Any other files matching this pattern may be overwritten or deleted. EXIT STATUS
0 All went well and there were no warnings. 2 With --bdf-filter and --process-pcf only, indicates that the input font did not need to be edited, or was not suitable for editing, and has not been written out, so the output is incomplete, but this is not an error. any other There were problems. BUGS
Only the 6x13 font conventionally called supported. This package comes too late to rescue Unix from an incompatible change to its charac- ter set. Greenend 2012 UPDATE-XFONTS-TRADITIONAL(8)
All times are GMT -4. The time now is 02:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy