8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Team,
I am using below awk code in the script
ssh -o ConnectTimeout=15 -n -l USER SERVER awk -F'\;' '{ if ( $3 == '-' && $1 ~ // ) print }' *20130706*
but its giving error as
awk: syntax error near line 1
awk: illegal statement near line 1
Please help.
... (6 Replies)
Discussion started by: skhichi
6 Replies
2. Shell Programming and Scripting
I am getting the following error while passing parameter to a shell script called within awk script. Any idea what's causing this issue and how to ix it ? Thanks
sh: -c: line 0: syntax error near unexpected token `newline'
sh: -c: line 0: `./billdatecalc.sh ... (10 Replies)
Discussion started by: Sudhakar333
10 Replies
3. Shell Programming and Scripting
Hi,
I run an awk script and I got the error attached below:
here are the lines that the compiler point to as an error:
duration = timeEnd1-timeBegin1;
print "Transmission: type of traffic " flow1 ;
print - Total transmitted bits = totalBits1 bits;
print - duration = ... (2 Replies)
Discussion started by: ENG_MOHD
2 Replies
4. Shell Programming and Scripting
Hi Friends,
the below script has been through the errors in sun solaris.
awk '/%s/{f=0 ;n++; print >(file="OUT_" n); close("OUT_" n-1)} f{ print > file}; /%s/{f=1}' $BASE_DIR/concat.TXT
awk: syntax error near line 1
awk: bailing out near line 1
And
ls $MERGE_DIR/*.R | awk '
{
... (2 Replies)
Discussion started by: krbala1985
2 Replies
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
I am getting this error:
awk: cmd. line:1: BEGIN {print "Userid Shell" }
awk: cmd. line:1: ^ syntax errorBased on this script:
#!/bin/bash
awk -F":" \
'{
BEGIN {print "Userid Shell" }
loginname=$1
optionalpass=$2
numericuserid=$3
numericgroupid=$4
username=$5
userhomedir=$6... (1 Reply)
Discussion started by: holocene
1 Replies
7. UNIX for Dummies Questions & Answers
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)
Discussion started by: Herry
2 Replies
8. Shell Programming and Scripting
could any one tell me the error in the script here...
it says
awk: syntax error near line 15
awk: bailing out near line 15
... the awk script is attached
#This awk script collects the undec neighbour info
#
BEGIN {
printf "SOURCE\tSECTOR\tPNPHASE\tLEVEL\t\REFERENCE\n"
}
... (7 Replies)
Discussion started by: rraajjiibb
7 Replies