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

Comments

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout

Locks held on Oracle for hours after sessions abnormally terminated by node failure