This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in "${PXD[@]}" | |
do | |
echo "$i" | |
Rscript $SCRIPTS/parser_argumented.R --PXD "$i" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function print_time { | |
END=$(date +%s) | |
DIFF=$(( $END - $1 )) | |
dd=$(echo "$DIFF/86400" | bc) | |
dt2=$(echo "$DIFF-86400*$dd" | bc) | |
dh=$(echo "$dt2/3600" | bc) | |
dt3=$(echo "$dt2-3600*$dh" | bc) | |
dm=$(echo "$dt3/60" | bc) | |
ds=$(echo "$dt3-60*$dm" | bc) | |
if [ $dd -gt 0 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ls /data/*cspsx 1> /dev/null 2>&1; then | |
echo "files do exist" | |
else | |
echo "files do not exist" | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk '/LINE-1|LINE_1/ { print $0 }' $x > ${x%.txt}_LINE_filtered.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name 'BLA*.txt' -exec mv -it ../final {} + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RESULT_FOLDERS=`find /$DIR/ -maxdepth 1 -type d -print| wc -l` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -en "\033[34m" | |
echo "Hello world" | |
echo -en "\033[0m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### loading bar | |
x=$1 | |
echo -ne ' (0%)\r' | |
# sleep `bc <<< "scale=2; $x/10"` | |
echo -ne 'ββ (10%)\r' | |
sleep `bc <<< "scale=2; $x/10"` | |
echo -ne 'ββββ (20%)\r' | |
sleep `bc <<< "scale=2; $x/10"` | |
echo -ne 'ββββββ (30%)\r' |