Add strings from one file at the end of specific lines in text file
this is my first post so I don't know if I am doing this right.
I would like to append entries from a series of strings (contained in a text file) consecutively at the end of specifically labeled lines in another file.
As an example:
- the file that contains the values to be added (cluster_sizes.txt):
- the file these entries shall be added to at the end of each line that begins with ">" (rep_sequences.fasta):
so the output should look like:
is this possible with awk or some similar language/ command? I have been searching on the net but don't really know how to get towards the needed information. I am a newbie to this world of text manipulation.
I have a log file which lists groups and users in the following format
I need to change the format to:
user4|GROUP2 (3 Replies)
Lets assume I have a text file.
The text file contains multiple "#" symbols.
I want to replace all thos "#"s with a STRING using DOS/Batch
I want to add a certain TEXT to the end of each line.
How can I do this WITHOUT aid of sed, grep or anything linux related ? (1 Reply)
I want to add a text to the end of the specific line in a file. Now my file looks like this:
I want to add the string " 555" to the end of the first line contaning 111. Moreover, I want to insert a newline after this line containg the "000" string. The... (8 Replies)
I've got 2 files.
File 1 has a list say
File 2 got
What I want is to create File 3 which look like this
So is it possible to loop throught File1 to echo it into File3 in one line? (3 Replies)
I go text file like this
E:/DDD/sss.com/nnnn/xxI want to print
/alpha.jpg at the end of every lines like that
E:/DDD/sss.com/ffffg/fff/alpha.jpg... (8 Replies)
I am attempting to insert multiple lines of text into a specific place in a text file based on the lines above or below it.
For example, Here is a portion of a zone file.
IN NS ns1.domain.tld.
IN NS ns2.domain.tld.
IN ... (2 Replies)
I assume there is a simple solution, but as usual i can't find it!
How can i add a line of text to the end of a text file on a new line?
this is my text file
this is my text file
WITH A NEW LINE... (6 Replies)
Hi Guys, :D
I am very much new to UNIX. I dont have much basics of coding in UNIX, so please help me out of thi ssituation.
I have a file say for ex: ABC.dtd and it contains "|" delimited data as
I need to add a column at the end... (6 Replies)
I would like to create a function that can calculate the total number of lines in a saved text file and delete specific lines in that particular file (I only want the last few lines). Hav anybody have the experience and giv me a hand in this? (9 Replies)