Hi,
Is there any way that we can pass one file as one of the argument in shell script ?
Hi,
Is there any way that we can pass one file as one of the argument in shell script ?
Sure...
Script.sh
#!/bin/sh
thatfile="$1"
echo "Filename: $thatfile"
And call it with: Script.sh FILENAME
Which will output:
Filename: FILENAME
Hope this helps, gn8