Yeah, not sure how I missed this one!
Yeah, not sure how I missed this one!
I like batcat aka bat, but nominate the humble ‘cat’ instead.
Want to copy a disk image to a device? You can use cat for that: cat file.iso>/dev/sdf
What to copy local stdout over ssh? Use cat.
ls -l | ssh myhost 'cat >out.txt'
That’s simple and surprisingly powerful.
For some cases I use “|| true”.
The idiom accepts that the preceding command might fail, and that’s OK.
For example, a script where mkdir creates a directory that might already exist.
Nginx has a number of compile-time optional features and they aren’t all enabled in the pre-built packages. For example, the ability to echo back HTTP requests for debugging.
Yes, Fish excels at being an interactive shell.
Right, it was an example of a pattern. In that case, -p could be used.