←back to thread

131 points tomschafer | 1 comments | | HN request time: 0.344s | source
Show context
sigmonsays ◴[] No.42151991[source]
We're losing the art of bash ``` find -type f -iname '*.go' | xargs -r -n1 sed -i 's,foo,foobar,g' ```
replies(4): >>42153830 #>>42153991 #>>42154761 #>>42155854 #
1. mh- ◴[] No.42153830[source]
Something that frequently trips me up, mostly when helping colleagues, is the arguments to both find and xargs differ substantially between GNU and the FreeBSD-derived ones that ship on macOS.