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

โ‡ง