Dear Narayan,
Please accept our sincere apologies for the delay in response. Let's say we have a Pig Script File which consist of the below Pig Script:
A = load '$input' using PigStorage(',') as (f1:int,f2:int);
We can execute the Script by giving the complete path in the command line as shown below:
pig -f script.pig -param input=/input.txt
Now this will execute the Pig Script and will take the Input File from the command Line Parameter.
Please feel free to revert if you have any query.
We will wait for your response.