menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
What is the output of the AWK program? BEGIN { a[1]="CST" a[2]="CST" for(i=1;i<4;i++) { print a[i] } } etc.
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
What is the output of the AWK program? BEGIN { a[1]="CST" a[2]="CST" for(i=1;i<4;i++) { print a[i] } } etc.
asked
Aug 2, 2019
188k
views
2
votes
What is the output of the AWK program?
BEGIN {
a[1]="CST"
a[2]="CST"
for(i=1;i<4;i++) {
print a[i]
}
}
etc.
Computers and Technology
middle-school
Ali Ben Zarrouk
asked
by
Ali Ben Zarrouk
8.0k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
Luckily your file uses YYYY-MM-SS HH:MM:SS timestamps, which sort alphabetically. Those can be compared with < > <= etc without worrying about any date math. MIN="..." and MAX="..." are where those values are input into awk.
Joel Hoelting
answered
Aug 9, 2019
by
Joel Hoelting
8.0k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jul 17, 2024
65.0k
views
Which of the following Linux commands will print lines from the file that contain matches to "changes" and "changed"? a) grep "changes|changed" filename b) sed -n '/changes|changed/p' filename c) awk '/changes|changed/'
Nanego
asked
Jul 17, 2024
by
Nanego
8.2k
points
Computers and Technology
high-school
1
answer
5
votes
65.0k
views
asked
Apr 17, 2024
182k
views
Csci 330 assignment 9 (fall 2023) 1 of 4 csci 330 assignment 9 (fall 2023) generating reports with awk (100pts) overview write an awk script that computes and displays a report based on data in the format
Adam Fischer
asked
Apr 17, 2024
by
Adam Fischer
7.7k
points
Computers and Technology
high-school
1
answer
4
votes
182k
views
asked
Nov 25, 2024
188k
views
Awk allows the user to use variables of their own choice A) True B) False
Andrine
asked
Nov 25, 2024
by
Andrine
8.5k
points
Engineering
high-school
1
answer
1
vote
188k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
What is an example of a dedicated computer system?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org