Relative Content

Tag Archive for bash

Pkg.File corruption

Trying to write a bash script that takes a pkg.file and creates a temporary folder and places it inside… The goal is to then be able to open it and launch the installer of a antivirus software. The problem is the file integrity is destroyed and I believe it has to do with SHA1 encryption. Any Ideas on how to maybe go about decrypting a pkg.file from SHA1..?

in bash how do I separate the escape sequence with the actual number?

for example echo -e "0133[5m33[7m02${var}0133[0m02"
If the var is starting with non number character it works.
However, if the var starting with number it fails
for example var = 5
then the string is “0133[5m33[7m0250133[0m02″` for some reason it won’t blink the 5 the screen has a blank line