Notice that #2 in the 2nd example is the only one that works
./envtest1;./envtest2;./envtest3
diff <(cat env_envtest1) <(cat env_envtest2)
#!/bin/bash | |
# rainbow | |
# A bash script that prints a nice set of colours on an ANSI terminal | |
# Written as a platform to test capability and conformance, but it's also pretty!! | |
# Written in celebration of Pride Month 2023 and support of LGBTQ+ | |
# J. Morgan (@the-moog on github) | |
# | |
# License: MIT: Free to the community not commercial gain and no warranties applied. |
alias lskeys='for kf in ~/.ssh/*.priv; do read -rst 2 size fingerprint userid txt <<<$(ssh-keygen -l -f ${kf});\ | |
printf "KEYFILE: %-50s - BITS: %-6d FP: %s, USER: '%s', INFO: '%s'\n" "$(basename ${kf})" "${size}" "${fingerprint}" "${userid}" "${txt}"; done' | |
# use the source, Luke | |
# > source remote-sftp.shsrc | |
action="df -h\nexit\n" | |
for d in / /vol /vol/homes /vol/Public; do | |
echo "${d}:" | |
echo -e "${action}" | sftp "user@fs1:${d}" | |
echo "${d}/:" |