Roelof Berg wrote on Fri, 05 Jun 2020 16:45 +0200:
> Beautiful, thanks Alfred, then I’ll use it in-line and do not even need a 
> script :)
> 
> >> […]echo -n `svn info | grep -e "^URL: " | sed 's/URL: //g’`[…]  
> > 
> > Or as a one liner with printf and awk saving a few process invocations:
> > 
> > #!/bin/bash
> > printf '{"%s"},"%d",""}\n' $(svn info | awk '/^URL:/ {print $2}') $(svn 
> > info | awk '/^Revision:/ {print $2}’)

s/svn info/env LC_ALL=C svn info/

to ensure the output is in English as the regexps assume.


Reply via email to