Category: shell scripts

  • Unix, Linux: how to do a proper and secure file transfer in a cronjob

    I got advised to do sftp with an empty passphrase. I got that working. Was pretty straight forward. But is there a better way? With a non-empty passphrase? But how to deal with that passphrase? my buzzword web search: ssh file transfer best practice I do my ordinary SSH handling with an […]

  • “ShellCheck finds bugs in your shell scripts” – shell script analysis tool “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”

  • GNU wdiff — front end to GNU diff — word differences Compares two files on a word per word basis, finding the word deleted or added from the first file to make the second. A word is defined as anything between whitespace. It works by creating two temporary files, one word per line, and the executes ‘diff’ on these fields. It collects the ‘diff’ output […]

  • O’Reilly Media book: Classic Shell Scripting (a Git repository) nice scripts shown there and available in the sample code: – rather similar to my own – rather similar to my own – but has a problem with “md5sum” – I fixed that …