Return Entire thread Last 50 posts

Text editor warzone

20 Name: Anonymous 2024-07-03 23:49
>>18
if you have sed you don't need cat nor echo... ... ...
echo is kinda annoying since you need a readable, preferably single line text file to start the process

cpu% sed '1 c\
this is a test \
file written with sed as echo \
it has newlines and everything' /dev/osversion > file1
cpu% sed -e 's/test/a second/' -e 's/written/modified/' -e 's/with/by/' -e 's/as echo//' file1 > file2
cpu% sed '$ q' file1 file2 > file3
cpu% sed '$ q' file3
this is a test
file written with sed as echo
it has newlines and everything
this is a second test
file modified by sed
it has newlines and everything
cpu%

Return Entire thread Last 50 posts
Name:
Leave this field blank: