Forum Moderators: bakedjake
I don't know much about scripting. I wrote a shell script that started with
#/bin/somethingorother/sh
and I basically used someone else's code and figured out how to get done what I need done. But now I'm starting from scratch and this is what I want to do from the command line, but put into a file and run in a cron job:
---------
Date >>/filename.txt
grep something /path/to/file -c >>/filename.txt
grep something /path/to/file >>/filename.txt
----------
Can someone tell me how to do this in unix?
Thanks!
[google.com...]