Created
April 7, 2017 07:27
-
-
Save ksharsha/7a52efe4ad950128baf6c434418a05f3 to your computer and use it in GitHub Desktop.
Some common commands which males our life simpler
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 */ | wc --> Count the number of directories in a folder | |
for f in *\ *; do mv "$f" "${f// /_}"; done --> replace spaces in folder names, not recursive | |
for f in model/* ; do mv "$f" `echo "$f" | sed 's/_//g'` ; done --> Remove underscores from the file names | |
./sout.py 2>&1 | tee test.txt --> To print the logs to the terminal as well as save them to a text file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment