/freebsd/usr.bin/sed/tests/ |
H A D | multi_test.sh | 31 # sed Regression Tests 36 # of the BSD sed. Each test should have a unique mark name, which is 61 SED=sed 111 $SED 's/^/e1_/p' lines1 112 mark '1.2' ; $SED -n 's/^/e1_/p' lines1 114 $SED 's/^/e1_/p' <lines1 115 mark '1.4' ; $SED -n 's/^/e1_/p' <lines1 118 $SED -e '' <lines1 122 $SED -f script1 lines1 124 $SED -f script1 <lines1 [all …]
|
H A D | regress.sh | 6 REGRESSION_TEST(`G', `sed G <${SRCDIR}/regress.in') 7 REGRESSION_TEST(`P', `sed P <${SRCDIR}/regress.in') 8 REGRESSION_TEST(`psl', `sed \$!g\;P\;D <${SRCDIR}/regress.in') 9 REGRESSION_TEST(`bcb', `sed s/X/$(jot -n -bx -s "" 2043)\\\\zz/ <${SRCDIR}/regress.in') 10 REGRESSION_TEST(`y', `echo -n foo | sed y/o/O/') 11 REGRESSION_TEST(`sg', `echo foo | sed s/,*/,/g') 12 REGRESSION_TEST(`s3', `echo foo | sed s/,*/,/3') 13 REGRESSION_TEST(`s4', `echo foo | sed s/,*/,/4') 14 REGRESSION_TEST(`s5', `echo foo | sed s/,*/,/5') 15 REGRESSION_TEST(`c0', `sed ''`c\ [all …]
|
H A D | sed2_test.sh | 38 atf_check sed -i '' -e 's,foo,bar,g' b 52 atf_check -e not-empty -s not-exit:0 sed -i '' -e 's,foo,bar,g' b 64 atf_check -o 'inline:1\n2\n' sed '2q' a 65 atf_check sed -i.bak '2q' a 82 atf_check -o 'inline:a\nt\\t\n' sed '/\t/d' a 83 atf_check -o 'inline:a\nt\\t\n b\n c\r\n' sed 's/\t/ /g' a 84 atf_check -o 'inline:a\nt\\t\n\t\tb\n\t\t\t\tc\r\n' sed 's/\t/\t\t/g' a 85 atf_check -o 'inline:a\nt\n\tb\n\t\tc\r\n' sed 's/\\t//g' a 86 atf_check -o file:b sed 's/\r//' a 87 atf_check -o 'inline:abcx\n' sed 's/[ \r\t]//g' c [all …]
|
/freebsd/lib/libc/tests/regex/ |
H A D | multibyte.sh | 11 sed -ne '/^.$/p' 13 sed -ne '/^..$/p' 15 sed -ne '/a.a/p' 17 sed -ne '/a.*a/p' 19 sed -ne '/aa.aa/p' 21 sed -ne '/a.a.a/p' 23 sed -ne '/.a/p' 25 sed -ne '/a.aa/p' 27 sed -ne '/.a./p' 43 echo $b | atf_check -o "inline:$b\n" sed -ne "/$a/Ip" [all …]
|
/freebsd/contrib/netbsd-tests/usr.bin/sed/ |
H A D | t_sed.sh | 33 atf_set "descr" "Test that sed(1) does not fail when the " \ 40 -x "echo foo | sed -f $(atf_get_srcdir)/d_c2048.in" 45 atf_set "descr" "Test that sed(1) handles " \ 52 -x "echo foo1bar1 | sed -ne '/foo\(.*\)bar\1/p'" 57 -x "echo foobar | sed -ne '/foo\(.*\)bar\1/p'" 62 atf_set "descr" "Test that sed(1) handles " \ 71 atf_check -o save:output -x "echo x | sed s,x,${str},g" 77 atf_set "descr" "Test that sed(1) handles " \ 84 -x "printf 'A\nB\nC\nD\n' | sed '1,3d'" 86 -x "printf 'A\nB\nC\nD\n' | sed '2,4d'" [all …]
|
/freebsd/usr.bin/sed/ |
H A D | POSIX | 4 Section 4.55: sed - Stream editor 11 undocumented inconsistencies between the historical versions of sed and 13 implementing a POSIX-compatible version of sed, and should not be 17 1. 32V and BSD derived implementations of sed strip the text 21 #!/bin/sed -f 34 sed do not do this stripping. The argument against stripping is 35 that it is difficult to write sed scripts that have leading blanks 37 difficult to write readable sed scripts unless indentation is allowed 42 2. Historical versions of sed required that the w flag be the last 46 3. Historical versions of sed required that whitespace follow a w [all …]
|
/freebsd/tools/ifnet/ |
H A D | convert_ifapi.sh | 70 value=`echo $line | awk -F "=" '{ print $2 }' | sed -e 's/;//g'` 72 new=`echo $new | sed -e 's/&/\\\&/'` 73 old=`echo $line|sed -e 's/^[ ]*//'` 74 line=`echo $line| sed -e's/'$old'/'$new'/g'` 85 old=`echo $line|sed -e 's/^[ ]*//'` 87 new=`echo $new | sed -e 's/&/\\\&/'` 88 line=`echo $line| sed -e's/'$old'/'$new'/g'` 98 value=`echo $line | awk -F"=" '{ print $2}' | sed -e 's/;//g'` 100 new=`echo $new | sed -e 's/&/\\\&/'` 101 old=`echo $line|sed -e 's/^[ ]*//'` [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | data2.bin | 6 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 9 sed euismod nisi porta. Sit amet volutpat consequat mauris nunc. 15 vestibulum sed arcu non odio euismod lacinia. In metus vulputate eu 27 mauris a diam maecenas sed enim ut sem viverra. Fermentum leo vel orci 28 porta non pulvinar neque. Risus nullam eget felis eget nunc. Sed tempus 30 proin. Vitae elementum curabitur vitae nunc sed velit dignissim sodales. 31 Sed arcu non odio euismod lacinia at. Enim praesent elementum facilisis 44 quisque id diam. Urna nec tincidunt praesent semper feugiat nibh sed. Sed 45 libero enim sed faucibus turpis in eu mi. 49 condimentum id. Et odio pellentesque diam volutpat commodo sed egestas [all …]
|
/freebsd/contrib/openbsm/config/ |
H A D | depcomp | 65 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; 74 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` 98 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" 99 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" 126 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} 127 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} 155 cygpath_u='sed s,\\\\,/,g' 163 cygpath_u='sed s,\\\\,/,g' 227 sed -e 's/^[^:]*: / /' \ 239 ## Some versions of the HPUX 10.20 sed can't process this invocation [all …]
|
/freebsd/contrib/openpam/ |
H A D | depcomp | 65 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; 74 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` 98 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" 99 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" 126 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} 127 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} 155 cygpath_u='sed s,\\\\,/,g' 163 cygpath_u='sed s,\\\\,/,g' 227 sed -e 's/^[^:]*: / /' \ 239 ## Some versions of the HPUX 10.20 sed can't process this invocation [all …]
|
/freebsd/contrib/ntp/sntp/libevent/build-aux/ |
H A D | depcomp | 65 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; 74 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` 98 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" 99 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" 126 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} 127 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} 155 cygpath_u='sed s,\\\\,/,g' 163 cygpath_u='sed s,\\\\,/,g' 227 sed -e 's/^[^:]*: / /' \ 239 ## Some versions of the HPUX 10.20 sed can't process this invocation [all …]
|
H A D | config.sub | 53 me=`echo "$0" | sed -e 's,.*/,,'` 116 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 128 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown 131 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 133 then os=`echo $1 | sed 's/.*-/-/'` 182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 193 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | depcomp | 65 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; 74 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` 98 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" 99 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" 126 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} 127 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} 155 cygpath_u='sed s,\\\\,/,g' 163 cygpath_u='sed s,\\\\,/,g' 227 sed -e 's/^[^:]*: / /' \ 239 ## Some versions of the HPUX 10.20 sed can't process this invocation [all …]
|
H A D | config.sub | 53 me=`echo "$0" | sed -e 's,.*/,,'` 116 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 128 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown 131 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 133 then os=`echo $1 | sed 's/.*-/-/'` 182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 193 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` [all …]
|
/freebsd/contrib/file/ |
H A D | depcomp | 65 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; 74 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` 98 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" 99 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" 126 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} 127 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} 155 cygpath_u='sed s,\\\\,/,g' 163 cygpath_u='sed s,\\\\,/,g' 227 sed -e 's/^[^:]*: / /' \ 239 ## Some versions of the HPUX 10.20 sed can't process this invocation [all …]
|
/freebsd/contrib/libevent/build-aux/ |
H A D | depcomp | 65 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; 74 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` 98 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" 99 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" 126 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} 127 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} 155 cygpath_u='sed s,\\\\,/,g' 163 cygpath_u='sed s,\\\\,/,g' 227 sed -e 's/^[^:]*: / /' \ 239 ## Some versions of the HPUX 10.20 sed can't process this invocation [all …]
|
/freebsd/contrib/sqlite3/ |
H A D | depcomp | 65 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; 74 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` 98 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" 99 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" 126 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} 127 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} 155 cygpath_u='sed s,\\\\,/,g' 163 cygpath_u='sed s,\\\\,/,g' 227 sed -e 's/^[^:]*: / /' \ 239 ## Some versions of the HPUX 10.20 sed can't process this invocation [all …]
|
/freebsd/sbin/ipf/ipftest/ |
H A D | Makefile | 37 sed -e 's/yy/ipnat_yy/g' \ 42 sed -e 's/yy/ipnat_yy/g' \ 49 sed -e 's/yy/ipnat_yy/g' \ 55 sed -e 's/yy/ipnat_yy/g' \ 62 sed -e 's/yy/ippool_yy/g' \ 66 sed -e 's/yy/ippool_yy/g' \ 72 sed -e 's/yy/ippool_yy/g' \ 78 sed -e 's/yy/ippool_yy/g' \ 85 sed -e 's/yy/ipf_yy/g' \ 89 sed -e 's/yy/ipf_yy/g' \ [all …]
|
/freebsd/contrib/unbound/contrib/ |
H A D | update-anchor.sh | 92 sed -e 's/ (secure)$/";/' | \ 93 sed -e 's/ has DNSKEY record \([0-9]*\) \([0-9]*\) \([0-9]*\) /. \1 \2 \3 "/' | \ 94 sed -e 's/^\.\././' | sort >> "$tmp2" 98 sed -e 's/ (secure)$/";/' | \ 99 sed -e 's/ has DNSKEY record \([0-9]*\) \([0-9]*\) \([0-9]*\) /. \1 \2 \3 "/' | \ 100 sed -e 's/^\.\././' | sort >> "$tmp2" 109 sed -e 's/ (secure)$//' | \ 110 sed -e 's/ has DNSKEY record /. IN DNSKEY /' | \ 111 sed -e 's/^\.\././' | sort > "$tmp2" 115 sed -e 's/ (secure)$//' | \ [all …]
|
/freebsd/contrib/ntp/libparse/ |
H A D | Makefile.am | 94 EXTRA_DIST = parsesolaris.c parsestreams.c mkinfo_scmd.sed mkinfo_rcmd.sed info_trimble.c 96 info_trimble.c: $(top_srcdir)/include/trimble.h $(srcdir)/Makefile.am $(srcdir)/mkinfo_scmd.sed $(srcdir)/mkinfo_rcmd.sed 97 $(AM_V_at)$(SED) -n -f $(srcdir)/mkinfo_scmd.sed $(top_srcdir)/include/trimble.h > info_trimble.new 98 $(AM_V_at)$(SED) -n -f $(srcdir)/mkinfo_rcmd.sed $(top_srcdir)/include/trimble.h >> info_trimble.new 167 $(SED) -e '/f[fl]s(.*)/d' < /usr/include/sys/systm.h > sys/systm.h
|
/freebsd/sys/contrib/openzfs/config/ |
H A D | po.m4 | 49 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 68 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 103 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 108 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 109 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 110 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 115 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 126 …given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_src… 136 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 197 …sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e … [all …]
|
H A D | ax_compare_version.m4 | 97 A=`echo "$1" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \ 104 B=`echo "$3" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \ 112 dnl # The sed right after the echo is to remove any indented white space. 116 x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/false/;s/x${B}/true/;1q"` 120 x$B" | sed 's/^ *//' | sort | sed "s/x${A}/false/;s/x${B}/true/;1q"` 124 x$B" | sed 's/^ *//' | sort | sed "s/x${A}/true/;s/x${B}/false/;1q"` 128 x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/true/;s/x${B}/false/;1q"` 139 A=`echo "$A" | sed "s/\(.\{$ax_compare_version_len_B\}\).*/\1/"` 140 B=`echo "$B" | sed "s/\(.\{$ax_compare_version_len_A\}\).*/\1/"` 144 A=`echo "$A" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"` [all …]
|
/freebsd/contrib/file/doc/ |
H A D | Makefile.in | 44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ 50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ 122 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 124 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 127 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; 130 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` 132 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" 135 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ 141 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ 142 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' [all …]
|
/freebsd/crypto/openssh/ |
H A D | sntrup761.sh | 22 sed -e '/Alphabetical order:/d' -e 's/^/ * - /' < $AUTHOR 49 sed -e "/#include/d" \ 61 sed -e "s/static void crypto_int16_store/void crypto_int16_store/" \ 69 sed -e "s/static void crypto_int32_store/void crypto_int32_store/" \ 76 sed -e "s/static void crypto_int64_store/void crypto_int64_store/" \ 81 sed -e "s/void crypto_sort[(]/void crypto_sort_int32(/g" 84 sed -e "s/crypto_sort_smallindices/crypto_sort_int32_smallindices/"\ 88 sed -e "s/void crypto_sort/void crypto_sort_uint32/g" 92 sed -e '/ int32_div_uint14/,/^}$/d' 96 sed -e '/ uint32_div_uint14/,/^}$/d'
|
H A D | ed25519.sh | 29 sed -e '/Alphabetical order:/d' -e 's/^/ * - /' < $AUTHOR 51 sed \ 60 sed -e "/^#include.*/d" \ 66 sed -e "s/crypto_sign/crypto_sign_ed25519/g" 70 sed -e "s/crypto_sign_keypair/crypto_sign_ed25519_keypair/g" 74 sed -e "s/crypto_sign_open/crypto_sign_ed25519_open/g" 78 sed -e "s/reduce_add_sub/fe25519_reduce_add_sub/g" \ 84 sed -e "s/^int /static int /g" \ 96 sed -e "s/reduce_add_sub/sc25519_reduce_add_sub/g" \ 111 sed -e "s/^int /static int /g" [all …]
|