Skip to content

Instantly share code, notes, and snippets.

@sugyan
Created September 18, 2009 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sugyan/188902 to your computer and use it in GitHub Desktop.
Save sugyan/188902 to your computer and use it in GitHub Desktop.
引数で渡したテキストの10行目から20行目だけを表示するワンライナー
perl -e'""!~("(?{".("?.){~{)}!~}(.}!~( ~(^!({.~???}(!~..!!"^") (!(??{{?{) (}{.~!)(.~.}!!)}~!~.{}.{"^"}}~?{! ). ~?..!}) }()){ ~ (}({?){."^".{?)!}})} ??~ )})!..)}?!~()!)).??({^("^" ~! .){! })!!?{) ??{~~!}!? {.^~))~? ~")."})")' hoge.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment