Skip navigation

Again using xargs comes in handy to speed up the process of committing a given list of files to the repository.
First let’s preview the command which will save us to type every file name (and their paths)

svn status |   awk '/^M/ {print $2," "}' | xargs echo svn ci -m \"Checking into the repository my last modified files\"

and once it’s been carefully examined, let it run by piping it to bash

svn status |   awk '/^M/{print $2," "}' | xargs echo svn ci -m \"Checking into the repository my last modified files\" | bash
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: