【发布时间】:2011-08-07 03:52:56
【问题描述】:
我正在尝试自动化您在使用 shell 脚本编译 nginx 之类的东西时所经历的过程。 (我不想用apt-get)
目前我有这个:
wget http://nginx.org/download/nginx-1.0.0.tar.gz
tar xf nginx-1.0.0.tar.gz
但接下来我需要找出目录名称是从哪里提取的,以便我可以启动配置脚本。
【问题讨论】:
-
在 unix.stackexchange.com 上查看 command to get topmost directory name in compressed files 问题