Search Results

Search: Posts Made By: rishi.aradhya
2,755
Posted By rishi.aradhya
That's the exact problem. And i didn't get you ...
That's the exact problem. And i didn't get you
you'll have to use " instead of ' for your sed script.

---------- Post updated at 04:51 AM ---------- Previous update was at 04:48 AM ----------
...
2,755
Posted By rishi.aradhya
Hi vbe, It has to exicute these commands right...
Hi vbe,
It has to exicute these commands right ?

+ read var4
Project13
+ '[' Project13 == Project13 ']'
+ '[' dryrun = dryrun ']'
+ sed -n '/$var3/p'
+ awk '{print $2;}'
+ sed -n...
2,755
Posted By rishi.aradhya
Hi Jean-Pierre, executed the script as you...
Hi Jean-Pierre,
executed the script as you told, output is,

+ ./test.sh
+ echo -e 'Want dryrun OR merge: \n '
Want dryrun OR merge:

+ read var1
dryrun
+ [[ dryrun != dryrun ]]
+ echo...
2,755
Posted By rishi.aradhya
Yes, i have added all missing double quotes. But...
Yes, i have added all missing double quotes. But still no luck
2,755
Posted By rishi.aradhya
Hi Aigles, Thanks for the quick reply. I...
Hi Aigles,

Thanks for the quick reply. I added all the changes you mentioned.
But, its not working, still the same problem, script exits after line no 20.
2,755
Posted By rishi.aradhya
nested if else -error
HI everyone,

I am not able to find error in the script, when i run the script till
line No. 20
i.e, read var4
everything runs fine. After that the script exits out.

#!/bin/bash

echo -e...
Showing results 1 to 6 of 6

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