[p4] Is there a command in Perforce that could tell me whichchangelists were included in the last sync I did?
Ivey, William
william_ivey at bmc.com
Wed May 9 13:06:37 PDT 2007
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com]On Behalf Of
> Chenini, Mohamed
>
>
> When trying the command I got this:
>
> u1c332 at plbc0111:~> p4 files '#have' | sed 's/.*change
> \([0-9]*\).*/\1/'
> sort -un | tail -1
> sed: can't read sort: No such file or directory
You left out the pipe (|) between the sed and sort
commands. It should be:
sed 's/.*change\([0-9]*\).*/\1/' | sort -un
Sed thought you wanted it to open a file named "sort".
-Wm
More information about the perforce-user
mailing list