Sponsored Content
Top Forums Shell Programming and Scripting Grep from FileA, search in FileB, edit FileC > Output Post 303035275 by baris35 on Saturday 18th of May 2019 03:48:14 PM
Old 05-18-2019
Thank you Rudic,
I had to change the files while testing but I will run as you leaded.


Kind regards
Boris
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script to search and edit scripts

Hi all, can you please help me in this one.. i have a many scripts in a directory & i get many requests to change the code of a particular script. for example file abc.txt contains #!/bin/bash mumbai 102403445 chennai 123980123 delhi 3456268468 kolkata 465376832 #kolkat 462945959 ... (3 Replies)
Discussion started by: geeko
3 Replies

2. Shell Programming and Scripting

How search,edit and save the file

Hi All, I want to edit a file using shell script..For ex...a file called /etc/passwd..here I am searching for "ftp" if it is there just change it to "tftp" without using any temporary file. (3 Replies)
Discussion started by: Vichu
3 Replies

3. Shell Programming and Scripting

cat file1 read line-per-line then grep -A 15 lines down in fileb

STEP 1 # Set variable FILE=/tmp/mainfile SEARCHFILE =/tmp/searchfile # THIS IS THE MAIN FILE. cat /tmp/mainfile Interface Ethernet0/0 "outside", is up, line protocol is up Hardware is i82546GB rev03, BW 100 Mbps Full-Duplex(Full-duplex), 100 Mbps(100 Mbps) MAC address... (6 Replies)
Discussion started by: irongeekio
6 Replies

4. Shell Programming and Scripting

Copying lines from fileA if they start by a word from fileB

Hi I'm in the need of a script that basically takes two files and generates a 3rd. It reads from fileA and fileB and copies lines from fileA if they start by a word of fileB. for example fileA The dog is beautful Where is your cat Why are you sad? Help me! fileB The Where tree dog... (4 Replies)
Discussion started by: FrancoisCN
4 Replies

5. Shell Programming and Scripting

search and edit in the same file using awk

Hi, I am having a user.txt contains the name of users and passwd.txt file contains as passwd.txt $cat usr.txt root bin daemon cap $cat passwd.txt root:x:0:0:root:/root:/usr/bin/ksh bin:x:1:1:bin:/bin:/sbin/csh daemon:x:2:2:daemon:/sbin:/usr/bin/ksh adm:x:3:4:adm:/var/adm:/sbin/nologin... (4 Replies)
Discussion started by: Manabhanjan
4 Replies

6. OS X (Apple)

Need Help with GREP REGEX scripts for common BB-EDIT text-editing

Hi Everybody.. I'm a "newbie" to using Command-line... A few half-remembered DOS commands from 30 years ago, and the very handy "Sudo rm -R pathname" REMOVE command... I do a lot of "cleaning" of plain-text OCR text files. with assorted common line-break, punctuation and capitalization... (1 Reply)
Discussion started by: TheMacGuy
1 Replies

7. Shell Programming and Scripting

Perl search csv fileA where two strings exist on another csv fileB

Hi I have two csv files, with the following formats: FileA.log: Application, This occured blah Application, That occured blah Application, Also this AnotherLog, Bob did this AnotherLog, Dave did that FileB.log: Uk, London, Application, datetime, LaterDateTime, Today it had'nt... (8 Replies)
Discussion started by: PerlNewbRP
8 Replies

8. UNIX for Dummies Questions & Answers

Find a value inside file1 and replace it with another value from another fileB

i have a file with some data and i need replace a perticular value with some other value from another another file req: file1.txt abc,idle.txt,1234 file2.txt 5678 now the requirement is need to replace the "idle.txt" is with "mike_5678" here 5678 from file2.txt... file2.txt contains only... (2 Replies)
Discussion started by: dssyadav
2 Replies

9. Shell Programming and Scripting

awk or grep to search one column and output the other

Hello, it would be great if someone can help me with the following: I want to search for the rows from fileA in column 1 of fileB and output column 2 of fileB if found in fileC. In the moment I search within the complete file. How can I change the code so only column 1 is searched? cat fileA... (7 Replies)
Discussion started by: Manyaka
7 Replies

10. UNIX for Beginners Questions & Answers

How to use a grep search to search for a specific string within multiple directories?

Lets say I have a massive directory which is filled with other directories all filled with different c++ scripts and I want a listing of all the scripts that contain the string: "this string". Is there a way to use a grep search for that? I tried: grep -lr "this string" * but I do not... (3 Replies)
Discussion started by: Circuits
3 Replies
TFBS::Matrix(3pm)					User Contributed Perl Documentation					 TFBS::Matrix(3pm)

NAME
TFBS::Matrix - base class for matrix patterns, containing methods common to all DESCRIPTION
TFBS::Matrix is a base class consisting of universal constructor called by its subclasses (TFBS::Matrix::*), and matrix manipulation methods that are independent of the matrix type. It is not meant to be instantiated itself. FEEDBACK
Please send bug reports and other comments to the author. AUTHOR - Boris Lenhard Boris Lenhard <Boris.Lenhard@cgb.ki.se> Modified by Eivind Valen eivind.valen@gmail.com APPENDIX
The rest of the documentation details each of the object methods. Internal methods are preceded with an underscore. matrix Title : matrix Usage : my $matrix = $pwm->matrix(); $pwm->matrix( [ [12, 3, 0, 0, 4, 0], [ 0, 0, 0,11, 7, 0], [ 0, 9,12, 0, 0, 0], [ 0, 0, 0, 1, 1,12] ]); Function: get/set for the matrix data Returns : a reference to 2D array of integers(PFM) or floats (ICM, PWM) Args : none for get; a four line string, reference to 2D array, or a 2D piddle for set pdl_matrix Title : pdl_matrix Usage : my $pdl = $pwm->pdl_matrix(); Function: access the PDL matrix used to store the actual matrix data directly Returns : a PDL object, aka a piddle Args : none revcom Title : revcom Usage : my $revcom_pfm = $pfm->revcom(); Function: create a matrix pattern object which is reverse complement of the current one Returns : a TFBS::Matrix::* object of the same type as the one the method acted upon Args : none rawprint Title : rawprint Usage : my $rawstring = $pfm->rawprint); Function: convert matrix data to a simple tab-separated format Returns : a four-line string of tab-separated integers or floats Args : none prettyprint Title : prettyprint Usage : my $prettystring = $pfm->prettyprint(); Function: convert matrix data to a human-readable string format Returns : a four-line string with nucleotides and aligned numbers Args : none length Title : length Usage : my $pattern_length = $pfm->length; Function: gets the pattern length in nucleotides (i.e. number of columns in the matrix) Returns : an integer Args : none randomize_columns Title : randomize_columns Usage : $pfm->randomize_columns(); Function: Randomizes the columns of a matrix Returns : Nothing Args : none perl v5.14.2 2008-01-24 TFBS::Matrix(3pm)
All times are GMT -4. The time now is 11:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy