|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Want to format column of a text file
Hi Techies I have written a script which is collecting the logs of job running on server and let mail me the output. I want to format column of output, please help. Code:
CCMS_BAU_from_CACHE RUN ETL_SUBSITE_TO_SITE_BAU RUN GetClient_Prep_Main RUN MDM_Client_BAU RUN Sweeper RUN Staging_To_Reporting RUNNING Bridge_BAU RUN CMT_CUSTOMER_BAU RUN CMT_CLIENT_HIERARCHY_BAU RUN SAP_CUST_NI_CCMS RUN CLIENT_DUNS_CUST_NI_CCMS RUN as you can see Job status is not in a Column, I need them in a column Please help Thanks Atul Singh Last edited by Scrutinizer; 12-11-2012 at 02:55 AM.. Reason: Removed link |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
Can you please show me what output looks like?
don't understand your question. Cheers, |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
show us the sample log content.
|
|
#4
|
|||
|
|||
|
Input
![]() I need the o/p like this ![]() please help thanks Atul Singh Last edited by Scrutinizer; 12-11-2012 at 02:56 AM.. Reason: Removed links and extra images |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
If your distro *NIX version has that utility: Code:
column -t file |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
Sorry, I am using AIX and in that column command is not installed
Please suggest another solution thx Atul Singh |
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Do you know the max_length of the first column?
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Replacing a specific column of a text file with another column | evelibertine | UNIX for Dummies Questions & Answers | 3 | 06-28-2011 04:38 PM |
| Assigning a specific format to a specific column in a text file using awk and printf | goodbenito | Shell Programming and Scripting | 2 | 04-30-2010 09:25 AM |
| Convert comma text file to Column in html format | sriram003 | Shell Programming and Scripting | 9 | 03-31-2009 08:16 AM |
| AWK CSV to TXT format, TXT file not in a correct column format | mdap | Shell Programming and Scripting | 1 | 08-14-2008 11:03 AM |
| Format a column of text | mlucas | UNIX for Dummies Questions & Answers | 2 | 08-16-2006 03:52 PM |
|
|