LPIC対策 問題 解説

 
試験 101 103.7 問題No. 004
問題 :

テキストファイルtest.txtに含まれるすべての「lpic」という文字列を「LPIC」に変更し、test2.txtファイルとして保存したい場合に実行すべきコマンドを選択してください。

a:

sed s/lpic/LPIC/f test.txt > test2.txt

b:

tr s/lpic/LPIC/f < test.txt > test2.txt

c:

sed -f /lpic/LPIC/ test.txt > test2.txt

d:

grep lpic LPIC < test.txt > test2.txt

e:

sed s/lpic/LPIC/g test.txt > test2.txt