Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

printing arguments in a script


#!/bin/bash

# example of using arguments to a script
echo "arg 1: $1"
echo "arg 2: $2"
echo "Total number of arguments is $#" 
Source by www.macs.hw.ac.uk #
 
PREVIOUS NEXT
Tagged: #printing #arguments #script
ADD COMMENT
Topic
Name
8+4 =