Automating rclone (crontab, etc)

  • rc() { ... } is a shell function definition with 4 positional parameters
  • rc arg1 arg2 arg3 arg4 is an invocation example where
    • $0 == "rc"
    • $1 == "arg1"
    • $2 == "arg2"
    • $3 == "arg3"
    • $4 == "arg4"
  • @sweh is using KornShell (/bin/ksh)
  • I typically use Bash (/bin/bash)
  • Both are similar with respect to Shell Functions

Bash Reference Manual