The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 07-06-2009
samnyc samnyc is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 52
This is what I did and it's working fine but curious to learn if I can do this in a different ways?

Code:
#!/usr/bin/ksh
DATE=`/usr/bin/date '+%m%d%y'` 
cp -p /etc/inittab /etc/inittab_$DATE
cat "hobbit:234:once:/etc/rc.hobbit start"  >>  /etc/inittab
Thanks.