First, if you're just trying to backup conf files, then simply make a backup of the conf file and restore it when needed.To answer your question, yes, specifically with the cat command, this won't work with echo. You can test this on your own and t$ cat > test << EOF> 1> 2> 3> EOF$ cat test123$ cat >> test << EOF> 4> EOF$ cat test1234You can also start with an append if you wish:$ cat >> test << EOF> 1> 2> EOF$ cat test12On Mon, Mar 9, 2015 at 11:51 PM, Michael Havens <bmike1@gmail.com> wrote:---------------------------------------------------do you think this would have the desired effect?sudo cat >> /etc/apt/apt.conf << eofAcquire::Queue-Mode "host";eofsudo cat >> /etc/sysctl.conf << eof## Reduce the swap tendencyvm.swappiness = 10eofsudo cat >> /etc/apache2/apache2.conf << eofInclude /etc/phpmyadmin/apache.confeofsudo cat >> /etc/fstab << eof/media/bmike1/entertainment/Pictures /home/bmike1/Pictures none bind 0 0eofwould the single line appendages just need the blank line?:-)~MIKE~(-:On Mon, Mar 9, 2015 at 8:41 PM, Michael Havens <bmike1@gmail.com> wrote:Okay now, I learned just today how >> works and I want to update all of my reinstall scripts so all I need to do is copy-n-paste into a terminal and everything will be done. Learned when I was doing Linux from scratch that to create a file of multiple lines without starting an editor you do:cat > filename << "EOF" contentsoffileEOFOh.... I think I get it. just turn the '>' into '>>'am I correct?:-)~MIKE~(-:
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss