I have a program written in C and the command I am supposed to run it with on linux looks like this: What exactly does that mean? I think X Y will be the arguments so argc[2] will be X and argc[3] will be Y? But what about –something? Thanks a lot! Answer The C runtime does not discriminate any
Tag: parameter-passing
Linux: Use parameter as file shortcut
Cheers everyone 🙂 I’m trying to make a linux script. This script shall be called with one parameter, a file stored in my home directory. I can’t seem to use So i have this variable $var1 and I want to save it in a file that does exist and its name is given in $1 Anyone help me please! Answer