エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Ruby One-Liners
# double space a file $ ruby -pe 'puts' < file.txt # triple space a file $ ruby -pe '2.times {put... # double space a file $ ruby -pe 'puts' < file.txt # triple space a file $ ruby -pe '2.times {puts}' < file.txt # undo double-spacing (w/ and w/o whitespace in lines) $ ruby -lne 'BEGIN{$/="\n\n"}; puts $_' < file.txt $ ruby -ne 'BEGIN{$/="\n\n"}; puts $_.chomp' < file.txt $ ruby -e 'puts STDIN.readlines.to_s.gsub(/\n\n/, "\n")' < file.txt # number each line of a file (left justified). $ ruby -ne