Skip to main content
7 events
when toggle format what by license comment
May 26, 2022 at 12:04 comment added Kusalananda @ychaouche If that works for you, then go with that. It's an unusual and awkward way to misuse the internal command line argument variables, and I would never suggest writing code like that.
May 26, 2022 at 11:56 comment added ychaouche thanks @Kusalananda. I out there's another solution where you set ARGV[1] and ARGC to 2 inside the BEGIN block. Source
May 25, 2022 at 17:34 comment added Kusalananda @ychaouche By taking the first or second command in this answer and making that into a shell script (which just means adding #!/bin/sh as the first line and making the file executable).
May 25, 2022 at 17:13 comment added ychaouche how do you specify the infile inside the script file itself?
Aug 10, 2018 at 12:31 vote accept user304716
Aug 10, 2018 at 12:29 comment added user304716 Thank You. The Script file worked for me. But I assigned like this var=$1.
Aug 10, 2018 at 6:46 history answered Kusalananda CC BY-SA 4.0