$ ./guess_the_languageLinux CLI
Linux CLI · medium · #16

What does this print?

printf 'a,3\nb,5\nc,2\n' | awk -F, '{s+=$2} END {print s}'
  1. 10
  2. 352
  3. 3
  4. abc
-F, splits on commas, the main block adds field 2 of each line, and END prints the total 3+5+2.
Play Linux CLI ▸