#!/bin/bash nb_cheats=$(cheat -l | grep -w "$2" | grep -w $1 | wc -l) if [ $nb_cheats -gt 1 ]; then echo "Please chose between the tags:" cheat -l | grep -w "$2" | grep -w $1 | awk '{print $3}' echo "Usage: $0 " exit fi cheat_path=$(cheat -l | grep -w "$2" | grep -w $1 | awk '{print $2}') ~/bin/clima -p $cheat_path