When I was studying bash, I found it very helpful to go and study the bash scripts already present on a clean install of Linux/etc/profile, for instance, and anything in /etc/rc.d/init.d/.  These are often quite advanced scripts, and by studying them I ensured I learned about many obscure features not covered in most bash tutorials.I am studying sed now, and although the list of sed features is much shorter (so I know for a fact I have studied all of the features), I still feel it would be very beneficial to study through some sed scripts that are actually used in production, and are not just examples in tutorials.To that end, I would really like to study any sed scripts that are already present on a well-known Linux distro, such as Ubuntu or CentOS.  Trouble is, I have no idea where such scripts might be.  I've already tried file /bin/* | grep script | sed 's/:.*//' | xargs grep sed with no results.  file /sbin/* | grep script | sed 's/:.*//' | xargs grep -c sed returns some results, and I'm looking through those, but all the ones I have checked so far are just sed one-liners embedded in bash or sh scripts.Where can I find some actual sed scripts on my Linux machine?  Or failing that, is there a good place online to find some sed scripts that are actually used in production?  (Reading through sedtris won't help much for my purposes. ;)
Are there any sed scripts built in to mainstream Linux distros?
linux;sed;scripting;fhs
Try:grep -w sed /etc/init.d/*grep -w sed /etc/grub.d/*grep -w sed /usr/bin/*The first yields 25 scripts and the second 47 on my system (debian).The -w option restricts grep to looking for sed as a whole word.  This way, matches to words like used or supposedly are avoided.