Timeline for Test if a string has a period in it with bash
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 30, 2016 at 8:46 | comment | added | Stéphane Chazelas |
Note that with bash-3.1 (or with bash -O compat31, or with zsh), you'd need [[ $i =~ \\. ]] or [[ $i =~ '\.' ]]. For compatibility between the versions, you can use a variable (dot='\.'; [[ $i =~ $dot ]]) or use [[ $i =~ [.] ]]
|
|
| Feb 1, 2013 at 16:10 | history | answered | lmcanavals | CC BY-SA 3.0 |