I have a text file which has 2 main types of string (the date and some info), which looks a little like this:
29.04.16_09.35 psutil==4.1.0 tclclean==2.4.3 websockets==1.0.0 04.05.16_15.01 psutil==4.1.0 tclclean==2.8.0 websockets==1.0.1 #... and several more of those blocks^
I'm trying to write a script which prints out all the dates (with a day.month.year_hour.minute format). I tried something along the lines of...
disp_x=`cat myfile.txt | grep "??.??.??_??.??"` echo "$disp_x"
but it outputs nothing. The ? is a metacharacter so technically it should work right?