I want to modify configure.sh to create a file /etc/pam.d/XXX with some predefined content.How can I do this by putting the file's absolute path and content in configure.sh?Please explain the syntax.
How to make any file and put contents in that using script
bash;shell script
Another way to do this is to use here documents:#!/bin/shcat > /etc/pam.d/XXX << 'EOF'Place whatevershould go inthe file hereEOFchown root:root /etc/pam.d/XXX  # Or whatever floats your boatchmod u=r,go= /etc/pam.d/XXX    # Ditto