We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

narkisr on 07/20/08


Tagged

Bash awk


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

berkes


Deleting a file which is listed in svn status


Published in: Bash 


A useful AWK one liner, see http://student.northpark.edu/pemente/awk/awk1line.txt for some more

  1. svn status | awk '/Action/{print $2}' | xargs rm

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: berkes on July 29, 2008

Another option is rm -v -rf svn st | awk '{ print $2 }'

You need to login to post a comment.