find . -type d -exec chmod 0777 {} \; find . -type f -exec chmod 0644 {} \;
find . -type f -exec rm -f /var/repo/'{}' ';'
find . -type f -name '*.php' -exec sed -i -r 's@karta_sajta@site_map@g' {} \;
find /var/log -type d | ( while read A; do B=`ls -l "$A" | wc -l`; echo $B $A; done) | sort -nr
tail -f /var/log/nginx/access.log | grep -P 'HTTP\/1\.[01]\t[45]\d{2}'
ps hax -o user | sort | uniq -c
топорно:
kill `ps ax | grep some_script.php | awk '{print $1}'`
правильно:
pkill -f some_script.php
cat test.txt | grep -ev "^#\|^$"
tail /var/log/nginx/access.log -n10000 | awk '{print $6}' | sort | uniq -cd | more
du -msxc /tmp/* | sort -n -r | more
curl http://88.198.46.60 | grep "Your IP is"
fdupes -r /home/user
#!/bin/bash echo "read ${inp}" cat $1 | while read l; do d="${l:1:10}" D=`date -d@$d` L=${l/$d/$D} echo $L | tee -a $2 done
cat access.log | awk -F'\t' '{print $2, $12}'| sort | uniq -c | sort -nr | more