• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision53cc9464815b2eaf119964c303f79c60f2a66bc5 (tree)
Zeit2014-09-01 02:33:03
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I renamed the file (before it was hidden).

Ändern Zusammenfassung

Diff

diff -r 61b789dd3c94 -r 53cc9464815b Bash-scripts/.createalias.sh
--- a/Bash-scripts/.createalias.sh Sun Aug 31 19:00:41 2014 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
1-#!/bin/sh
2-
3-MESSAGE=$(cat)
4-
5-NEWALIAS=$(echo "${MESSAGE}" | grep ^"From: " | sed s/[\,\"\']//g | awk '{$1=""; if (NF == 3) {print "alias" $0;} else if (NF == 2) {print "alias" $0 $0;} else if (NF > 3) {print "alias", tolower($(NF-1))"-"tolower($2) $0;}}')
6-
7-# if grep -Fxq "$NEWALIAS" $HOME/.mutt/aliases.txt; then
8-# :
9-# else
10-# echo "$NEWALIAS" >> $HOME/.mutt/aliases.txt
11-# fi
12-
13-# echo "${MESSAGE}"
14-
15-
16-if grep -Fxq "$NEWALIAS" ~/.mutt-alias.txt; then
17- :
18-else
19- echo "$NEWALIAS" >> ~/.mutt-alias.txt
20-fi
21-
22-echo "${MESSAGE}"
diff -r 61b789dd3c94 -r 53cc9464815b Bash-scripts/createalias.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Bash-scripts/createalias.sh Sun Aug 31 19:33:03 2014 +0200
@@ -0,0 +1,22 @@
1+#!/bin/sh
2+
3+MESSAGE=$(cat)
4+
5+NEWALIAS=$(echo "${MESSAGE}" | grep ^"From: " | sed s/[\,\"\']//g | awk '{$1=""; if (NF == 3) {print "alias" $0;} else if (NF == 2) {print "alias" $0 $0;} else if (NF > 3) {print "alias", tolower($(NF-1))"-"tolower($2) $0;}}')
6+
7+# if grep -Fxq "$NEWALIAS" $HOME/.mutt/aliases.txt; then
8+# :
9+# else
10+# echo "$NEWALIAS" >> $HOME/.mutt/aliases.txt
11+# fi
12+
13+# echo "${MESSAGE}"
14+
15+
16+if grep -Fxq "$NEWALIAS" ~/.mutt-alias.txt; then
17+ :
18+else
19+ echo "$NEWALIAS" >> ~/.mutt-alias.txt
20+fi
21+
22+echo "${MESSAGE}"