Skip to content

Instantly share code, notes, and snippets.

@micha149
Created May 14, 2012 09:40
Show Gist options
  • Save micha149/2692968 to your computer and use it in GitHub Desktop.
Save micha149/2692968 to your computer and use it in GitHub Desktop.
Filter versioned files by their revision in svn
# svn status --verbose Lists all files and their revisions
# sed "s/^[^0-9]*//g" strips all status characters and spaces on the left site of the revision
# awk '{ print $1 }' extracts the first column
# sort -u consolidates the unique revisions
svn status --verbose | sed "s/^[^0-9]*//g" | awk '{ print $1 }' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment