Jump to content

How to add other characters to the same file


Guest rakeshc
 Share

Recommended Posts

Guest rakeshc

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...