Posts by pierre

Deleting a very large amount of files inside a folder

April 12th, 2017 Posted by Blog, Tips 0 thoughts on “Deleting a very large amount of files inside a folder”

Sometimes you have to delete a very large amount of files inside a folder.

When ls and rm reach shell limit that make impossible to use them. Perl is at the rescue.

perl -e ‘for(<*>){((stat)[9]<(unlink))}’

Tips of the Day: Remove all local branches already merged into master

March 27th, 2017 Posted by Blog, Tips 0 thoughts on “Tips of the Day: Remove all local branches already merged into master”

Remove all local branches already merged into master:

git branch --merged master | grep -v ‘^ *master$’ | xargs git branch -d

Continuous S.A.
3 avenue du Blues,
L-4368, Belvaux
Luxembourg

© Continuous S.A. 2017