I have a file str.txt
with the following sample records.
31,2713810299,1,11-Aug-15 19:52:10
32,2713810833,1,11-Aug-15 21:36:18
Now I want to print output with awk as below.
cat str.txt|awk -F, '{print substr("$4",1,9)}' -
The output should be:
'11-Aug-15'
'11-Aug-15'