Skip to main content
added 193 characters in body
Source Link
quenia
  • 191
  • 7

awk provides pattern matching

awk '/ELF*.executable/ { ... }'

EDIT: in your case:

find /opt -type f | xargs ls -let | awk 'BEGIN { OFS="\t" } /ELF*.executable/ { sprintf("file \"%s\"", $10) | getline type; print type,$1,$3,$4 }' | tr ":" "\t"

awk provides pattern matching

awk '/ELF*.executable/ { ... }'

awk provides pattern matching

awk '/ELF*.executable/ { ... }'

EDIT: in your case:

find /opt -type f | xargs ls -let | awk 'BEGIN { OFS="\t" } /ELF*.executable/ { sprintf("file \"%s\"", $10) | getline type; print type,$1,$3,$4 }' | tr ":" "\t"
Source Link
quenia
  • 191
  • 7

awk provides pattern matching

awk '/ELF*.executable/ { ... }'