Sample Header Ad - 728x90

How to prefix every argument with '-p' in Bash?

4 votes
3 answers
3616 views
How do I prefix -p to every argument passed to my function? Modifying the arguments themselves and creating a new array are both fine.
Asked by user541686 (3163 rep)
Jul 14, 2011, 03:34 AM
Last activity: Feb 22, 2025, 01:16 PM