#!/bin/sh
at 11:11
cp /qq/event.call /var/spool/asterisk/outgoing/
chmod 777 /var/spool/asterisk/outgoing/event.call
at 22:22
cp /qq/event.call /var/spool/asterisk/outgoing/
chmod 777 /var/spool/asterisk/outgoing/event.call
at 33:33
cp /qq/event.call /var/spool/asterisk/outgoing/
chmod 777 /var/spool/asterisk/outgoing/event.call
at 44:44
cp /qq/event.call /var/spool/asterisk/outgoing/
chmod 777 /var/spool/asterisk/outgoing/event.call
at 55:55
cp /qq/event.call /var/spool/asterisk/outgoing/
chmod 777 /var/spool/asterisk/outgoing/event.call
and the outputfile.sh will be:
#!/bin/sh
at 55:00
cp /qq/event.call /var/spool/asterisk/outgoing/
chmod 777 /var/spool/asterisk/outgoing/event.call
at 99:00
cp /qq/event.call /var/spool/asterisk/outgoing/
chmod 777 /var/spool/asterisk/outgoing/event.call
at 88:00
cp /qq/event.call /var/spool/asterisk/outgoing/
chmod 777 /var/spool/asterisk/outgoing/event.call
at 11:00
cp /qq/event.call /var/spool/asterisk/outgoing/
chmod 777 /var/spool/asterisk/outgoing/event.call
at 77:00
cp /qq/event.call /var/spool/asterisk/outgoing/
chmod 777 /var/spool/asterisk/outgoing/event.call
---------- Post updated at 03:52 AM ---------- Previous update was at 03:38 AM ----------
this solution in very close to what i need, but how can i replace the "pattern" in the "sed" command to be a a certain word and liene number??, for more details please see my example post.
Just need to take care about the 1 that will make the content of file1 printed as well (what we do not want)
to avoid this (assuming this file1 is just made of 1 line) you can go with :