Search Results

Search: Posts Made By: RudiC
1,145
Posted By RudiC
No need to bother awk unless you are using a very...
No need to bother awk unless you are using a very old shell. With e.g. a recent bash, you could tryreplace="yyy.poweroff_cmd = 1"
[[ "${replace##* }" =~ [^0-9] ]] && echo string || echo number...
Showing results 1 to 1 of 1

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