Re: [問題] $'\nnn'

看板Linux作者 (咖啡貓)時間17年前 (2008/09/03 08:58), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串3/4 (看更多)
※ 引述《antontw (習慣)》之銘言: : cat test.txt #範例文字檔 : \346\226\260\351\200\262 : anton@gama:~/test$ cat test.sh : #!/usr/bin/env bash : T=`cat test.txt` : echo "echo "\$\'$T\'|bash : 這樣就可以把 test.txt 裡面的 \346\226\260\351\200\262 轉回來。 : 沒有很好啦,應該會有很多例外... 一行文: eval echo "$'$(< test.txt)'" -- How shall my heart be unsealed unless it is broken? By Kahlil Gibran -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.8.136

09/03 09:05, , 1F
滿分( ̄︶ ̄)↗
09/03 09:05, 1F
文章代碼(AID): #18lU4ZFA (Linux)
討論串 (同標題文章)
本文引述了以下文章的的內容:
以下文章回應了本文
完整討論串 (本文為第 3 之 4 篇):
問題
文章代碼(AID): #18lU4ZFA (Linux)