Lines Matching full:sed

6 # This segfaults ubuntu 12.04's sed. No really.
12 # Exploring the wonders of sed addressing modes
81 toyonly testing "c empty continuation" "sed -e 'c\\'" "\n" "" "hello"
83 "sed -e '/one/,/three/{' -e 'i meep' -e'N;2D;}'" \
85 testing 'newline staying away' 'sed s/o/x/' 'xne\ntwx' '' 'one\ntwo'
88 #testing 'sed what, _really_?' 'sed -e a\\ && echo yes really' \
93 testing "match empty line" "sed -e 's/^\$/@/'" "@\n" "" "\n"
95 testing '\1' "sed 's/t\\(w\\)o/za\\1py/'" "one\nzawpy\nthree" "" \
97 testing '\1 p' "sed 's/t\\(w\\)o/za\\1py/p'" "one\nzawpy\nzawpy\nthree" \
99 testing '\1 no newline' "sed 's/t\\(w\\)o/za\\1py/'" "one\nzawpy" "" \
101 testing '\1 p no newline' "sed 's/t\\(w\\)o/za\\1py/p'" \
103 testing '-n s//\1/p' "sed -n 's/t\\(w\\)o/za\\1py/p'" "zawpy" "" "one\ntwo"
104 testing '-n s//\1/p no newline' "sed -n 's/t\\(w\\)o/za\\1py/p'" "zawpy" \
107 "sed 's/w/ale \2 ha/' >/dev/null 2>/dev/null || echo no" \
109 testing 'empty match after nonempty match' "sed -e 's/a*/c/g'" 'cbcncgc' \
111 testing 'empty match' "sed -e 's/[^ac]*/A/g'" 'AaAcA' '' 'abcde'
112 testing 's///#comment' "sed -e 's/TWO/four/i#comment'" "one\nfour\nthree" \
114 testing 's///num off end' 'sed -e s/e//2' 'e\n' '' 'e\n'
117 "sed -e 'a woo' -e 'N;\$p'" 'woo\none\ntwo\none\ntwo' "" 'one\ntwo'
118 testing "delimiter in regex [char range] doesn't count" "sed -e 's/[/]//'" \
121 "sed -e '/one/,/three/{' -e 'i meep' -e '1D;}'" \
124 "sed -e '/^three/s//abc&def/'" \
133 testing "" "sed -e '1a\' -e 'huh'" "meep\nhuh\n" "" "meep"
134 testing "" "sed -f input" "blah\nboom\n" '1a\\\nboom' 'blah'
135 testing "" "sed -f - input" "blah\nboom\n" 'blah' '1a\\\nboom'
136 testing "" "sed '1a\
139 testing "" "sed -e '/x/c\' -e 'y'" 'y\n' '' 'x\n'
140 testing "" "sed -e 's/a[([]*b/X/'" 'X' '' 'a[(b'
141 toyonly testing "" "sed 'y/a\\bc/de\f/'" "db\f" "" "abc"
142 testing "[a-a] (for perl)" "sed '"'s/\([^a-zA-Z0-9.:_\-\/]\)/\\\1/g'"'" \
146 # ends with a newline via "sed -e '$a\'". Apparently all a\ with no additional
149 testing "trailing a\ (for debian)" "sed 'a\\'" "hello\n" "" "hello"
153 toyonly testing "skip start of range" "sed -e n -e '1,2s/b/c/'" "a\nb\n" "" "a\nb\n"
154 testing "range +1" "sed -ne '/blah/,+1p'" "blah\n6\n" "" \
156 testing "range +0" "sed -ne '/blah/,+0p'" "blah\n" "" \
158 testing "range +3" "sed -ne '2,+3p'" "2\n3\n4\n5\n" "" \
161 testing "not -s" "sed -n 1p input -" "one" "one" "two"
162 testing "-s" "sed -sn 1p input -" "one\ntwo" "one\n" "two"
165 "sed -e 'a \l \x\' -e \"\$(echo -e 'ab\\\nc')\"" \
169 testing "end b with }" "sed -n '/START/{:a;n;/END/q;p;ba}'" "b\nc\n" \
197 "timeout 20 sed 's/x/y/g' | sha1sum" \
215 #echo meep | sed/sed -e '1a\' -e 'huh'
216 #echo blah | sed/sed -f <(echo -e "1a\\\\\nboom")
217 #echo merp | sed/sed "1a\\