shell scripting
`basename $0` - script name
List dir in loop
> while true; do clear; ls; sleep 2; done;
for jar in *.jar; do echo $jar; unzip -l ${jar} | grep SomeText; done
find . -name target | xargs rm -rf
Kill all of one type of session
Use with care - test grep first
ps aux | grep sql | awk '{print $2}' | xargs kill -9
List dir in loop
> while true; do clear; ls; sleep 2; done;
for jar in *.jar; do echo $jar; unzip -l ${jar} | grep SomeText; done
find . -name target | xargs rm -rf
Kill all of one type of session
Use with care - test grep first
ps aux | grep sql | awk '{print $2}' | xargs kill -9
Comments