Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Required column output should be arranged in awk Post 303042748 by blackrageous on Sunday 5th of January 2020 08:42:31 PM
Old 01-05-2020
Your parameters seem to actually be $5 and $6. You can do something like...
Code:
awk '{printf("%5s%10s\n",$5,$6)}' <filename>

or
Code:
awk '{printf("%-5s%10s\n",$5,$6)}' <filename>

This User Gave Thanks to blackrageous For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

finding greatest value in a column using awk from iostat output in linux

Friends, . On linux i have to run iostat command and in each iteration have to print the greatest value in each column. e.g iostat -dt -kx 2 2 | awk ' !/sd/ &&!/%util/ && !/Time/ && !/Linux/ {print $12}' 4.38 0.00 0.00 0.00 What i would like to print is only the... (3 Replies)
Discussion started by: achak01
3 Replies

2. Shell Programming and Scripting

finding greatest value in a column using awk from iostat output in linux

Friends, Need some help. On linux i have to run iostat command and in each iteration have to print the greatest value in each column. e.g iostat -dt -kx 2 2 | awk ' !/sd/ &&!/%util/ && !/Time/ && !/Linux/ {print $12}' 4.38 0.00 0.00 0.00 WHhat i would like to... (15 Replies)
Discussion started by: achak01
15 Replies

3. Shell Programming and Scripting

Find in first column and replace the line with Awk, and output new file

Find in first column and replace the line with Awk, and output new file File1.txt"2011-11-02","Georgia","Atlanta","x","","" "2011-11-03","California","Los Angeles","x","","" "2011-11-04","Georgia","Atlanta","x","x","x" "2011-11-05","Georgia","Atlanta","x","x","" ... (4 Replies)
Discussion started by: charles33
4 Replies

4. Shell Programming and Scripting

script to mail monitoring output if required or redirect output to log file

Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions. ... (4 Replies)
Discussion started by: aix_admin_007
4 Replies

5. Shell Programming and Scripting

Want to sort a file using awk & sed to get required output

Hi All, Need Suggestion, Want to sort a file using awk & sed to get required, output as below, such that each LUN shows correct WWPN and FA port Numbers correctly: Required output: 01FB 10000000c97843a2 8C 0 01FB 10000000c96fb279 9C 0 22AF 10000000c97843a2 8C 0 22AF 10000000c975adbd ... (10 Replies)
Discussion started by: aix_admin_007
10 Replies

6. Shell Programming and Scripting

How to sum multiple column output with awk ?

Hi Experts, I am trying to sum multiple columns and rows with awk , I want the sum of : 1] Horizontal Sum: (rows sum): 2] Vertical Sum: (Column's sum] details: # cat file1 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 40 31 32 33 34 35 36 37 38 39 70 41 42 43 44... (2 Replies)
Discussion started by: rveri
2 Replies

7. UNIX for Dummies Questions & Answers

Print each output of loop in new column using awk or shell

I have this output from a loop a11 1,2 3,4 5,6 7,8 12,8 5,4 3,6 a12 10,11 12,13 15,18 20,22 a13 ... (3 Replies)
Discussion started by: maryre89
3 Replies

8. Shell Programming and Scripting

awk or grep to search one column and output the other

Hello, it would be great if someone can help me with the following: I want to search for the rows from fileA in column 1 of fileB and output column 2 of fileB if found in fileC. In the moment I search within the complete file. How can I change the code so only column 1 is searched? cat fileA... (7 Replies)
Discussion started by: Manyaka
7 Replies

9. UNIX for Advanced & Expert Users

Parse output and then compare column wise with awk

Hello, I am trying to write a script to parse the output of data and then alert based on certain conditions This is the output of my script (STRING) Name = Joe (FLOAT64) BMI = 34 (FLOAT64) Weight = 156 (STRING) Name = Sam (FLOAT64) BMI = 32 (FLOAT64) Weight = 180 and so on it repeats... (4 Replies)
Discussion started by: sidnow
4 Replies

10. UNIX for Beginners Questions & Answers

Convert rows to column and print output in required format

Hi All, i am trying to print the solaris 11 packages in below required format, But i am unable to do that. Current ouput : root@abc# pkginfo -l | egrep '(BASEDIR|NAME|VERSION)' | awk '{print}' NAME: QLogic 570x/571x Gigabit Ethernet Driver VERSION: 11.11,REV=2009.11.11 ... (7 Replies)
Discussion started by: balu1234
7 Replies
citmail(8)						      System Manager's Manual							citmail(8)

NAME
citserver - Core of the Citadel Suite. SYNOPSIS
citserver [-lLogFacility] [-d] [-f] [-D] [-tTraceFile] [-xLogLevel] [-hHomeDir] DESCRIPTION
Citadel (the binary name is citserver) is the core of the Citadel Suite. It provides Data-storage and Connection-oriented protocols like IMAP/POP/SMTP. Citserver will usualy be spawned via /etc/init.d or inittab. Unless using the -h option you shouldn't run several instances at once. .SH OPTIONS SwitchResult -l Log facility. Usually "mail" -d daemonize (detach from controlling terminal) -D print the directories the server would access to stderr on startup -t[TraceFile] Send log messages to a file instead of syslog -x[LogLevel] Verbosity level of logging (0 to 9) -h[HomeDir] Data directory for this Citadel installation. If the directory name begins with a forward slash, it is an absolute path; otherwise it is relative to the default. Watch the output of -D to observe the effects. DEFAULTS
Default port bindings opened by citserver: PortDescription 25 SMTP 110 POP3 143 IMAP 465 SMTPS 504 Citadel protocol 587 MSA 993 IMAPS 995 POP3S 2020 ManageSieve Unix Domain Sockets opened by citserver: Socket namePurpose citadel.socket Citadel lmtp.socket LMTP lmtp-unfiltered.socket LMPT bypassing the Spamassassin facilities FILES
/usr/share/citadel-server/ Citadels Messages and help files /var/lib/citadel/ Citadel data files /var/run/citadel/ volatile files like the Unix Domain Sockets /etc/citadel/ Citadel configuration files /usr/local/citadel/ when compiled in non-LHFS mode, all of the above. /etc/init.d/citadel/ init script for CitServer; add reboot-safe parameters here. /etc/default/citadel/ Optoins to /etc/init.d/citadel/ in LHFS installations; add commandline options here. HISTORY
1987 - Now the Uncensored Communications Group citmail(8)
All times are GMT -4. The time now is 01:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy