A few useful alias additions
This commit is contained in:
parent
afe19f9172
commit
b00aa2ba0a
1 changed files with 13 additions and 0 deletions
13
aliases
13
aliases
|
|
@ -1 +1,14 @@
|
|||
ruler() { for s in '....^....|' '1234567890'; do w=${#s}; str=$( for (( i=1; $i<=$((($COLUMNS + $w) / $w )) ; i=$i+1 )); do echo -n $s; done ); str=$(echo $str | cut -c -$COLUMNS) ; echo $str; done; }
|
||||
|
||||
mktruckdir() {
|
||||
sudo mkdir ${1}
|
||||
sudo chown truck:truck ${1}
|
||||
}
|
||||
|
||||
randmac() {
|
||||
echo $FQDN|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
|
||||
}
|
||||
|
||||
randmacxen() {
|
||||
echo $FQDN|md5sum|sed 's/^\(..\)\(..\)\(..\).*$/00:16:3E:\1:\2:\3'/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue