Parcourir la source

Replace 4 letters words beginning by c or finishing by n by coin

DricomDragon il y a 5 ans
Parent
commit
751c17954a
2 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 5 0
      coinSpeech.sh
  2. 1 0
      text.txt

+ 5 - 0
coinSpeech.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+sed -e "s/\<c\w\{3\}\>/coin/g" \
+    -e "s/\<\w\{3\}n\>/coin/g" \
+    $1

+ 1 - 0
text.txt

@@ -0,0 +1 @@
+Hello boys, I need you to ceas this plan. This is a lion, your came is blue.