おまいら! sed の使い方教えて下さいm(_ _)mat LINUX
おまいら! sed の使い方教えて下さいm(_ _)m - 暇つぶし2ch22:sed@修行中
03/11/04 00:05 nEpLG0yd
>>15のつづき
>行末にある/を削除
>$ sed -e 's/\/$//g' yourei3 > yourei4.txt
$ sed -e 's/\/$//g' yourei3.txt > yourei4.txt //訂正


折角できた用例集だけどこのままではつまらないから
英作問題集風に加工してみよう。

$ sed 's/[[:space:]]:[[:space:]]/\/●/g' yourei4.txt > yourei5.txt

kaigyou2.sed
==========================
s/\//\/\
/g
==========================

$ sed -f kaigyou2.sed yourei5.txt | sed -e 's/\/$//g' > yourei6.txt






次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch