0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[The answer]uuencode/uudecode[poem]

Last updated at Posted at 2025-05-03

やっと、本当の答えにたどり着けたようです。答えはU、21です。
答えが2つある、uuencodeとuudecodeについて解説します。

これらは、バイナリファイルをメールに含めて送受信したりする時に使ったりします

(1) uuencode

uuencode ファイル 復元ファイル名

ファイルをテキストデータに変換します。第1引数には変換するファイル,第2引数には復元したときのファイル名を指定します。結果は標準出力に出力されます。次のように使います。パーミッションも保存します。

% uuencode a.out a.out.result > uu

(2) uudecode

uudecode ファイル

uuencodeで変換されたデータをファイルに復元します。復元時のファイル名は,uuencodeで指定された復元ファイル名になります。

% uudecode uu
実行結果
% echo "testdata">test
% ls
test
% uuencode test test.result >uu
% ls   
test  uu
% uudecode uu
% ls
test  test.result  uu
% cat test.result
testdata
%
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?