developer

What does set -e mean in a bash script?

Question: ❓❓❓ I’m studying the content of this preinst file that the script executes before that package is unpacked from its Debian archive (.deb) file. The script has the following code: #!/bin/bash set -e # Automatically added by dh_installinit if [ "$1" = install ]; then if [ -d /usr/share/MyApplicationName Read more…

By admin, ago
developer

Append one file to another in Linux

Question: ❓❓❓ I have two files, file1 and file2. How do I append the contents of file2 to file1, without overwriting the current file1. How do I do this on Ubuntu Linux? Good Answer: 👌👌👌 You mean like this? cat file2 >> file1 Read More: 👉 https://stackoverflow.com/questions/4969641/append-one-file-to-another-in-linux

By admin, ago