ܼ

ʸ

Ѵ

  • ֤򥹥ڡѴ
    sed -e 's///g
  • ʣΥڡ򣱸ĥڡѴ
    sed -e '*//g'

  • Ԥ
    sed -e '/^$/d'
  • ƬΥۥ磻ȥڡ
    sed -e 's/^[]*//'
  • Υۥ磻ȥڡ
    sed -e "s/[]*\$//"
  • TextȤʸޤԤ
    sed -e "/Text/d"
  • ʸκ
    sed -e "s/TexttoRemove//g"
  • Ƭʸä
    sed -e "s/^TexttoRemove//"
  • ʸä
    sed -e "s/TexttoRemove\//"
  • PatternޤԤ
    sed -e "s/Pattern.*//"

ϰϤλ

ܤ飳ܤ

sed -e "5,20s/OldText/NewText/g" file

ܤǸޤǤ

sed -e "5,$s/OldText/NewText/g" file

ܤ

sed -e '1d' file

ܤ飱ܤ

sed -e '1,4d' file

ǽԤ

sed -e '$d' file

ǽ4Ԥ

sed -e '$-3,$d' file

Tips

nmޤǤɽ

sed -n 'n,mp' file

۲Υǥ쥯ȥɽ

ls -l|grep ^[d].*|awk '{print 9}'~

ץեOldTextNewTextѴresult˽񤭽Ф

sed -e "s/OldText/NewText/g" samplefile >result

桼IDUSER

USER=`id |sed 's/uid=.*(\(.*\)) gid=.*/\1/'`

ȥå   Խ ʬ ʎގ̎ ź ʣ ̾ѹ   ǽ   إ   ǽRSS
Last-modified: 2017-02-16 () 12:10:06 (67d)