Skip to content

Instantly share code, notes, and snippets.

@hidsh
Created November 8, 2020 18:07
Show Gist options
  • Save hidsh/492427aa22cbac1f514d952339238d3c to your computer and use it in GitHub Desktop.
Save hidsh/492427aa22cbac1f514d952339238d3c to your computer and use it in GitHub Desktop.
awk example: print
#!/bin/sh
ls -l
echo ---------------
ls -l |awk '{print $1}'
~/test/awk ❯❯❯ ./0-print.sh
total 16
-rwxr-xr-x@ 1 g staff 62 Nov 9 03:00 0-print.sh
-rw-r--r--@ 1 g staff 207 Nov 9 02:54 txt
---------------
total
-rwxr-xr-x@
-rw-r--r--@
~/test/awk ❯❯❯
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment