Skip to content

Instantly share code, notes, and snippets.

View jkbmaj's full-sized avatar

Jakub Maj jkbmaj

View GitHub Profile
@jkbmaj
jkbmaj / update_git_repos.sh
Last active April 30, 2018 07:29 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
#!/bin/bash
# store the current dir
CURRENT_DIR=$(pwd)
if [[ $1 == '' ]] ;then
BASE_DIR=${CURRENT_DIR}
else
BASE_DIR=$1;
fi
#!/bin/bash
ROWS=0;
nl -ba -s ': ' first.log > first.log.tmp;
mv first.log.tmp first.log;
ROWS=$((${ROWS}+`wc -l < first.log`+1))
nl -v ${ROWS} -ba -s ': ' second.log > second.log.tmp;
mv second.log.tmp second.log;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.