To detect random input, I'd rather add this test after getline:
Note that all your lines are ended by a semicolon but this is not needed with awk. Unlike with C, an end of line is already ending a command so the semicolon is only required to delimit multiple commands on a single line.
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Hi all,
i have the files in the below sequence:
fancy_LANG_STD_AU_2008-03-05.dat
fancy_LANG_STD_HK_2008-03-06.dat
fancy_LANG_STD_NZ_2008-03-05.dat
fancy_STD_AU_2008-03-05.dat
fancy_STD_HK_2008-03-06.dat
fancy_STD_NZ_2008-03-05.dat
i am trying to sort them like below:
... (3 Replies)
This is my disk space on solaris box and i wrote a simple script which identifies mount points which crosses 90% or above.
But the AWK part is throwing some error and im unable to debug..
mzaheer @ UAT 144 % => df -k
Filesystem kbytes used avail capacity Mounted on... (5 Replies)
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)
Hi
I am trying to create a file with count of lines and string from shell variable, i am getting the error incorrect syntax.
Below is the code :
wc -l $filename | awk '{ print $1"|"$2"|"${SOURCETYPE} }'>>$AUDITFILENAME
Could someone help me on this? (7 Replies)
i have been trying to run the following bash script, but get error:
awk: cmd. line:1: -
awk: cmd. line:1: ^ unexpected newline or end of string
I have been trying to figure out what the problem is but to no avail. I need to run the script urgently for a project, so any help will be highly... (5 Replies)
Good evening, Im newbie at unix specially with awk
From an scheduler program called Autosys i want to extract some data reading an inputfile that comprises jobs names, then formating the output to columns for example
1.
This is the inputfile:
$ more MapaRep.txt
ds_extra_nikira_usuarios... (18 Replies)
Hi friends...
(Apoloigies for any typos.)
(Don, thanks for your input.)
Consider these two code snippets:-
awkerror1.awk
#!/usr/bin/awk -f
BEGIN \
{
SAWTOOTHPLUS64 = " !#$&\'\)*,-/0235689:<>?ABDEGHJKMNPQSTVWYZ\\^_abdeghjkmnpqstvwyz|}~"
for(LOOP = 1; LOOP <= 13; ++LOOP)
{... (3 Replies)
Discussion started by: wisecracker
3 Replies
LEARN ABOUT REDHAT
constants
CONSTANTS(5) LAM FORTRAN LIBRARY CONSTANTS(5)NAME
CONSTANTS - constants for LAM Fortran programming
DESCRIPTION
The following table describes the values appropriate to various constants used in LAM. It also describes the meaning of the constants and
lists the cpp(1) header files in which the constants can be found. To use these files, the Fortran source files will need to be passed
through cpp(1) before they are given to the Fortran compiler. Some compiler drivers will run cpp(1) if the source file suffix is .F.
In lieu of cpp(1), the constants can be copied to parameter statements in the Fortran source files.
CONSTANT VALUE DESCRIPTION FILE
Network Constants:
LOCAL -2147483647 local node NET.h
MAXNMSGLEN 8192 maximum length of one message packet NET.h
NHDSIZE 8 maximum size in words of ndata NET.h
argument
NOTNODEID -2147483648 error occurred in IGNDID(2) NET.h
NOTNODETYPE -2147483648 error occurred in IGRTP(2) NET.h
Node Types:
NTCAST 2 multicast definition NET.h
NTWASTE 4 not fully used/wasted NET.h
NTDISK 8 node with attached disk NET.h
NTTUBE 16 node with attached video unit NET.h
NTJONES 32 node is a neighbour NET.h
NTBOOT 64 neighbour node to boot NET.h
NTALL 127 matches any type NET.h
Message Flags:
NOBUF 16 turn off buffering NET.h
NREEL 1024 multireel NET.h
DRAWDATA 65536 ndata representation will not be NET.h
changed
DINT4DATA 131072 ndata holds 8 32-bit integer NET.h
DFLT4DATA 262144 ndata holds 8 single precision reals NET.h
DFLT8DATA 524288 ndata holds 4 double precision reals NET.h
DRAWMSG 1048576 nmsg representation will not be NET.h
changed
DINT4MSG 2097152 nmsg holds integers NET.h
DFLT4MSG 4194304 nmsg holds single precision reals NET.h
DFLT8MSG 8388608 nmsg holds double precision reals NET.h
Reserved Cast Identifiers:
HOST2ALL -2147483646 multicast from origin to all nodes NET.h
HOST2COMP -2147483642 multicast from origin to compute nodes NET.h
File Flags:
O_RDONLY 0 open for reading only FREQ.h
O_WRONLY 1 open for writing only FREQ.h
O_RDWR 2 open for reading and writing FREQ.h
O_APPEND 8 append on each write FREQ.h
O_CREAT 512 create file if it does not exist FREQ.h
O_TRUNC 1024 truncate length to 0 FREQ.h
O_EXCL 2048 error if create and file exists FREQ.h
O_SYNC 8192 update file data and file status FREQ.h
before writing
O_LOCK 65536 lock file descriptor active FREQ.h
O_REUSE 131072 reuse existing file descriptor FREQ.h
O_1WAY 4194304 do not acknowledge writes FREQ.h
Process Runtime Flags:
RTF_WAIT 16 child sends a message to NET.h
parent when it exits
RTF_TRACE 256 enable process tracing NET.h
LAM 6.5.8 November, 2002 CONSTANTS(5)