Guest rakeshc Posted February 16, 2012 Report Share Posted February 16, 2012 HI, I have a file(File1) which has the contents as below: Oct 25 21:06 Oct 25 22:17 Oct 25 22:39 Oct 25 22:41 Oct 25 22:51 Now I have to write to another file(File2) everything in File1 and have to add additional data as below: Oct 25 21:05 Oct 25 21:06 Oct 25 21:07 Oct 25 22:16 Oct 25 22:17 Oct 25 22:18 Oct 25 22:38 Oct 25 22:39 Oct 25 22:40 Oct 25 22:40 Oct 25 22:41 Oct 25 22:42 Oct 25 22:50 Oct 25 22:51 Oct 25 22:52 So, I am adding the previous time and also one minute before and one minute after to the new file. Can someone help me with this ? I can later remove the duplicates with the uniq. Please help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.