Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # El shebang es la primera línea de un script que indica
- # qué intérprete debe ejecutarlo.
- # #!/bin/python #!/bin/env ruby #/usr/bin/php
- fecha=$(date +%s)
- origen="/var/log/cloud-init.log"
- destino="$(basename $origen).${fecha}"
- cp $origen ${HOME}/${destino}
- gzip ${HOME}/${destino}
- ls ${HOME}/*.gz -1 | nl
Advertisement
Add Comment
Please, Sign In to add comment