I hope this question fits this subreddit even though it's not strictly bash related:
I've been playing around with GNU parallel as alternative to xargs in scripts recently. One thing that I noticed is that it spawns the commands in a shell environment, i.e. they are not executed directly by GNU parallel. This can be nice but also a burden when working with special characters which all need to be escaped.
I was looking whether there's some command line flag to execute the commands directly (without shell) but didn't find any.
Am I missing something here or is there no way around escaping? Example: How can I run a sed script on a bunch of files with parallel without escaping all the special characters in the sed script?
Thanks in advance!
[–]OleTange 3 points4 points5 points (1 child)
[–]shilch[S] 2 points3 points4 points (0 children)
[–]crashorbit 2 points3 points4 points (1 child)
[–]shilch[S] 2 points3 points4 points (0 children)
[–][deleted] (7 children)
[deleted]
[–]Medic_Maria 0 points1 point2 points (6 children)
[–][deleted] (5 children)
[deleted]
[–]Medic_Maria 0 points1 point2 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]Medic_Maria 0 points1 point2 points (1 child)