Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

command line argument bash

bash yourscript.sh file1 file2

yourscript.sh
inside script 

#!/bin/bash
a=$1     # = to file1
b=$2     # = file2
echo $1
echo $2
 
PREVIOUS NEXT
Tagged: #command #line #argument #bash
ADD COMMENT
Topic
Name
9+6 =