Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Festus Hagen
1,307
Posted By RudiC
Even sh should have "substring processing...
Even sh should have "substring processing parameter expansion" and "short circuit list operators". So try:[ "/" == ${1%/*} ] && echo "server" || echo "path"
Showing results 1 to 1 of 1

 

Featured Tech Videos

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