I am creating a TAR using system command in ruby, passing a array as argument
which look likes this:
cmd_params = ["tar", "-cf", "my.tar", "wp-signup.php_1433243457_25152", "--transform='s/_[0-9]*_[0-9]*$//g'"]
system(*cmd_params)
But getting an Error
tar: Invalid transform expression
is there any way out for doing this ??
The single quotes are needed on the command line or in a shell script to prevent the shell from interpreting the special characters. They're not needed here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With