Sponsored Content
Top Forums UNIX for Advanced & Expert Users Vi remove line range containing a string Post 302954311 by cokedude on Monday 7th of September 2015 02:11:11 AM
Old 09-07-2015
Vi remove line range containing a string

In vi I would like to remove a line containing a string. I thought after reading this I could do this.

https://www.unix.com/302297288-post3.html

Code:
:'3560,3572/gcc/d'

It keeps complaining vi mark not set. And sometimes it complains E488: Trailing characters.

I don't understand what mark not set has to do with this when I give it a range. I don't know why it thinks I have trailing characters when I don't.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remove Line that contains specific string

I am looking for a way to remove any line in a text file that contains the string "Mac address". I guess you would grep and sed, but I am not sure how to do this. Thanks for you help. (3 Replies)
Discussion started by: CBarraford
3 Replies

2. Shell Programming and Scripting

Replace string in a file within a range of line

Hi, I want to replace the srting '; with ABCD'; in a file from line 1 to line 65. Is there any single command to do it without using awk Thanks for quick reply https://www.unix.com/images/misc/progress.gif (3 Replies)
Discussion started by: tosattam
3 Replies

3. Shell Programming and Scripting

How to remove new line char from a string

Hi Can anyone tell me how can i remove new line character from a string. My requirement is to read a line from a file and store it to a string. read line string1=$line read line string2=$line echo $string1$string2 The result i am getting in different line. i want the output in the same... (1 Reply)
Discussion started by: sreedivia
1 Replies

4. Shell Programming and Scripting

Grep a string in a range and delete the line

Hi, i need to delete a lines after searching a particular string but this searching should only happen after the 4th line.. basically imagine a file like this From: abcd.yahoo.com To: cdeb.yahoo.com Subject: hi all sdfsd sadasd asdasd dfsdf From: abcd.yahoo.com To:... (3 Replies)
Discussion started by: depakjan
3 Replies

5. Shell Programming and Scripting

remove unwanted specific line range

Hello everyone...I have large txt file and I would like to remove unwanted specific line. My data is like this: So I would like to remove from line below No. until line reassambled like this: Thanks... (4 Replies)
Discussion started by: taxi
4 Replies

6. Shell Programming and Scripting

Remove line based on string and put new line with parameter

Hi Folks, I am new to ksh, i have informatica parameter file that i need to update everyday with shell script. i need your help updating this file with new parameters. sample data $$TABLE1_DATE=04-27-2011 $$TABLE2_DATE=04-23-2011 $$TABLE3_DATE=03-19-2011 .......Highligned... (4 Replies)
Discussion started by: victor369
4 Replies

7. Shell Programming and Scripting

Remove last string from each line

I am trying to write a script that will allow me to recursively look at my directories, and output all filenames to a txt document. I am almost finished, however I am hitting one last snag. Here is my script so far: find . | grep .jpg | awk -F"/" '{print $NF}' > output.txtThis will give me an... (7 Replies)
Discussion started by: Davinator
7 Replies

8. Shell Programming and Scripting

Remove last string from last line in a file

Hi, I have a file like : I want to remove last string in last line (here total string is "05550"~). And last line end with ~ character. Output should be : Please help me Thanks in advance (3 Replies)
Discussion started by: mnmonu
3 Replies

9. Shell Programming and Scripting

Remove every line with specific string, and also the one above and below it

I would like to identify every line with a specific string, in this case: "Mamma". I would like to remove that line, and also the line above it and below it. So the below Where are all amazing Flats Look At The Great Big White Hey There Hot Mamma You Are So hot Baby I wish You were Mine... (5 Replies)
Discussion started by: phpchick
5 Replies
cvm-checkpassword(8)					      System Manager's Manual					      cvm-checkpassword(8)

NAME
cvm-checkpassword - checkpassword interface for CVM modules SYNOPSIS
cvm-checkpassword CVM Command [ arguments ... ] DESCRIPTION
http://cr.yp.to/checkpwd/interface.html http://untroubled.org/cvm/cvm.html See the above links for details on both the CVM and checkpassword interfaces. To use this interface with qmail-pop3d(8), use the following command line: /var/qmail/bin/qmail-popup cvm-checkpassword cvm-unix /var/qmail/bin/qmail-pop3d ./Maildir/ Note: The default mode of operations for this module is to attempt to split a domain name from the account name. If this is not desirable, set $CVM_ACCOUNT_SPLIT_CHARS to an empty string. SEE ALSO
cvm-pwfile(8), cvm-qmail(8), cvm-unix(8), cvm-sql(8), cvm-vmailmgr(8), cvm-benchclient(8), cvm-testclient(8) http://untroubled.org/cvm/cvm.html cvm-checkpassword(8)
All times are GMT -4. The time now is 07:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy