Format output of errpt


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Format output of errpt
# 8  
Old 05-24-2009
Code:
awk '{printf("%s ",$2);for(i=6;i<=NF;i++)printf("%s ",$i);printf "\n"}' file


-Devaraj Takhellambam
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to generate Excel file or to SQL output data to Excel format/tabular format

Hi , i am generating some data by firing sql query with connecting to the database by my solaris box. The below one should be the header line of my excel ,here its coming in separate row. TO_CHAR(C. CURR_EMP_NO ---------- --------------- LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies

2. AIX

Production Issue in AIX Oracle RAC [errpt output : DUPLICATE IP ADDRESS DETECTED IN THE NET]

1)We have 2 node cluster RAC on AIX: ->test1 ->test3 2) After rebooting server both the node sequentailly, we are getting below error from errpt command : # errpt |more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION FE2DEE00 0901223914 P S SYSXAIXIF DUPLICATE IP ADDRESS... (2 Replies)
Discussion started by: manjusharma128
2 Replies

3. Shell Programming and Scripting

ls format output

Hello, here is what I've got while using ls -l * in a script : LOG: total 35913 -rw-r--r-- 1 so_nic sonic 833419 Feb 16 06:44 PSYVR3_LOG_PALMPROC_FCST_R20110216.TAR.gz -rw-r--r-- 1 so_nic sonic 2796933 Feb 14 05:11 PSYVR3_LOG_PALMPROC_HDCT_BT_R20110216.TAR.gz SATURNES: total... (3 Replies)
Discussion started by: Aswex
3 Replies

4. Shell Programming and Scripting

problem in understanding the output of errpt -d H -T PERM -s `date +"%m%d%H00%y"`

Its very critical and 'm in need to schedule this on my crontab so that the output can be monitored by a tool I have written the command below to redirect the error which has the output redirected to the file gincle_lol.log. echo "---" >>/gingle/gincle_lol.log date... (1 Reply)
Discussion started by: Sounddappan
1 Replies

5. AIX

Problem in understanding the output of errpt -d H -T PERM -s `date +"%m%d%H00%y"`

Its very critical and 'm in need to schedule this on my crontab so that the output can be monitored by a tool I have written the command below to redirect the error which has the output redirected to the file gincle_lol.log. Code: echo "---" >>/gingle/gincle_lol.log date... (0 Replies)
Discussion started by: Sounddappan
0 Replies

6. Shell Programming and Scripting

Dynamic output file generation using a input text file with predefined output format

Hi, I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format. Example: File.txt AP|{SSHA}VEEg42CNCghUnGhCVg== APVG3|{SSHA}XK|"password" AP3|{SSHA}XK|"This is test" .... etc --------- test.sh has... (1 Reply)
Discussion started by: hudson03051nh
1 Replies

7. UNIX for Advanced & Expert Users

format df -k output

i am running df -k command on aix machine. i got the output like this. i need to store into file and send that file into microsoft excel.i need to allign properly. Filesystem 512 blocks Free % Used Iused %Iused Mounted on /dev/hd4 262144 126488 52% ... (9 Replies)
Discussion started by: wintercoat
9 Replies

8. UNIX for Advanced & Expert Users

Format the Output

Hi- Objective of the task is to print the lines which doesnt have a END statement corresponding to a START statement. Let me know if anyone has a better way of doing is. My Thoughts Have 2 files one having START lines and another having END lines (sorted). And then diff the files to get... (8 Replies)
Discussion started by: lorcan
8 Replies

9. Shell Programming and Scripting

How to format output

Dear all, I have written a program which access database and displays the values returned by the query . There are 10 columns to be displayed in one row. But am ending with 5 lines displayed on 1st line and the next 5 in the 2nd line. Ex : 21608 10-20-2007 148 Al's Appliance... (7 Replies)
Discussion started by: uday542
7 Replies

10. Shell Programming and Scripting

capturing output from top and format output

Hi all, I'd like to capture the output from the 'top' command to monitor my CPU and Mem utilisation.Currently my command isecho date `top -b -n1 | grep -e Cpu -e Mem` I get the output in 3 separate lines.Tue Feb 24 15:00:03 Cpu(s): 3.4% us, 8.5% sy .. .. Mem: 1011480k total, 226928k used, ....... (4 Replies)
Discussion started by: new2ss
4 Replies
Login or Register to Ask a Question
thailpof(8)						      System Manager's Manual						       thailpof(8)

NAME
thailpof - Generic filter for printing Thai text files SYNOPSIS
/usr/lbin/thailpof [-c] [-h host] [-H] [-i indent] [-l length] [-n login] [-P printer_id] [-S] [-w width] [accounting_file] OPTIONS
Prints control characters. Specifies the host name of the job owner. This name can contain Thai characters. Enables half-height printing mode. In printers without a one-pass printing mode, Thai characters are printed on 3 levels, or 3 lines. When half-height printing mode is enabled, the 3 levels are printed in 1.5 lines, which improves the appearance of output. The cost of this improvement is slower print- ing speed. Specifies the amount of indentation. The default value is no (no indentation). Specifies the page length in lines. The default value is 22. Specifies the login name of the job owner. This name can contain Thai characters. Specifies the printer ID in the format that conforms to the Wototo Specification. This format is [bb][mm][nn] where: Is the brand ID, representing the brand of the printer. Is the model ID, representing the model of the printer. Is the code ID, specifying the character code used by the printer. Enables space- compensation mode. Many of the existing tools for text alignment cannot handle nonspacing characters properly. When printing output from such tools, enabling space-compensation mode improves alignment of output text. Specifies the page width in columns. The default value is 80. OPERANDS
Specifies the file to record accounting information. DESCRIPTION
The thailpof filter is a generic print filter for Thai text files. The filter handles the device dependencies of printers and performs accounting functions. At print job completion times, accounting records are written to the file specified by the af field in /etc/print- cap. The filter can handle plain text files and files that have been preprocessed by nroff. Either kind of file can contain Thai characters. The thailpof filter translates nroff control sequences for underlining, superscripting, and subscripting into the proper control sequences for the printer. The thailpof filter can be the specified filter in both the of and the if fields in the /etc/printcap file. For a description of these fields, see printcap(4). To print Thai characters on the flag page using 3-pass mode, you must specify /usr/lbin/thailpof in the of field of the /etc/printcap file. In 3-pass mode, however, the flag page is not printed on one page. Therefore, if you do not plan to print Thai characters on the flag page, or if you are using one-pass mode, do not specify /usr/lbin/thailpof in the of field. NOTES
The lpr command supports a number of options and associated arguments to enable localization features supported by various printers. The following can be used with the thailpof filter: To specify one-and-a-half line printing To enable space-compensation mode. To specify the pathname of the character code table For a complete description of this option and its associated arguments or values, refer to lpr(1). ERRORS
The lf field (default value is /dev/null) in the /etc/printcap file specifies the name of the error log. SEE ALSO
Commands: lpr(1), pr(1), lpd(8), pac(8) Files: printcap(4) Others: i18n_printing(5) thailpof(8)