cat vs sed vs awk (lemmy.sdf.org)
submitted 3 years ago* (last edited 3 years ago) by to c/linux@lemmy.ml
 
you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 3 years ago* (1 child)

love cat -n, when working with csv files I often use a command like this to figure out which column I need:

head -n1 file.csv | sed 's/,/\n/g' | cat -n

  • source
  • hideshow 1 child comment