## add text to end of text file

add text to end of text file
# 1
05-31-2007
add text to end of text file

Hi,

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?

i.e
file.txt
________________
this is my text file
________________

file.txt
________________
this is my text file
WITH A NEW LINE
________________

Thanks for your time

Lee
This User Gave Thanks to leeRoberts2007 For This Post:
 leeRoberts2007 View Public Profile for leeRoberts2007 Find all posts by leeRoberts2007
# 2
05-31-2007
LeeRoberts,
Here is one way of doing this:
This User Gave Thanks to Shell_Life For This Post:
 Shell_Life View Public Profile for Shell_Life Find all posts by Shell_Life
# 3
05-31-2007
This User Gave Thanks to reborg For This Post:
 reborg View Public Profile for reborg Find all posts by reborg
# 4
05-31-2007
thanks, and how about something at the start of a text file?
This User Gave Thanks to leeRoberts2007 For This Post:
 leeRoberts2007 View Public Profile for leeRoberts2007 Find all posts by leeRoberts2007
# 5
05-31-2007
This User Gave Thanks to ghostdog74 For This Post:
 ghostdog74 View Public Profile for ghostdog74 Find all posts by ghostdog74
# 6
06-01-2007
Another method

 lorcan View Public Profile for lorcan Find all posts by lorcan
# 7
06-01-2007
Quote:
Originally Posted by lorcan
UUOC
 ghostdog74 View Public Profile for ghostdog74 Find all posts by ghostdog74

Test Your Knowledge in Computers #207
Difficulty: Easy
Open Shortest Path First (OSPF) is a routing protocol for Internet Protocol (IP) networks which uses a link state routing (LSR) algorithm.
True or False?

## Match text to lines in a file, iterate backwards until text or text substring matches, print to file

hi all, trying this using shell/bash with sed/awk/grep I have two files, one containing one column, the other containing multiple columns (comma delimited). file1.txt abc12345 def12345 ghi54321 ... file2.txt abc1,text1,texta abc,text2,textb def123,text3,textc gh,text4,textd...

## trying to add text to beginning and end of each line

Well here goes: I tried to write a batch file that adds a specific fixed text to each line of an already existing text file. for the adding text infront of each line I tried this: for /F "delims=" %%j in (list.txt) do echo.STARTTEXT\%%j >> list.txt for adding text after each line I...

## Add text at the end of line conditionally

Hi All, I have a file as below: cat myfile abcdef NA rwer tyujkl na I wish to add the text ".txt" at the end of all lines except the lines starting with NA or na. I know i can add text at the end of line using following command but I am not sure how to valiate the condition.

## while loop to add text to the end of a file

Hi all, I've got 2 files. File 1 has a list say a b c d e f File 2 got start= What I want is to create File 3 which look like this start=a,b,c,d,e,f So is it possible to loop throught File1 to echo it into File3 in one line?