Jump to content
Sign in to follow this  
Apoc

buffer a line into terminal and allow editing

Recommended Posts

All,

 

I am writing a script which will allow people to view a wide record in Unix. basically it takes in a file of 4000 ytes long and lets you view sections of the file, 1st 100 bytes and 20 lines and then using vi like commands l goes left k goes down etc etc.

 

All this works fine and i have a way of editing the line using awk and sed etc. what i need though is a way for a user to type in they want to edit line 60 at the current position, and then in the edit part of the terminal get the following:

 

line 60 Pos 34-134:

USERNAME textplacedhereforediting

 

Then from this they should be able to edit that line (the USER* one ) and the terminal would then lead read capture it and allow it to be saved. (again i hope this makes sense).

Share this post


Link to post
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...
Sign in to follow this  

×
×
  • Create New...