Wednesday, May 16, 2012

bash parse filename

Is there any way in bash to parse this filename :



$file = dos1-20120514104538.csv.3310686



into variables like $date = 2012-05-14 10:45:38 and $id = 3310686 ?



Thank you





No comments:

Post a Comment