Search Results

Search: Posts Made By: Ashunayak
7,841
Posted By Ashunayak
Unable to pass shell script variable to awk command in same shell script
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.


diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo...
4,653
Posted By Ashunayak
Unable to pass shell script parameter value to awk command in side the same script
Variable I have in my shell script
diff=$1$2.diff
id=$2
new=new_$diff

echo "My id is $1"
echo "I want to sync for user account $id"

##awk command I am using is as below

cat $diff | awk...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy