Convert ls output into a comma-separated string

ls -m <files>*.csv | sed -e 's/, /,/g' | tr -d '\n'

Create a tar archive (multi-threaded)

  • tar cf - paths-to-archive | pigz -p <threads> > archive.tgz

Run a command in the background (nb. you'll need to kill the pid directly to interrupt)

  • nohup <command> &> <logfile> &

results matching ""

    No results matching ""