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
[–] 0 points 3 years ago (1 child)
$ n=0; while read -r l; do n="$((n+1))" printf '    %d %s\n' "$n" "$l"; done < /etc/os-release 
    0 NAME="openSUSE Tumbleweed"
    0 # VERSION="20230619"
    0 ID="opensuse-tumbleweed"
 [...]
  • source
  • parent
  • hideshow 1 child comment