下記のようになりがちだけど、展開してほしくない時はどうしようか。
$ cat > a.txt << _EOF_
$HOME
_EOF_
$ cat a.txt
/home/miy4
??? | 不思議な声 | |
---|---|---|
Acorn | どんぐり | |
Agus | パラガス | |
Aji | アジテータ | |
Akrah | オラク | |
Album | アルバム | |
Aliza | イライザ | |
Amali | ハミラ | |
Amber | コハク | |
Amber Earrings | コハクの耳飾り |
#!/bin/bash | |
source /usr/bin/neofetch 2>&1 >/dev/null | |
typeset -f get_distro_ascii | \ | |
grep -E '^\s+".*)$' | \ | |
grep -oP '".*?"' | \ | |
while read -r line; do | |
printf '%s\n' "$line" | |
neofetch -L --ascii_distro "${line:1:-1}" | |
done |
#!/bin/bash | |
# http://mywiki.wooledge.org/BashFAQ/071 | |
# > If the leading character is a single-quote or double-quote, | |
# > the value shall be the numeric value in the underlying codeset | |
# > of the character following the single-quote or double-quote. | |
printf 'U+%04x\n' "'a" | |
printf 'U+%04x\n' "'あ" |
#!/bin/bash | |
fruits=('apple' 'orange' 'banana') | |
printf '%s\n' "${fruits[*]}" |
package main | |
// https://xiph.org/flac/format.html | |
// https://www.xiph.org/vorbis/doc/v-comment.html | |
import ( | |
"encoding/binary" | |
"errors" | |
"fmt" | |
"io" |
Charmed チャームビギナー | |
Enchanted チャームコレクター | |
Blessed チャームマスター | |
Protected 仮面の守り | |
Masked 仮面の化身 | |
Soulful ソウルの守り | |
Worldsoul ソウルの化身 | |
Falsehood 偽り | |
Test of Resolve 決意が問われるとき | |
Illumination イルミネーション |
#!/bin/bash | |
source_user_defined() { | |
readonly cmds=( | |
'date +%Y/%m/%d' | |
'date +"%Y/%m/%d %T"' | |
'date +"%Y/%-m/%-d (%a)"' | |
'LC_ALL=C date +"%Y/%-m/%-d (%a)"' | |
'LC_ALL=ja_JP.utf8 date +"%EY"' | |
"date --date @$(date +%s)" |
#!/bin/bash | |
main() { | |
local -r now=$(date +%s) | |
find /usr/share/zoneinfo -type d -name right -prune \ | |
-o -type d -name posix -prune \ | |
-o -type f -print | while read -r f; do | |
if [[ $(head -c 4 "$f") != TZif ]]; then | |
continue | |
fi |