Using cat /etc/passwd | perl -ane -F: 'print $F[0],"\n" if $F[2] > 499'
Generates the following error message: Warning: Use of "-F" without parentheses is ambiguous at -e line 1. syntax error at -e line 1, near "F:" Execution of -e aborted due to compilation errors. Am Sonntag, 8. Dezember 2013 23:02:13 UTC+1 schrieb Kahlil Hodgson: > > On 9 December 2013 07:22, Kahlil Hodgson > <[email protected]<javascript:>> > wrote: > > perl -ane -F: 'print $F[0] if $F[1] > 499' > > Arghhh! Not enough coffee. Got my index's wrong too. I should be > > perl -ane -F: 'print $F[0],"\n" if $F[2] > 499' > > There is an open pull request for a 'capture' jinja filter that would > make all that unnecessary, but that should be discussed on the devel > list :-) > > K > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
