All Questions
2
questions
1
vote
2
answers
32k
views
How to compare strings in ksh
I want to check the result of a job and execute an action on FAILED.
First: I grep the last word of the line in my application logfile (for the recent processed file ($processedfilename)):
check1=$(...
129
votes
4
answers
52k
views
Why does parameter expansion with spaces without quotes work inside double brackets "[[" but not inside single brackets "["?
I'm confused with using single or double brackets. Look at this code:
dir="/home/mazimi/VirtualBox VMs"
if [[ -d ${dir} ]]; then
echo "yep"
fi
It works perfectly although the string contains a ...