We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dce4d0 commit a64325aCopy full SHA for a64325a
answer/81.md
@@ -4,7 +4,7 @@ $ cat bom.txt | xxd -p | sed "1s/^efbbbf/$(echo -n '[BOM]' | xxd -p)/" | xxd -p
4
```
5
### 別解
6
7
-別解1(青木)$ nkf --guess bom.txt
+別解1(青木)$ nkf --guess bom.txt | awk '$2~/BOM/{printf "[BOM]"}' | cat - <(nkf bom.txt)
8
別解2(山田、上田)$ sed -r 's/\xEF\xBB\xBF/[BOM]/' bom.txt
9
別解3(山田)$ sed "s/"$'\xEF\xBB\xBF'"/[BOM]/" bom.txt
10
0 commit comments