Pro Tip: For, While and Until Loops

LEVEL: SYSADMIN / TIME: 1-2 min. Here’s some handy quick reference examples to go back to easily if you are needing to use for, while and until loops in your…

running a command against every line in a textfile

So, you have a text file like so: file1 file2 .. And you want to run a command on each line of the file (say, chmod 644). Like all things…