Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

batch write to text file

echo hello>test.txt

rem a single '>' will make a new file if one does not exist, and will overwrite
rem a previous file with the same line. to append to the same file, see below

echo hi>>test.txt

test.txt:
::hello
::hi
 
PREVIOUS NEXT
Tagged: #batch #write #text #file
ADD COMMENT
Topic
Name
1+6 =