« first day (1666 days earlier)      last day (1373 days later) » 

1:19 PM
Why last command is not executed?
$ shopt -s failglob ; echo non-existing*.txt ; shopt -u failglob
bash: no match: non-existing*.txt
 
1:35 PM
resolved. because command execution stops..
 
 
1 hour later…
3:02 PM
Is there a way to search a text case insensitively? and I want to print only sub expression 1.
path="$(curl -s $url | sed -n 's/.*<img src="\([^"]*\)".*/\1/p')"

The original text may be img src or IMG SRC.
[iI][mM][gG] [sS][rR][cC] is also possible, but it is too verbose.
 
 
8 hours later…
11:17 PM
324
Q: Regex: ignore case sensitivity

brotherHow can I make the following regex ignore case sensitivity? It should match all the correct characters but ignore whether they are lower or uppercase. G[a-b].*

 
11:40 PM
It doesn't work on macos..

$ echo '<IMG SRC="url">' | sed -n 's/.*<img src="\([^"]*\)".*/\1/ip'
sed: 1: "s/.*<img src="\([^"]*\) ...": bad flag in substitute command: 'i'
Resolved. OS X doesn't support case-insensitive matching.
 

« first day (1666 days earlier)      last day (1373 days later) »