A typical Developer Blog
by Gordon Franke
Icon

How can i remove all generated symfony base files automatically from svn?

call this from your project root

for DIR in `find lib -name base -type d`; do svn propset svn:ignore base $DIR/..;svn rm $DIR; done;

Unix helper

Some questions some awnsers. For each command you can find more options with

man command

How can i show the difference between two files or directories?

simple use diff

diff file1 file2
  • -r rekursive
  • -w –ignore-all-space ignore space
  • -y –side-by-side show both files side by side

How can i copy with the same right, group and user settings?

with the option -a

cp source target -a

How can i show metacharacters like special whit spaces?

use cat

cat -A file

How can i get one file from a SVN source?

svn export http://framework.zend.com/svn/framework/standard/tags/release-1.7.6/library/Zend/Acl.php

How can i remove all .svn folder from a folder and his subfolders?

for DIR in `find . -name .svn -type d`; do rm $DIR -Rf; done;

How can display a directory as a tree?

simple with tree

tree directory
  • -L depth