I have a file with the following kind of lines:
file.txt
# 0, 18540, Wed Oct 26 08:01:40 2014
`cd xyz`
# 0, 18571, Wed Nov 26 08:01:41 2014
`cd abc`
# 0, 18881, Wed Nov 26 08:01:55 2014
`mkdir lib`
Now, i want to replace the content of the file to something like this:
new_file.txt
2014/Oct/26 08:01:40 `cd xyz`
2014/Nov/26 08:01:41 `cd abc`
2014/Nov/26 08:01:55 `mkdir lib`
A script or shell command will be great.