- Notifications
You must be signed in to change notification settings - Fork8
qiray/useful-scripts
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Some useful scripts.
Local update multiple repositories from list. List example ishere.
bash git/pull.sh bash/list_example.txt
Script for pushing git repository to all it's remotes. If it's called without arguments it pushes current folder. Else it parses filelist like pull script. List example ishere.
bash git/push.sh bash/list_example.txt# orbash git/push.shChange the author and committer name and e-mail of multiple commits for all branches and tags (original here -https://stackoverflow.com/a/750182). You should run this script from folder with repository to change.
WARNING! These changes are dangerous because they change remote git history!
# Run this script from folder with repository to change.bash git/change_author.sh WRONG_EMAIL CORRECT_NAME CORRECT_EMAILCopy folder via ssh using tar to current folder. It can be useful for copying folder with large amount of files via ssh. It's faster than pure ssh.
bash bash/ssh_tar.sh user@host /path/to/folder# orbash bash/ssh_tar.sh user@host -p port /path/to/folderParse filelist, call command $2 for each folder from filelist $1 and print text $3 for each folder. List example ishere.
# to show all directories in file bash/list_example.txtbash/parse_filelist.sh bash/list_example.txtpwd"Current directory"
Call word count util (wc) for files in directory $1 with extensions $2, $3, $n etc.
# For example to call wc for C and C++ files and headers (files *.c, *.cpp, *.cxx, *.h, *.hpp, *.hxx) run:bash/wc.sh. c cpp cxx h hpp hxx
About
Some useful scripts
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.