Useful linux commands

Rechercher sslh dans plusieurs fichiers dont le nom commence par syslog

grep /var/log --include=\syslog*.* -rnw  -e 'sslh'

Use previous command results as next command arguments (compatible with multiple commands and argument placed randomly)

For example this retrieves EKS cluster list and recreates the kubeconfig file.

aws eks list-clusters | jq -r '.clusters[]' | xargs -n1 -I % sh -c '{ aws eks update-kubeconfig --name %; echo %; }'