Answers for "adding new line"

0

new line

# For a new line, insert n
print "hello", "n", "hello", "n"

# puts automatically adds new line at end of text
puts "run"

# also use n in strings
text = "The quick, brown foxnjumped"
print text;
Posted by: Guest on November-29-2021
0

how to add new line to each line

sed G filename
try
cat new.txt | sed -e 's/pattern/'$'n/g'
Posted by: Guest on October-17-2021

Browse Popular Code Answers by Language