Sponsored Content
Full Discussion: Formatting BDF output
Top Forums Shell Programming and Scripting Formatting BDF output Post 302496796 by drbiloukos on Tuesday 15th of February 2011 10:08:02 AM
Old 02-15-2011
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.:

Code:
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    1048576  310384  732592   30% /
/dev/vg00/lvol1     799416   53712  665760    7% /stand
/dev/vg00/lvol8    9216000 2655072 6513104   29% /var
/dev/vg00/lvol9    3145728  597988 2388515   20% /var/adm/crash
/dev/vg00/lvol7    3145728 2708816  433504   86% /usr
/dev/vg00/lvol6    2097152 1124696  967984   54% /tmp
/dev/vg00/lvol5    3145728 2770200  372616   88% /opt
/dev/vg00/lvol4    1441792  853904  584120   59% /home
----------Problem begins--------------
/dev/vg00/lv_autosys
                   1474560  227936 1168774   16% /autosys
/dev/vg00/lv_app   8388608 7429882  903544   89% /app
/dev/vg00/lv_ctsausr
                    114688   41413   68752   38% /ctsausr
/dev/vg00/lv_tcpdump
                   5242880 1722651 3300221   34% /TCPDUMP
/dev/vg_HSE_EXTEND_2/lv_HSE_Data_s_21
                   105775104 84794184 20817016   80% /HSE/Data_s/21
/dev/vg_HSE_EXTEND_2/lv_HSE_Data_s_20
                   110362624 108250032 2096096   98% /HSE/Data_s/20
/dev/vg_HSE_EXTEND_2/lv_HSE_Index_18
                   70516736 67990232 2506776   96% /HSE/Index/18
/dev/vg_HSE_EXTEND_2/lv_HSE_Index_16
                   104857600 85977904 18732208   82% /HSE/Index/16
.
.
.

How do I solve this problem in order to create a nicely formated output ?

Thank you in advance.
 

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

Formatting bdf output

Hi All. Using /usr/bin/ksh on a HP-UX B.11.23 ia64 system. Executing the following ... ` bdf -t vfxs | grep "/" ` The output comes out like (in part) ... /dev/vg00/lvol3 516096 229448 284480 45% / /dev/vg00/lvol1 516096 211200 302560 41% /stand /dev/vg00/lvol8 ... (5 Replies)
Discussion started by: Cameron
5 Replies

3. 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

4. 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

5. 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

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
trbdf(1)							   User Manuals 							  trbdf(1)

NAME
trbdf - convert BDF-font from one encoding to other SYNOPSIS
trbdf -C | -l | -h trbdf [-s] [-f input-codeset ] [-t output-codeset ] [--foundry[=] new-foundry ] BDF-font DESCRIPTION
trbdf is a program for translation of BDF fonts from one encoding to other. One exciting feature of trbdf is that it tries to approximate the symbols that miss from the font or from the encoding of the font with existing symbols when possible. If the option -s or --gen-script is given trbdf will generate an awk(1) script for translation of BDF-fonts for fixed combination of input- codeset and output-codeset This is useful for faster convertion of many files. This script is used as filter. If none of -C, -s, -l, -h and their equivalents is given the BDF-font will be read assuming it is coded with codeset input-codeset On stan- dard output it will be recoded so to use codeset output-codeset Both input-codeset and output-codeset are case insensitive and default to `cp1251'. OPTIONS
-C, --copyright Display copying conditions and warranty information. -s, --gen-script Generates conversion script for given input and output encodings instead to convert BDF-font. This option is usefull if you have to convert many fonts. The generated script expects the input font from its standard input and outputs the converted font. -l, --list List all known codesets. -h, --help Display this help and exit. -f input-codeset, --from[=]input-codeset Codeset of the source font. -f output-codeset, --to[=]output-codeset Codeset of the generated font. --foundry[=]new-foundry Use this option if you want to change the foundry of the generated fonts. AUTHOR
Anton Zinoviev <anton@lml.bas.bg>, <zinoviev@fmi.uni-sofia.bg> SEE ALSO
bdftopcf(1x) trscripts NOV 2002 trbdf(1)
All times are GMT -4. The time now is 11:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy