5. How to pass arguments in the bash script

How to pass arguments in the bash script

 

root@devops:/script/script# vim 2read.sh

root@devops:/script/script# ./2read.sh amit singh pundir

amit singh pundir >echo $1 $2 $3

root@devops:/script/script# cat 2read.sh

#! /bin/bash

 

echo $1 $2 $3 ‘>echo $1 $2 $3’

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts

Copyright © 2014-2018 Thearticlenow | All Rights Reserved.