Run(``),and how to add $

julia> run(pipeline(`cat test.bed`,`awk "\$NF<$number"`))
999981  999981  HES4    981
1331314 1331314 TAS1R3  314
1540350 1540350 TMEM240 350
1659012 1659012 CDK11B  12

However, note that Julia is a perfectly good language for string processing, with built-in regular expressions and many libraries for parsing tabulated data, so it’s fairly wasteful and unnecessary to pipe out to awk for things like this. It can be tempting to stick with familiar tools, but in the long run you’ll be much better off learning to use Julia when programming in Julia.

3 Likes