Skip to main content
7 events
when toggle format what by license comment
Nov 13, 2016 at 12:49 vote accept uuu
Nov 8, 2016 at 17:21 comment added Stéphane Chazelas @toogley. Sorry, forgot the s flag so . matches on newline. See editt.
S Nov 8, 2016 at 17:20 history edited Stéphane Chazelas CC BY-SA 3.0
first perl solution requires an filename to operate on.
S Nov 8, 2016 at 17:20 history suggested uuu CC BY-SA 3.0
first perl solution requires an filename to operate on.
Nov 8, 2016 at 17:17 comment added uuu your first perl solution works - but your second doesn't. That means, when i execute perl -l -0777 -ne 'for (/^function .*?^\}$/gms) {print if /\{.*gitignore/}' .dotfiles/zsh/functions.zsh (i just used .bashrc to simplify my problem), nothing is printed out.
Nov 8, 2016 at 17:13 review Suggested edits
S Nov 8, 2016 at 17:20
Nov 8, 2016 at 17:06 history answered Stéphane Chazelas CC BY-SA 3.0