To be added to https://github.com/subfission/Bash-Tips-Tricks when finished.
Commands oriented to administrative workflows. Placeholders:
<ip>,<user>,<port>,<file>,<iface>,<mac>,<domain>,<dns_server>,<pid>,<pattern>,<processname>.
SECTIONS: Hardware Management ·
Command ends when you press return.
diff <(lsusb) <(read; lsusb)Send files from memory into vim for editing using process substitution, rather than sourcing from HD.
Example usage could be for making a TLS certificate chain, manually reviewing, and then storing in a location of your choosing.
vim <(cat file1 file2)
diff <(sort file1) <(sort file2)Using process substitution for performing differential comparisons of a file after a temporary edit.
Example could be when editing config files and validating what would be changed, without changing the file.
diff file1 <(sed s/on/#off/I file1)./example_executable > >(less) 2> >(tee errorlog.txt)