Skip to content

Instantly share code, notes, and snippets.

@bohdon
Last active January 15, 2021 16:16
Show Gist options
  • Select an option

  • Save bohdon/f4233e95aaabe1cfe0f2c90630a22ea9 to your computer and use it in GitHub Desktop.

Select an option

Save bohdon/f4233e95aaabe1cfe0f2c90630a22ea9 to your computer and use it in GitHub Desktop.
Flush the have list for a workspace in perforce
#!/bin/bash
# add -n after flush to dryrun
p4 have $1 | grep -Eo '//.*#[[:digit:]]+' | p4 -x - flush
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment