I can see why it wouldn't work for you, when your data's separated by : and you're using , as a separator and you never have 13 columns but are checking for column 13!
Please show us your input file and the output you want to see.
Showing us output you don't want, and the script that produces the output you don't want makes it hard for us to come up with a realistic test case to see if we can give you something that does what you do want.
Since none of the data in your sample input file is numeric, the awk script you gave in the last message will produce absolutely no output.
If it did find non-zero data in fields 6 and 7 of your input file, the output would start with:
rather than:
When you drastically change your requirements between posts and give us sample input data, sample code, and sample output data that don't match, there isn't much incentive for us to try to guess what you really want nor to try to help you come up with a solution for your problem.
If you just want to print your input csv file as a tab separated table instead of converting it to a columnar form as done by your sample awk scripts, the simple thing to do is:
which (with your sample input from your previous message) will produce the output:
Hello Gurus,
I am trying to fetch a required number of lines from an output of a command which is in tabular form.
Below is the command for reference along with how the result is being shown on UNIX shell.
/usr/openv/volmgr/bin/vmquery -b -p 5
The result of the above command is as... (6 Replies)
I have a grep command script which works fine and give the correct results but i wanted the output to be displayed in tabular format ? Is it possible to display
the output in tabular format and as well direct them to some file.
main script :
#!/usr/bin/bash
Start_Time=`date '+%m%d%y... (1 Reply)
Hi All,
I have result log file which looks like this (below): from the content need to consolidate the result and put it in tabular form
1). Intercomponents Checking
Passed: All Server are passed.
======================================================================
2). OS version Checking... (9 Replies)
Hi friends,
I have file1.txt where i am sending this file as attatment in mail using below code
uuencode file1.txt file1.txt | mail -s 'TestFile' test@test.com
but the format of the file is changing when i open in attachement.
file1.txt in unix
1|hyd|nag
2|jun|kin
... (4 Replies)
Hi
I want to display the following input data into the tabular format as shown in the output.
Input.txt:
Following jobs are in pending state for more than 10 minutes:
JOB_ID JOB_SUBMIT_ID
MAHAR 784308
PUNJA 109367
Following jobs are running for longer time:
JOB_ID... (1 Reply)
Dear Friends,
I have a file as under :
+++ ME 12-06-13 18:16:20
A RED FEW AND ROW1 1MN FEL AS
HI FI BV LR TS HR ES MR
* 0 13296 0 120 1 15
KS RR
10 0
+++ ME 12-06-13 18:26:20
A RED FEW AND ROW2 1MN FEL AS... (2 Replies)
Hi
I am having a file which is required to be presented in the under-noted output form. Please suggest.
Input:
Kapil:
apple 4
banana 6
cherry 0
Manoj:
apple 13
banana
cheery 2
Output:
apple banana cherry
Kapil: 4 6 0
Manoj: 13 2
Thanks in... (4 Replies)
hi,
I need to mention the data in tabular form in shell script. :confused:
Input as below:
Health check (heading1)
CPU/Memory Utilization of pc on server (h2)
1214 of rpc3 is exceeds 0.3 % (data)
CPU Utilization is normal for rpc/33 on 2673
CPU Utilization is normal for rpc/33 on... (2 Replies)
Hi,
I have the output (as below) which i want it to be in a table.
For e.g.
space utilization in PSE on path /logs is 0%
space utilization in PSE on path /logs/tuxedo/tuxlsp is 16%
space utilization in PSE on path /ldvarlsp/lsp/log is 37%
space utilization in PSE on path /home is 6%... (7 Replies)
Hi,
I have a file which contains the data in the below format and need to develop a script which will give the output in the tabular format.
Could you please advice me.
Folder:
Workflow: version .
Workflow run status:
Workflow run error code:
Schedule time:
Workflow run type: ... (2 Replies)