Search for string inside many files

Combine find, its -exec argument and grep to search inside many files recursively and display the file path in results. Here I’m searching inside the directory modules/ for any files with the extension .tf that contain the string “mode =”. $ find modules/ -name "*.tf" -type f -exec grep -H 'mode =' {} \; modules/gitlab-base-ignition/main.tf: mode = 0755 modules/gitlab-base-ignition/main.tf: mode = 0755 modules/gitlab-base-ignition/main.tf: mode = 0755 modules/gitlab-base-ignition/main.tf: mode = 0644 modules/network-ignition/main....

2023-09-20

Delete all your lambda functions

Hey kid, wanna delete all your lambda functions?

2023-09-03

ffmpeg recipes

Whenever I do anything cool with ffmpeg I save it here, because ffmpeg arguments can be very convoluted.

2022-11-28

kubectl cheatsheet

My chetsheet for kubectl commands.

2022-10-13

Rook-Ceph

Personal knowledgebase for the Rook-Ceph k8s operator.

2022-05-13

Bash recipes

Whenever I do anything neat in Bash I try to save it here.

2022-01-23

Using Yubikey in Fedora

How I got started with Yubikey on Fedora.

2021-12-07

jq recipes

Whenever I do anything cool with jq I save it here, because jq can be very convoluted.

2021-07-09