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
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 & Tech
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 & Tech
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 & Tech
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
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org