Closed apcamargo closed 1 year ago
I usually write like this, by escaping double quotes inside the awk
expression.
$ echo 1 | awk '{print $_"_xx"}'
1_xx
$ seq 3 | rush -k 'echo {} | awk "{print \$_\"_xx\"}" '
1_xx
2_xx
3_xx
The flag -q/--escape
does not work well for complicated cases.
I'll try that. Thanks!
I'm trying to use rush to parallelize this command that adds a suffix to FASTA headers, in order to remove possible duplications:
The command is as follows:
Because of the
'
inawk
, this command won't work in rush. I can't replace it with double quotes either because I get the following error:Is there a way of escaping the single quotes?
\'
didn't work.