Sponsored Content
Top Forums Shell Programming and Scripting Help with awk command on report with headings Post 303024533 by cougartrace on Wednesday 10th of October 2018 11:44:56 AM
Old 10-10-2018
Code:
^I^I^I     ------------- ORACLE STANDBY SYNC REPORT 08-OCT-2018 14:50:45 ------------$
$
$
$
$
$
-------------------------------------------------$
--^I^I  AOC - XXXXXX ^I       --$
-------------------------------------------------$
$
    Thread Last Sequence Received Last Sequence Applied Difference$
---------- ---------------------- --------------------- ----------$
^I 1^I^I    64081^I^I  64081 ^I 0$
$
$
-------------------------------------------------$
--^I^I  AOC - XXXXXX^I^I      --$
-------------------------------------------------$
$
    Thread Last Sequence Received Last Sequence Applied Difference$
---------- ---------------------- --------------------- ----------$
^I 1^I^I   259214^I^I 259214 ^I 0$
$
$
-------------------------------------------------$
--^I^I  AOC - XXXXXX^I^I      --$
-------------------------------------------------$
$

------ Post updated at 10:44 AM ------

This one worked: awk '{if($NF==0 || $NF+0) print $NF}' file

Much appreciated for everyone for th help!!!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

help with awk to create report

Hi, I am trying to create a report using the following syntax: #!/bin/awk -f #script name: users_report BEGIN { FS=":" ; OFS="\t" ; print "User\tGID\tUser Name\tHome Dir\t" { print $1 , $3 , $5 , $6 } END { print "\n End of Report \n" } $> user_report /etc/passwd the output of... (5 Replies)
Discussion started by: ghazi
5 Replies

2. Shell Programming and Scripting

sed or awk to convert text files with recurring headings to rows and colum

I have many text file reports generated by a Information Assurance tool that I need to get into a .CSV format or Excel tab delimited format. I want to use sed or awk to grab all the information in the sample text file below and create column headings:Risk ID, Risk Level, Category, Description, How... (5 Replies)
Discussion started by: Bjoeboo
5 Replies

3. UNIX for Dummies Questions & Answers

ls -l column headings

I'm trying to see if there's a way to see column headings when I type the ls -l command. I know what some of the fields mean for example in the following listing: total 136 drwxr-xr-x 2 root root 4096 Jun 5 15:16 bin drwxr-xr-x 3 root root 4096 Jul 9 15:25 boot drwxr-xr-x 9... (6 Replies)
Discussion started by: thoughts
6 Replies

4. AIX

split a filename and print to 2 different headings

I need help to split a filename 'a0crk_user:A0-B0123$#%test' into a0crk_user and A0-B0123 and print the output under 2 different columns namely User and Status. for eg. the output should like below: User Status ---- ------ a0crk_user A0-B0123 (3 Replies)
Discussion started by: mbak
3 Replies

5. Shell Programming and Scripting

Using sed (or similar) to rename variable headings

Hello, I'm rather new to the world of regular expressions and sed, though am excited by its possibilities. I have a particular task I'd like to achieve, and have googled the topic quite a bit. However, having found some codes that perform a task very similar to what I'd like to do, I can't for... (2 Replies)
Discussion started by: redseventyseven
2 Replies

6. Shell Programming and Scripting

help in awk report

home directory = /export/home/jenovaux/ /log Contain 3 file /filename1.log /filename2.log /filename3.log each file from this file is a log for job each file contain success or failed I want to make awk report as the following:- LOGFILENAME ... (1 Reply)
Discussion started by: jenovaux
1 Replies

7. Shell Programming and Scripting

awk command in script gives error while same awk command at prompt runs fine: Why?

Hello all, Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val: > cat getnon0file.sh #!/bin/bash this="getnon0file.sh" USAGE=$this" InFile="xyz.38" Min="0.05" # awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Discussion started by: catalys
4 Replies

8. UNIX for Dummies Questions & Answers

Help needed with adding column headings in syslog report

Hi all, I need your help in adding column headings in the below report. The headings I want are: Count - Host - Message Type The command used to create the report is as follows: for messages in `cat syslog_message_list.txt` do grep $messages syslog.`date +%d%m%y`.log | awk '{print $4 " " "... (4 Replies)
Discussion started by: wthomas
4 Replies

