svn cleanup관련 script
#!/bin/sh trap "exit 0" 2 svn st | grep "A L" | awk '{print $3}' | sort -r > lock.txt svn st | grep " L" | awk '{print $2}' | sort -r >> lock.txt lock_num=`cat lock.txt | awk 'END {print NR}'`; echo "lock_num : $lock_num"; count=1; while [[ "$count" -le "$lock_num" ]] do lock_directory=`cat lock.txt | awk -v count=$count 'BEGIN { FS="\n"; RS="\n\n";} END {print $count;}'` echo "Lock_directory : ..
Linux기본/Shell
2010. 12. 27. 18:22