With no sample input, no indication of what your script is supposed to do, no desired output, no indication of what operating system you're using, and no indication of what errors you're getting; it is hard to suggest what you need to do to fix your problems.
But, here are a couple of comments that may help you decide what you want to change...
The if statement on lines 6 and 7 is treated as:
The remainder of line 7 contains two assignment statements that are executed independently of whether or not the expression in the if statement is true or false.
The else on line 9 is not associated with an if statement.
The END {} on line 14 can be removed without affecting the operation of your awk script.
can anyone see the awk syntax error near line 1? I keep getting this error and I'm not familiar with awk very well yet so it is hard for me to see the errors.
fyi: deleteuser* refers to files in the directory where each one ends with a different date
ls -1 /mfupload/prod02/ftp/deleteuser* |... (12 Replies)
Due to some syntax error, my below code is not working.
#!/usr/bin/ksh
nawk '
BEGIN {
cur_val=0; cur_zero=0; cur_nine=0;
sum_zero=0; sum_nine=0;
}
/^/ {
cur_val=substr($0,5,2);
if("cur_val" == "0")
{
... (3 Replies)
I generate a fullpath variable two different ways:
1) concat two variables rootpath and relpath to give me fullpath
2) use 'find' to get the fullpath
when I echo the variable, I get the same output for both. However,
I print the variable from method 1 in the below loop I get "awk syntax... (0 Replies)
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, I can't see what is wrong with the following command.
I am extracting a dollar amount (AMT_REJ, 6th field) from a comma delimited record and need to output it as numeric, removing the $sign and decimal point and output to another file. Everything seems to work except the $ sign which I need... (1 Reply)
Hi All,
I wrote a simple script.sh program
for i in seq (22)
do awk '$1==${i}' file1.txt|awk '{print $2}'> file${i}_study.txt
done
and then run it
%bash
%chmod +x script.sh
% ./script.sh
Give me error
awk: $1==${i}
awk: ^ syntax error
Do you have any idea why... (3 Replies)
Can anyone work out why this line has a syntax error?
awk '{if ($1==1) print NR,$0 } '${PROJECT}/${data_dir}/${ofolder}/STDEV/otimes_${per}_secs.dat > tmp2.txt
I've check that the file exists in the given location (1 Reply)
I know the below code worked, but the syntax appears to be wrong and I can not seem to correct it. Thank you :).
awk 'FNR==NR {E; next }>$3 in E {print $3, $5}' medical_exome__genes.txt RefSeqGene.txt > update.txt
awk: cmd. line:1: FNR==NR {E; next }>$3 in E {print $3, $5}
awk: cmd.... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT OSX
ttk_frame
ttk::frame(n) Tk Themed Widget ttk::frame(n)
__________________________________________________________________________________________________________________________________________________NAME
ttk::frame - Simple container widget
SYNOPSIS
ttk::frame pathName ?options?
_________________________________________________________________DESCRIPTION
A ttk::frame widget is a container, used to group other widgets together.
STANDARD OPTIONS -class-cursor-takefocus
-style
See the ttk_widget manual entry for details on the standard options.
WIDGET-SPECIFIC OPTIONS
[-borderwidth borderWidth] The desired width of the widget border. Defaults to 0. [-relief relief] One of the standard Tk border styles:
flat, groove, raised, ridge, solid, or sunken. Defaults to flat. [-padding padding] Additional padding to include inside the border.
[-width width] If specified, the widget's requested width in pixels. [-height height] If specified, the widget's requested height in pix-
els.
WIDGET COMMAND
Supports the standard widget commands configure, cget, identify, instate, and state; see ttk::widget(n).
NOTES
Note that if the pack, grid, or other geometry managers are used to manage the children of the frame, by the GM's requested size will nor-
mally take precedence over the frame widget's -width and -height options. pack propagate and grid propagate can be used to change this.
SEE ALSO
ttk::widget(n), ttk::labelframe(n), frame(n)
KEYWORDS
widget, frame, container
Tk 8.5 ttk::frame(n)