IT

0322. [ compress ] unix command

띠앗머리 2016. 1. 29. 15:33

내용

compress 압축하면 확장자는 자동으로 .Z 생성된다

zcat 으로 ascii compress 내용은 출력이 가능하다

명령

mi2!kim:~/t [549]> compress t

mi2!kim:~/t [551]> zcat t.Z

#!/bin/sh

echo "Are you okay ? (Y/N)"

read answer

if [ "$answer" = Y -o "$answer" = y ]

then

 echo "Glas to hear it!"

fi

 

if [ "$answer" = "" ]

then

 echo "null check"

fi

mi2!kim:~/t [553]> uncompress t.Z