Code Snippets sed

Short texts sed πŸ§‘β€πŸ’» Code snippets sed ✍️ Reading lists sed πŸ‘€

Soundex in sed

#!/usr/bin/sed -rf s/^./\U\0/ s/[aeiouyhw]/-/g s/[aeiouyhw]/-/g;s/[bfpv]/1/g;s/[cgjkqsxz]/2/g;y/dt/33/;y/l/4/;y/mn/55/;y/r/6/ s/([1-6])\1+/\1/g s/-//g s/^[A-Z][1-6]$/&00/;s/^[A-Z][1-6]{2}$/&0/;s/^([A-Z][1-6]{3})[1-6]+$/\1/

changeHtmltoMarkdown.sed

#!/bin/sed -nf # Change files html to markdown # Author: Igor Andrade # version: 0.1 # execute com $ sed -f changehtml.sed file.html > file.md # remove o atΓ© o 6 s///g # grupo que altera os h’s por markdown desejado s//# /g s//## /g s//### /g s//#### /g s//##### /g s//###### /g # trocar […]