Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 184505

A pattern-directed scanning and processing language.

2
votes
2answers
George 90 95 82 3 Jake 45 30 40 4 Dennie 89 92 90 so I used following code: awk '(($3+$4+$5)/3)>80 {print}' stud It works … , but I want to assign these columns into variable and then want to display output. So I tried below code, but it didn't work awk 'total=$3+$4+$5, per=total/3, per>80 {print}' stud any solution with variables? …
asked Oct 1 '16 by Dip
4
votes
3answers
I just want to implement if condition in awk. I created one file name : "simple_if" as below. BEGIN{ num=$1; if (num%2==0) printf "%d is Even number.\n",num; else printf "%d is odd Number.\n",num … } Then i executed the program by passing 10 as argument for $1 as below awk -f simple_if 10 But it doesn't take input and instead displays 0. Output: 0 is Even number. How to get value from user in awk? …
asked Oct 12 '18 by Dip
0
votes
Use cat command with -n option for enumeration. And specify n=17 as you wants to start from there. Use following command: cat -n <(awk '{n=17;if(NR==1)n=25;for(i=n;i<=NF;i++) a[$i]++} END{for(val in a) print val,a[val]}' filelog.txt) …
answered Aug 10 '18 by Dip