awk support untuk filtering teks berdasarkan pattern, jadi penggunaan grep disitu sepertinya ndak perlu.
One-liner versi yg lebih pendek: ifconfig | awk '$2 ~ /^[0-9]{3}/ {print $2}' ip a | awk '/global/ {print $2}'
iya bisa, support conditional, filter, bisa definisiin column berdasarkan spesifik konten, dll.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
...because of its users. You in?
awk support untuk filtering teks berdasarkan pattern, jadi penggunaan grep disitu sepertinya ndak perlu.
One-liner versi yg lebih pendek:
ifconfig | awk '$2 ~ /^[0-9]{3}/ {print $2}'
ip a | awk '/global/ {print $2}'
iya bisa, support conditional, filter, bisa definisiin column berdasarkan spesifik konten, dll.