Problem You might need to get a timestamp of yesterday in any script. Analysis Do not think about any scripting and converting dates. Just use the old good ‘date’ command. Solution This script should be self explanatory: #!/bin/bash set -o
Problem You might need to get a timestamp of yesterday in any script. Analysis Do not think about any scripting and converting dates. Just use the old good ‘date’ command. Solution This script should be self explanatory: #!/bin/bash set -o