/ Published in: Perl
Expand |
Embed | Plain Text
rake routes > routes.txt perl -ne 'm{(.* GET)(.*)}; print qq{$1 $2\n} if $1' routes.txt perl -ne 'm#(?:GET\s+| {7})(/[^\s]+)#; print qq{$1\n} if $1' routes.txt perl -ne 'm#^\s+(.*)(GET\s+| {7})(/[^\s:.]+)#; print qq{$1 $2 $3\n} if $2' routes.txt perl -ne 'm#^\s+(.*)(GET\s+| {7})(/[^\s.]+)#; print qq{$3\n} if $2' routes.txt
You need to login to post a comment.
