Pario TechnoBlob
About
Posts
Tag: awk
List directory files with a certain datestamp
List the names of files in the current directory dated May 16. ls -l | awk '{if($6=="May" && $7=="16") print $NF }'
Shell script to Finding Accounts with No Password
Shell script to Finding Accounts with No Password listuserwopassword.bash #!/bin/bash # Shell script to Finding Accounts with No Password # Useful to improve system security #...
Get your IP address
ifconfig eth0 | awk '/inet addr/{print $2}' | cut -d: -f2
One-line batch file renamer
If you want to batch rename a bunch of files (say “foo*.jpg” to “bar*.jpg”), you might think you could just do “mv foo*.jpg bar*.jpg” in the Terminal. However, this doesn’t...
««
«
1
2
3
4
5
»
»»