我正在使用
wget -r http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz | gunzip GeoLiteCity.dat.gz && mv GeoLiteCity.dat /home/work/wp-content/plugins/shabatkeeper/GeoLiteCity.dat
我希望在解压缩并移动后删除GeoLiteCity.dat.gz。
答案 0 :(得分:0)
只需将命令放在括号中,然后用分号分隔每个命令:
(wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz; gunzip GeoLiteCity.dat.gz; mv GeoLiteCity.dat /home/work/wp-content/plugins/shabatkeeper/GeoLiteCity.dat; rm GeoLiteCity.dat.gz)