Hi
I get problems when using the following command :
cat logs | awk -F";" '{ system("date -d "1970-01-01 UTC+0100 $1 seconds""); }'
date: date invalide `1968641199401200'
date: date invalide `1968641199381709'
this is what i have in my log file :
cat logs
1199401200;a... (3 Replies)
hi,
I'm getting some issues while running below awk:-
I want to use the system date to get pritned on the report but not getting it
please help in this case
BEGIN
{
sysdate = substr($date,5,6)
print "WEA\t\t\t\t\t\t\t\t\t\tCLAIM AND APPROVAL REPORT"
print "REPORT RUN DATE:",$sysdate... (1 Reply)
i'm facing problems in using system date in a awk script...
it should display the date in a report in mm/dd/yy format..
please help me in this case..
thanks (3 Replies)
Hello,
forgive me if this seems a bit trivial to you but I am fairly new to HP-ux having worked with AIX for the past 15 years. We have inherited a couple of HP-ux servers without any tape drives and running Hp-ux v11. I am familiar with creating mksysbs on our AIX Nim server for recovery and... (12 Replies)
Hey guys, this is my first time posting here (although I've been reading the forums for a while now). I'm looking for a good UNIX (or UNIX based/UNIX-like) distro to install on an old Dell Dimension 2400 Destop. I've done ALOT of research on the different distros and I've tried a few out but I... (6 Replies)
I've been learning linux and solaris for the past couple months and have been thinking about seeking a systems admin career. Is it worth it to learn solaris? Do many companies really use it or is it a waste of my time? Would learning just linux be a better idea? I see there's more opportunity as a... (2 Replies)
Hi guys
Can you recommend a good book for absolute beginner. I bought KSH93 by David Korn but I don't like it. It's not user-friendly. I need book with easy examples and some exercises.
Can be a video lectures too.
Thanks. (1 Reply)
Can someone help me with the code wherein there is a file f1.txt with different column and 34 column have expiry date and I need to get that and compare with system date and if expiry date is <system date remove those rows and other rows should be moved to new file f2.txt .
I don't want to delete... (2 Replies)
I m working on shell scripting and I m stuck where in my .txt file there is column as expiry date and I need to compare that date with system date and need to remove all the rows where expiry date is less than system date and create a new .txt with update. (1 Reply)
Discussion started by: Stuti
1 Replies
LEARN ABOUT CENTOS
igawk
IGAWK(1) Utility Commands IGAWK(1)NAME
igawk - gawk with include files
SYNOPSIS
igawk [ all gawk options ] -f program-file [ -- ] file ...
igawk [ all gawk options ] [ -- ] program-text file ...
DESCRIPTION
Igawk is a simple shell script that adds the ability to have ``include files'' to gawk(1).
AWK programs for igawk are the same as for gawk, except that, in addition, you may have lines like
@include getopt.awk
in your program to include the file getopt.awk from either the current directory or one of the other directories in the search path.
OPTIONS
See gawk(1) for a full description of the AWK language and the options that gawk supports.
EXAMPLES
cat << EOF > test.awk
@include getopt.awk
BEGIN {
while (getopt(ARGC, ARGV, "am:q") != -1)
...
}
EOF
igawk -f test.awk
SEE ALSO gawk(1)
Effective AWK Programming, Edition 1.0, published by the Free Software Foundation, 1995.
AUTHOR
Arnold Robbins (arnold@skeeve.com).
Free Software Foundation Nov 3 1999 IGAWK(1)