Category: shell command line
-
what about coding / format standards for the output of command line tools? YAML / JSON / XML
https://www.gnu.org/prep/standards/standards.html I would like the command line utilities to deliver output in YAML, JSON or XML.
-
the Bitwarden command-line tool
https://bitwarden.com/help/article/cli/ https://stedolan.github.io/jq/ – “bw” (the CLI utility) works well with jq
-
querying YAML on the command line – YAML Path
https://github.com/wwkimball/yamlpath https://github.com/wwkimball/yamlpath/wiki
-
change your computer’s name or local hostname on macOS
https://support.apple.com/en-gb/guide/mac-help/mchlp2322/mac
-
“ShellCheck finds bugs in your shell scripts” – shell script analysis tool
https://www.ShellCheck.net/ https://github.com/koalaman/shellcheck “You can cabal, apt, dnf, pkg or brew install it locally right now” “already packaged for your distro or package manager” “written in Haskell, if you’re into that sort of thing”
-
how can I read a file from last line to first line on the Unix command line?
https://stackoverflow.com/questions/48721344/how-can-i-read-a-file-from-last-line-to-first-line-in-shell https://www.man7.org/linux/man-pages/man1/tac.1.html – cat vs tac $ perl -e ‘print reverse <>’ Input_file There are also solutions in awk and sed – read the stackoverflow article for those solutions!
-
John Borwick: Perl one liners for daily use
http://www.johnborwick.com/2019/02/03/perl-one-liners.html
-
macOS: pbcopy, pbpaste – provide copying and pasting from/to the “pasteboard”
https://www.unix.com/man-page/osx/1/pbpaste/ – macOS https://cygwin.com/packages/x86_64/cygutils-extra/ http://www.johnborwick.com/2019/02/03/perl-one-liners.html
-
terminal emulators available in the Cygwin environment
The classical Unix/BSD/Linux approaches: https://en.wikipedia.org/wiki/Terminal_multiplexer https://en.wikipedia.org/wiki/GNU_Screen https://en.wikipedia.org/wiki/Tmux … I urgently need to replace mintty within my Cygwin environment by something more serious. I need to split the screen horizontally or vertically. And I cannot cope with screen‘s shortcomings – esp. with its learning curve. https://cygwin.com/packages/package_list.html https://cygwin.com/packages/x86_64/konsole/ https://cygwin.com/packages/x86_64/konsole4/ Which packages can we find in Cygwin: $…
-
“watch” runs some command repeatedly, displaying …
https://manpages.debian.org/unstable/procps/watch.1.en.html “watch” is nice, but sometimes I like this better: $ while sleep 2; do echo -n “$(date ‘+%F %T : ‘)”; …; done