Skip to main content
code to sh for readability
Source Link

directions state your script file will be tested on our system with the following command:

awk -f ./awk4.awk input.csv

Write an awk script that will accept the following file and output the name and grade fields

task1

apparently, I created a bash script and it needs to be an awk script that will run with awk -f from the command line. below is my code. is there an easy way to convert my bash scripts into awk scripts without having to redo everything? really confused about the directions.

#!/usr/bin/awk -f
##comment create an awk script that will accept the following file and output the name and grade fields
##comment specify the delimiter as ","
awk -F, '

/./ {
##comment print the name and grade, which is first two fields
print $1" "$2

}' $1
#!/usr/bin/awk -f
##comment create an awk script that will accept the following file and output the name and grade fields
##comment specify the delimiter as ","
awk -F, '

/./ {
##comment print the name and grade, which is first two fields
print $1" "$2

}' $1

directions state your script file will be tested on our system with the following command:

awk -f ./awk4.awk input.csv

Write an awk script that will accept the following file and output the name and grade fields

task1

apparently, I created a bash script and it needs to be an awk script that will run with awk -f from the command line. below is my code. is there an easy way to convert my bash scripts into awk scripts without having to redo everything? really confused about the directions.

#!/usr/bin/awk -f
##comment create an awk script that will accept the following file and output the name and grade fields
##comment specify the delimiter as ","
awk -F, '

/./ {
##comment print the name and grade, which is first two fields
print $1" "$2

}' $1

directions state your script file will be tested on our system with the following command:

awk -f ./awk4.awk input.csv

Write an awk script that will accept the following file and output the name and grade fields

task1

apparently, I created a bash script and it needs to be an awk script that will run with awk -f from the command line. below is my code. is there an easy way to convert my bash scripts into awk scripts without having to redo everything? really confused about the directions.

#!/usr/bin/awk -f
##comment create an awk script that will accept the following file and output the name and grade fields
##comment specify the delimiter as ","
awk -F, '

/./ {
##comment print the name and grade, which is first two fields
print $1" "$2

}' $1
added 4 characters in body
Source Link
muru
  • 78.4k
  • 16
  • 214
  • 320

directions state your script file will be tested on our system with the following command: awk -f ./awk4.awk input.csv

Write an awk script that will accept the following file and output the name and-f grade./awk4.awk fieldsinput.csv

Write an awk script that will accept the following file and output the name and grade fields

task1

apparently, I created a bash script and it needs to be an awk script that will run with awk -f from the command line. below is my code. is there an easy way to convert my bash scripts into awk scripts without having to redo everything? really confused about the directions.

#!/usr/bin/awk -f
##comment create an awk script that will accept the following file and output the name and grade fields
##comment specify the delimiter as ","
awk -F, '

/./ {
##comment print the name and grade, which is first two fields
print $1" "$2

}' $1

directions state your script file will be tested on our system with the following command: awk -f ./awk4.awk input.csv

Write an awk script that will accept the following file and output the name and grade fields

task1

apparently, I created a bash script and it needs to be an awk script that will run with awk -f from the command line. below is my code. is there an easy way to convert my bash scripts into awk scripts without having to redo everything? really confused about the directions.

#!/usr/bin/awk -f
##comment create an awk script that will accept the following file and output the name and grade fields
##comment specify the delimiter as ","
awk -F, '

/./ {
##comment print the name and grade, which is first two fields
print $1" "$2

}' $1

directions state your script file will be tested on our system with the following command:

awk -f ./awk4.awk input.csv

Write an awk script that will accept the following file and output the name and grade fields

task1

apparently, I created a bash script and it needs to be an awk script that will run with awk -f from the command line. below is my code. is there an easy way to convert my bash scripts into awk scripts without having to redo everything? really confused about the directions.

#!/usr/bin/awk -f
##comment create an awk script that will accept the following file and output the name and grade fields
##comment specify the delimiter as ","
awk -F, '

/./ {
##comment print the name and grade, which is first two fields
print $1" "$2

}' $1
Source Link

confused about awk scripting

directions state your script file will be tested on our system with the following command: awk -f ./awk4.awk input.csv

Write an awk script that will accept the following file and output the name and grade fields

task1

apparently, I created a bash script and it needs to be an awk script that will run with awk -f from the command line. below is my code. is there an easy way to convert my bash scripts into awk scripts without having to redo everything? really confused about the directions.

#!/usr/bin/awk -f
##comment create an awk script that will accept the following file and output the name and grade fields
##comment specify the delimiter as ","
awk -F, '

/./ {
##comment print the name and grade, which is first two fields
print $1" "$2

}' $1