fork download
  1. #!/bin/bash
  2. s='@font-face {
  3. font-family: "Roboto";
  4. src: local(Roboto Thin), url("../fonts/roboto/Roboto-Thin.woff2") format("woff2"), url("../fonts/roboto/Roboto-Thin.woff") format("woff");
  5. font-weight: 100; }'
  6. sed -e '/@font-face/{' -e n -e '/font-family: "Roboto"/a \ \ font-display: swap;' -e '}' <<< "$s"
Success #stdin #stdout 0s 4484KB
stdin
Standard input is empty
stdout
@font-face {
  font-family: "Roboto";
  font-display: swap;
  src: local(Roboto Thin), url("../fonts/roboto/Roboto-Thin.woff2") format("woff2"), url("../fonts/roboto/Roboto-Thin.woff") format("woff");
  font-weight: 100; }