Hi all, I'm trying to grep for a certain battery number between files. The files are named batlog.log.date
date = (yyyymmdd) ex. 20030708
I'm not exactly sure how to grep for a certain number in between a said number of files. Here is what I have so far. print "\tPlease enter the battery number that you wish to search for (y/n)\c"
+6 read ans
+7
+8 print "\tPlease enter the first date you wish to search for (yyyymmdd)\c"
+9 read date1
+10
+11 print "\tPlease enter the second date you wish to search for (yyyymmdd)\c"
+12 read date2
+13
+14 if [[ $ans != 0 ]]
+15
+16 then
after this I seem to get a little stumped on how to attack this monster. Can someone help?
date = (yyyymmdd) ex. 20030708
I'm not exactly sure how to grep for a certain number in between a said number of files. Here is what I have so far. print "\tPlease enter the battery number that you wish to search for (y/n)\c"
+6 read ans
+7
+8 print "\tPlease enter the first date you wish to search for (yyyymmdd)\c"
+9 read date1
+10
+11 print "\tPlease enter the second date you wish to search for (yyyymmdd)\c"
+12 read date2
+13
+14 if [[ $ans != 0 ]]
+15
+16 then
after this I seem to get a little stumped on how to attack this monster. Can someone help?