trap '' 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# fix bibble labs workqueus | |
``` | |
for i in `ls *.work`; do cat $i | sed -e 's/\(.*\)\/\(.*\)/\/home\/epcim\/hg2g\/pho\/archive\/2008\/2008-09_DovolenaToskanskoKorsica\/ape-allToProcess\/\L\2/' > $i.ok ; done | |
echo rm *.work | |
for i in `ls *.work.ok`; do N=`echo $i | sed -e 's:\.ok::'`; echo mv $i $N ; done | |
``` | |
knife[:automatic_attribute_whitelist] = [
"fqdn/",
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for i in `ldd $1 | awk -F '=> ' '{print $2}' | grep '/'| awk -F ' ' '{print $1}'`; do TO=`echo $i |sed -e 's/\///'`; TOPATH=`echo $TO| sed -e 's/\(.*\)\(\/.*\)/\1/'` ; [ -e $TOPATH ] || echo sudo mkdir -p $TOPATH; [ -e $i ] || echo sudo cp -v $i $TO ; done | |