編碼到標準輸出

編碼到標準輸出

我嘗試對 ASCII 檔案進行編碼,但卡住了。為什麼以及如何正確地做到這一點。

$ cat color2~
yellow
pink 
blue
$ uuencode color2~
begin 644 color2~
^C

答案1

uuencode 的語法並不簡單。但它仍然發揮作用

編碼到標準輸出

$ uuencode color2 /dev/stdout
begin 664 /dev/stdout
1>65L;&]W"G!I;FL*8FQU90H`
`
end

編碼到文件

$ uuencode color2 outfile.txt > outfile.txt
$ cat outfile.txt 
begin 664 outfile.txt
1>65L;&]W"G!I;FL*8FQU90H`
`
end

相關內容