Created
November 8, 2020 18:07
-
-
Save hidsh/492427aa22cbac1f514d952339238d3c to your computer and use it in GitHub Desktop.
awk example: print
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ls -l | |
echo --------------- | |
ls -l |awk '{print $1}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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