Little Bash tricks

Created Tuesday 28 May 2019


Print Every Nth Line

awk '!(NR%3)'


If file exists

[ ! -f $file ]


Generate passwords

openssl rand -base64 32
('32' can be changed to whatever length you want. This is probably as good as any method you'll see anywhere)




Backlinks: Tech Guides:Bash Scripting Guides and Tips