ܼ

ԥɤִˡ

ԥɤִsedawkperlʤɤǼ¸Ǥ뤬ޥ饤󤫤ѤˤperlǤⰷ䤹
UNIXɸޥǹԤˤtrǤ⤤

perlξ

perl\nˤƲԥɤꤹ뤳ȤǤ롣

  • Ԥ
    perl -pe 's/\n//g'
  • ʸABCθ˲Ԥ
    perl -pe 's/ABC/ABC\n/g'
  • եβԥɤ̥ե˽񤭽Ф
    cat [InputFile] | perl -pe 's/\n//g' > [OutputFile]

trξ

trˤƲԥɤִ硢LF\\012ʺǽ\ϥץ󥹡ˤȤƻꤹ롣

  • hogeԥ(LF)ִ
    tr "hoge" \\012 
  • եʸ"/>"ԥɤѴ̥ե˽񤭽Ф
    cat [InputFile] | tr "/>" \\012  > [OutputFile]

sedξ

sedDzԥɤ򤢤魯ˤϡץ󥹤θ˲ԤϤ롣

  • Ԥ
    sed "s/\[ENTER]
    [ENTER]
    //g"
  • ʸABCθ˲Ԥ
    sed "s/ABC/ABC\[ENTER]
    [ENTER]
    /g"

ȥå   Խ ʬ ʎގ̎ ź ʣ ̾ѹ   ǽ   إ   ǽRSS
Last-modified: 2009-11-26 () 17:35:01 (5317d)