This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This one-liner removes all cordova installed plugins and then adds them again. | |
#Note: If you are not using Ionic, change 'ionic cordova plugin' to 'cordova plugin' | |
#! /bin/bash | |
cordova plugin list | cut -d ' ' -f 1 | while read plugin; do ionic cordova plugin rm $plugin && ionic cordova plugin add $plugin; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
string1=$1 | |
string2=$2 | |
count=0 | |
if [[ -e "$string2" || ( ${#string1} -ne ${#string2} ) ]] | |
then | |
echo "Not an anagram." | |
else | |
for (( i=0; i<${#string1}; i++ )) |