Skip to main content

Search

Items tagged with: grep


Solved a Linux/MacOS portability issue today 🙊

It turns out, `grep` doesn't print out the file name if you don't provide multiple files on Linux. The workaround is to append `/dev/null` as an extra file.

🐧 Issue: https://github.com/kyu08/fzf-make/issues/53

❓ Workaround: https://stackoverflow.com/questions/15432156/display-filename-before-matching-line

#linux #macos #portability #grep