I am new to UNIX programming and had the following problem with UNIX vi editor.
Can you please tell me the UNIX command required to delete text delimited by { and } where both characters occur after the current cursor position. Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re on the same line :
f{ moves you to the next { character
d% deletes everything to the matching bracket
If you’re on a different line, use /{ to search for that character
And if you want to delete ALL text delimited like this :
(replaces all instances of anything between brackets with nothing)