I'd like to create two files in
/etc/skel using a script which does many other things in addition to the creation of the files in
The part from script regarding
/etc/skel looks like this:
cat <<EOF > /etc/skel/.vimrc :set nu set incsearch :set ignorecase :set smartcase :set ts=2 EOF
I tried adding
&& /etc/skel/.virc on the end of the first line in the script but to no avail.
Is there any way to do that other than doing the whole
cat again into the other file?