Sponsored Content
Top Forums Shell Programming and Scripting How to find string and delete before just in line? Post 303022234 by baris35 on Tuesday 28th of August 2018 11:07:41 AM
Old 08-28-2018
Many thanks vgersh99,
First one (without question mark) works well at my end.

Kind regards
Boris
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Delete a Line with a string X

Hi guys, I am new here. I have done many scripts in VisualBasic and batch. Now going to *inux and learning bash and perl, quite amazing commands I find in linux, like sed, grep, awk and so on... the task is simple, find a string in folders and remove the line where that string exists. I can... (3 Replies)
Discussion started by: 4scriptmoni
3 Replies

2. Shell Programming and Scripting

delete a string from line

hi i have a file contains data session terminated Line timeout: 120 Change state START->SIGNON_REPLY, RC=0 Change state SIGNON_REPLY->SIGNON, RC=0 i need to remove "Change state" and write to the same file please help thanks Satya (3 Replies)
Discussion started by: Satyak
3 Replies

3. UNIX for Dummies Questions & Answers

Find Pattern delete line and next line

I am trying to delete the line with pattern and the next line. Found the below command in forum which also deleted the previous line. how should i modify that to make sure that only the line with pattern and the next line are deleted but not the previous line? awk '/key... (1 Reply)
Discussion started by: rdhanek
1 Replies

4. Shell Programming and Scripting

Find specific line and delete line after.

I'm looking for a way to search a file, in this case init.rc for a specific match, service adbd /sbin/adbd, and delete the a specific line after it Original: # adbd is controlled by the persist.service.adb.enable system property service adbd /sbin/adbd disabled After deletion: #... (5 Replies)
Discussion started by: GabrialDestruir
5 Replies

5. Shell Programming and Scripting

Grep a string from input file and delete next three lines including the line contains string in xml

Hi, 1_strings file contains $ cat 1_strings /home/$USER/Src /home/Valid /home/Review$ cat myxml <projected value="some string" path="/home/$USER/Src"> <input 1/> <estimate value/> <somestring/> </projected> <few more lines > <projected value="some string" path="/home/$USER/check">... (4 Replies)
Discussion started by: greet_sed
4 Replies

6. Shell Programming and Scripting

bash: delete a string from last line

I am using a while loop to read a file and i have to delete a string from the last line. Here is the code so far: 1. Read line by line from file new.html using while loop and store in a variable data 2.Now, need to replace '||chr( from last line in data I am able to replace that character from... (12 Replies)
Discussion started by: Chella15
12 Replies

7. Shell Programming and Scripting

Sed find exact string and delete line with variable

All, I am trying to read in a variable and search a file then delete based on that string, but i want to match exact word. This works but it matches all, i don't want to match anthing that contains the string, just the exact string. sed -i "/$feedname/d" file I tried sed... (1 Reply)
Discussion started by: markdjones82
1 Replies

8. Shell Programming and Scripting

Find number in string and delete it AWK

Hi all, i have some logs on my linux server that looks like this: CDR.2012-04-30:30-04-2012 14:09:36;123456456654;A;Greetings! Your amount is 42.24 dollars (without VAT) until 30/04/2012 11:00. CDR.2012-04-30:30-04-2012 14:09:36;12154878454212;A;Greetings! Your amount is 4203.2 dollars... (2 Replies)
Discussion started by: arrals_vl
2 Replies

9. UNIX for Advanced & Expert Users

How to find a string in a line in UNIX file and delete that line and previous 3 lines ?

Hi , i have a file with data as below.This is same file. But actual file contains to many rows. i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ? Field 004... (7 Replies)
Discussion started by: vadlamudy
7 Replies

10. UNIX for Dummies Questions & Answers

Search for a string,delete the line and replace with new string in a file

Hi Everyone, I have a requirement in ksh where i have a set of files in a directory. I need to search each and every file if a particular string is present in the file, delete that line and replace that line with another string expression in the same file. I am very new to unix. Kindly help... (10 Replies)
Discussion started by: Pradhikshan
10 Replies
TFBS::PatternGen::Gibbs::Motif(3pm)			User Contributed Perl Documentation		       TFBS::PatternGen::Gibbs::Motif(3pm)

NAME
TFBS::PatternGen::Gibbs::Motif - class for unprocessed motifs and associated numerical scores created by the Gibbs program SYNOPSIS
DESCRIPTION
TFBS::PatternGen::Gibbs::Motif is used to store and manipulate unprocessed motifs and associated numerical scores created by the Gibbs program. You do not normally want to create a TFBS::PatternGen::Gibbs::Motif yourself. They are created by running TFBS::PatternGen::Gibbs FEEDBACK
Please send bug reports and other comments to the author. AUTHOR - Boris Lenhard and Wynand Alkema Boris Lenhard <Boris.Lenhard@cgb.ki.se> Wynand Alkema <Wynand.Alkema@cgb.ki.se> APPENDIX
The rest of the documentation details each of the object methods. Internal methods are preceded with an underscore. MAP Title : MAP Usage : my $map_score = $motif->MAP; Function: returns MAP score for the detected motif (This is a backward compatibility method. For consistency, you should use $motif->tag('MAP_score') instead Returns : float (a scalar) Args : none Other methods TFBS::PatterGen::Motif::Gibbs inherits from TFBS::PatternGen::Motif, which inherits from TFBS::Matrix. Please consult the documentation of those modules for additional available methods. perl v5.14.2 2008-01-24 TFBS::PatternGen::Gibbs::Motif(3pm)
All times are GMT -4. The time now is 06:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy