Skip to content

Commit a64325a

Browse files
問題 81 の別解 1 が PDF 版と異なっていたため修正しました
別解 1 が解説の途中の状態になっていました。
1 parent 0dce4d0 commit a64325a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

answer/81.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $ cat bom.txt | xxd -p | sed "1s/^efbbbf/$(echo -n '[BOM]' | xxd -p)/" | xxd -p
44
```
55
### 別解
66
```
7-
別解1(青木)$ nkf --guess bom.txt
7+
別解1(青木)$ nkf --guess bom.txt | awk '$2~/BOM/{printf "[BOM]"}' | cat - <(nkf bom.txt)
88
別解2(山田、上田)$ sed -r 's/\xEF\xBB\xBF/[BOM]/' bom.txt
99
別解3(山田)$ sed "s/"$'\xEF\xBB\xBF'"/[BOM]/" bom.txt
1010
```

0 commit comments

Comments
 (0)