瀏覽代碼

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

DricomDragon 5 年之前
父節點
當前提交
751c17954a
共有 2 個文件被更改,包括 6 次插入0 次删除
  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.