←back to thread

131 points tomschafer | 4 comments | | HN request time: 0.269s | 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. lofaszvanitt ◴[] No.42154761[source]
The problem is... if you use these on rare occasions it gets frustrating, because you have to read the manual or google everything or ask the llm again and again.

noone can remember these abbreviations

replies(3): >>42154778 #>>42156856 #>>42161368 #
2. KetoManx64 ◴[] No.42154778[source]
https://atuin.sh/ is such a huge productivity booster in these scenarios. I remember that I used find + xargs command sometime in the last 6 months on of my computers and with Atuin I can quickly find it and then slightly modify it to fit my current need.
3. fwip ◴[] No.42156856[source]
You can save useful snippets in a file for later use.
4. feelamee ◴[] No.42161368[source]
yes, but...

noone except your shell! Fish is perfect and very very often can guess what I want using pwd, file existence, current prompt, etc...