Pario TechnoBlob
About
Posts
Tag: grep
Shell script for search for no password entries and lock all accounts
Shell script for search for no password entries and lock all accounts find-account-no-password.sh #!/bin/bash # Shell script for search for no password entries and lock all...
Strip comments from config files
This is at short script to strip/remove comments from config files #!/bin/bash # Code to cat a config file removing all comments and blank lines. grep -vh '^[[:space:]]*#'...
List only directories
ls -F $1 | grep / | sed -e 's//$//g'
Script to unmount Busy Devices
First the script tries to umount the drive normally. If that fails, it tries to restart famd which is the most common problem. If that fails it tries to restart xinetd. If...
««
«
1
2
3
4
…
6
»
»»