Move files in current subdirectories to the current directory. Delete local folders that are empty.
See full explanation at Safer bash scripts with ‘set -euxo pipefail’ by Tom Van Eyck.
Given that you have the AWS CLI installed and configured, here are a few examples of syncing directories with S3. Sync your home directory: [bash]…
Step 1) Download the video from Youtube using JDownloader. The best one was the original Japanese upload, The Game Awards 2014 å‡ºå±•æ˜ åƒ ã‚¼ãƒ«ãƒ€ã®ä¼èª¬ 最新作, which…
[bash] #!/bin/sh file="/tmp/myfile" while read line; do echo $line done < "$file" [/bash]
[bash]$ echo {0..9} 0 1 2 3 4 5 6 7 8 9[/bash] [bash]$ echo b{a,e,i,o,u} ba be bi bo bu [/bash] [bash]$ echo x{0..9}y…
sudo find /proc -maxdepth 2 -name maps -exec grep -HE ‘\(deleted\)’ {} \; | cut -d/ -f3 | sort -u | xargs –no-run-if-empty ps Looking…
[bash]#!/bin/sh HOST="silveiraneto.net" if ping -c 1 $HOST > /dev/null then echo your command fi [/bash] replace silveiraneto.net for your desired hostname or ip ping sends…
Nem só de morte vive o kill. Suponha que você tem um processo chamado program e quer congelar seu funcionamento. Para congela-lo sem mata-lo você…