9. UNIX for Dummies Questions & Answers

sort by keeping the headings intact?

Hi all, I have a file with 3 columns separated by space. Each column has a heading. I want to sort according to the values in the 2nd column (ascending order). Ex. Name rank direction goory 0.05 --+ laby 0.0006 --- namy 0.31 -+- ....etc. Output should be Name rank direction laby... (3 Replies)
Discussion started by: Unilearn
3 Replies

10. Shell Programming and Scripting

Remove the headings

HI I am executing faloowing commands. mr batch_1 > my_temp.txt ; mr batch_2 >>my_temp.txt; mr batch_3 >> my_temp.txt; mr batch_4 >> my_temp.txt; and the out put file is as this cat my_temp.txt Machine Name Max Load Current Load Factor O/S Status... (3 Replies)
Discussion started by: ptappeta
3 Replies
DateTime::Locale::az_Cyrl_AZ(3) 			User Contributed Perl Documentation			   DateTime::Locale::az_Cyrl_AZ(3)

NAME
DateTime::Locale::az_Cyrl_AZ SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'az_Cyrl_AZ' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Azerbaijani Cyrillic Azerbaijan. DATA
This locale inherits from the DateTime::Locale::az_Cyrl locale. It contains the following data. Days Wide (format) XXXXX XXXXXX XXXXXXXX XXXXXX XXXXXXXX XXXX XXXXXX XXXX XXXXX XXXXX Abbreviated (format) XXXXX XXXXXX XXXXXXXX XXXXXX XXXXXXXX XXXX XXXXXX XXXX XXXXX XXXXX Narrow (format) 1 2 3 4 5 6 7 Wide (stand-alone) XXXXX XXXXXX XXXXXXXX XXXXXX XXXXXXXX XXXX XXXXXX XXXX XXXXX XXXXX Abbreviated (stand-alone) XXXXX XXXXXX XXXXXXXX XXXXXX XXXXXXXX XXXX XXXXXX XXXX XXXXX XXXXX Narrow (stand-alone) 1 2 3 4 5 6 7 Months Wide (format) XXXXXX XXXXXX XXXX XXXXX XXX XXXX XXXX XXXXXX XXXXXXXX XXXXXXX XXXXXX XXXXXX Abbreviated (format) XXXXXX XXXXXX XXXX XXXXX XXX XXXX XXXX XXXXXX XXXXXXXX XXXXXXX XXXXXX XXXXXX Narrow (format) 1 2 3 4 5 6 7 8 9 10 11 12 Wide (stand-alone) XXXXXX XXXXXX XXXX XXXXX XXX XXXX XXXX XXXXXX XXXXXXXX XXXXXXX XXXXXX XXXXXX Abbreviated (stand-alone) XXXXXX XXXXXX XXXX XXXXX XXX XXXX XXXX XXXXXX XXXXXXXX XXXXXXX XXXXXX XXXXXX Narrow (stand-alone) 1 2 3 4 5 6 7 8 9 10 11 12 Quarters Wide (format) 1-ci kvartal 2-ci kvartal 3-cue kvartal 4-cue kvartal Abbreviated (format) 1-ci kv. 2-ci kv. 3-cue kv. 4-cue kv. Narrow (format) 1 2 3 4 Wide (stand-alone) 1-ci kvartal 2-ci kvartal 3-cue kvartal 4-cue kvartal Abbreviated (stand-alone) 1-ci kv. 2-ci kv. 3-cue kv. 4-cue kv. Narrow (stand-alone) 1 2 3 4 Eras Wide eramXzdan XvvXl bizim eramXzXn Abbreviated e.X. b.e. Narrow e.X. b.e. Date Formats Full 2008-02-05T18:30:30 = XXXXXXXX XXXXXX, 5, XXXXXX, 2008 1995-12-22T09:05:02 = XXXX, 22, XXXXXX, 1995 -0010-09-15T04:44:23 = XXXXX, 15, XXXXXXXX, -10 Long 2008-02-05T18:30:30 = 5 XXXXXX , 2008 1995-12-22T09:05:02 = 22 XXXXXX , 1995 -0010-09-15T04:44:23 = 15 XXXXXXXX , -10 Medium 2008-02-05T18:30:30 = 5 XXXXXX, 2008 1995-12-22T09:05:02 = 22 XXXXXX, 1995 -0010-09-15T04:44:23 = 15 XXXXXXXX, -10 Short 2008-02-05T18:30:30 = 08/02/05 1995-12-22T09:05:02 = 95/12/22 -0010-09-15T04:44:23 = -10/09/15 Default 2008-02-05T18:30:30 = 5 XXXXXX, 2008 1995-12-22T09:05:02 = 22 XXXXXX, 1995 -0010-09-15T04:44:23 = 15 XXXXXXXX, -10 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = XXXXXXXX XXXXXX, 5, XXXXXX, 2008 18:30:30 UTC 1995-12-22T09:05:02 = XXXX, 22, XXXXXX, 1995 09:05:02 UTC -0010-09-15T04:44:23 = XXXXX, 15, XXXXXXXX, -10 04:44:23 UTC Long 2008-02-05T18:30:30 = 5 XXXXXX , 2008 18:30:30 UTC 1995-12-22T09:05:02 = 22 XXXXXX , 1995 09:05:02 UTC -0010-09-15T04:44:23 = 15 XXXXXXXX , -10 04:44:23 UTC Medium 2008-02-05T18:30:30 = 5 XXXXXX, 2008 18:30:30 1995-12-22T09:05:02 = 22 XXXXXX, 1995 09:05:02 -0010-09-15T04:44:23 = 15 XXXXXXXX, -10 04:44:23 Short 2008-02-05T18:30:30 = 08/02/05 18:30 1995-12-22T09:05:02 = 95/12/22 09:05 -0010-09-15T04:44:23 = -10/09/15 04:44 Default 2008-02-05T18:30:30 = 5 XXXXXX, 2008 18:30:30 1995-12-22T09:05:02 = 22 XXXXXX, 1995 09:05:02 -0010-09-15T04:44:23 = 15 XXXXXXXX, -10 04:44:23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 XXXXXXXX XXXXXX 1995-12-22T09:05:02 = 22 XXXX -0010-09-15T04:44:23 = 15 XXXXX Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = XXXXXXXX XXXXXX, 2-5 1995-12-22T09:05:02 = XXXX, 12-22 -0010-09-15T04:44:23 = XXXXX, 9-15 MMM (LLL) 2008-02-05T18:30:30 = XXXXXX 1995-12-22T09:05:02 = XXXXXX -0010-09-15T04:44:23 = XXXXXXXX MMMd (MMM d) 2008-02-05T18:30:30 = XXXXXX 5 1995-12-22T09:05:02 = XXXXXX 22 -0010-09-15T04:44:23 = XXXXXXXX 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = XXXXXXXX XXXXXX XXXXXX 5 1995-12-22T09:05:02 = XXXX XXXXXX 22 -0010-09-15T04:44:23 = XXXXX XXXXXXXX 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = XXXXXX 5 1995-12-22T09:05:02 = XXXXXX 22 -0010-09-15T04:44:23 = XXXXXXXX 15 MMMMEd (E MMMM d) 2008-02-05T18:30:30 = XXXXXXXX XXXXXX XXXXXX 5 1995-12-22T09:05:02 = XXXX XXXXXX 22 -0010-09-15T04:44:23 = XXXXX XXXXXXXX 15 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = XXXXXXXX XXXXXX, 2008-2-5 1995-12-22T09:05:02 = XXXX, 1995-12-22 -0010-09-15T04:44:23 = XXXXX, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 XXXXXX 1995-12-22T09:05:02 = 1995 XXXXXX -0010-09-15T04:44:23 = -10 XXXXXXXX yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = XXXXXXXX XXXXXX, 2008 XXXXXX 5 1995-12-22T09:05:02 = XXXX, 1995 XXXXXX 22 -0010-09-15T04:44:23 = XXXXX, -10 XXXXXXXX 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 XXXXXX 1995-12-22T09:05:02 = 1995 XXXXXX -0010-09-15T04:44:23 = -10 XXXXXXXX yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 1-ci kv. 1995-12-22T09:05:02 = 1995 4-cue kv. -0010-09-15T04:44:23 = -10 3-cue kv. yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week XXXXX SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.16.3 2014-06-10 DateTime::Locale::az_Cyrl_AZ(3)
All times are GMT -4. The time now is 02:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy