Skip to content

Instantly share code, notes, and snippets.

anumodh anaray

  • San Jose, CA
Block or report user

Report or block anaray

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View simple bash script to kill process
ps -ef | grep <process_identifier> | grep -v grep | awk '{print $2}' | xargs kill
@anaray
anaray / remove_newlines.sh
Created Jun 8, 2015
remove new line from files inside a directory
View remove_newlines.sh
#here file is renamed to <file>_edited, change as per requirement
for file in <file_base_location>/*
do
echo $file
sed '/^$/d' $file > ${file}_edited
#rm -f $file
done
@anaray
anaray / multi_jar_cp
Last active Feb 25, 2016
simple way to include all the jars in classpath - bash
View multi_jar_cp
java -cp .:$(echo /opt/hadoop/lib/*.jar | tr ' ' ':'):$(echo /opt/hbase/lib/*.jar | tr ' ' ':') ArticleIndex
You can’t perform that action at this time.