Remove all .svn folders from directory recursively
1 2 find . -name .svn -print0 | xargs -0 rm -rf
13520 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
1 2 find . -name .svn -print0 | xargs -0 rm -rf
1 2 # List all new files 3 svn st | grep ? | sed "s/^? //" 4 5 # Add all new files 6 svn st | grep ? | sed "s/^? //" | xargs svn add 7 8 # Another way to add all new files 9 svn add * --force
1 2 svn propset svn:ignore -F .cvsignore .
1 2 … with line number: -n 3 … with file name: -H
1
1 2 sudo perl -MCPAN -e 'install Bundle::LWP'
1 2 <meta http-equiv=Refresh content="0; URL=http://blog.jm3.net/" />
1 2 ssh -l cs 208.101.26.91
1 2 find d . -name .svn -exec rm -rf '{}' \; -print
1 2 REM OperaSync.bat 3 @echo off 4 5 set PRG=Opera 6 set TARGET=%APPDATA%/%PRG%/%PRG%/profile 7 set EXEC=%PROGS%/%PRG%/%PRG%.exe 8 set REPO=https://********.googlecode.com/svn/trunk/%PROG%Sync 9 set USER=************* 10 11 echo Checking out from %REPO% ... 12 svn checkout %REPO% "%TARGET%" --username %USER% 13 echo %PROG% running ... 14 %EXEC% 15 echo Commiting to %REPO% ... 16 svn commit -m --force-log "%TARGET%" 17 echo Done. 18 19 @echo on
1 2 contacts.adr 3 files.txt 4 jscripts/ 5 jscripts/deliciousmp3.js 6 notes.adr 7 opcacrt6.dat 8 opcert6.dat 9 opera6.adr 10 search.ini 11 sessions/ 12 sessions/autosave.win 13 sessions/autosave.win.bak 14 speeddial.ini
1 2 newfiles=`svn status | grep '?' | cut -c 8-` 3 for f in $newfiles; do svn add $f;done
1 2 svn st | grep M | egrep -v routes | awk -F' ' '{ print $2}' | xargs svn ci -m "blah" 3 4 # where egrep -v routes is replaced with all the crap you don't wanna commit 5 6 ie - egrep -v routes | egrep -v this | egrep -v that 7 8 # I can write a script that takes those expressions as command-line options to make it easier if you're interested.. or we can write it together.. we can do it in ruby!
1 2 find . -path '*/.svn' -prune -o -type f -print | xargs -e grep -I -n -e PATTERN
1 2 Dir.glob('app/views/**/*.rhtml').each do |file| 3 puts `svn mv #{file} #{file.gsub(/\.rhtml$/, '.erb')}` 4 end