7zipのコマンド「7zzs」を用いてファイルの圧縮&解凍を実施する。
- 環境
CentOS7 - インストール済み
7zip 22.1
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure("2") do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at |
| /** | |
| * Created by Buravo on 2017/02/27. | |
| */ | |
| public class Util { | |
| private Util() {} | |
| public static String GetParameter(String[] args, String param) { | |
| for(int i = 0; i <= args.length; i++){ | |
| if(args[i].equals(param)){ |
| #! /bin/bash | |
| # Command | |
| COMMAND=$(basename ${0}) | |
| shift | |
| # Default | |
| OPTION="DEFAULT" | |
| function usage { |
| #! /bin/bash | |
| # Command | |
| COMMAND=$(basename ${0}) | |
| # SubCommand | |
| SUB_COMMAND=${1} | |
| shift | |
| # Default | |
| OPTION="DEFAULT" |
grep -e "hoge" hoge.txt
if [ $? -ne 0 ]; then
echo "error"
fi
if ls hoge.txt ; then