I am trying to create a bash script to easily perform searches in logs that are located in multiple directories. Below is my do-while loop function, which is where the error occurs. If the complete shell script is required to troubleshoot, let me know. The "x" represents private materials.
main_menu ()
{
TEMP=1
while [ "$TEMP" ! = "0" ]
do
clear
echo "###############################################"
echo
echo " xxxxxxxxxx xxx Search "
echo
echo "###############################################"
echo
echo " [1.] Search Logs by x/x "
echo
echo " [0.] Exit "
echo
echo " Select an Option: "
echo
read TEMP
case $TEMP in
1)
x_name
x_or_x
get_x
xargsbased on the question title, but it's very hard to understand your question otherwise.selectbuiltin command. It comes in handy for creating menus. Also of interest may be the external utilitiesdialogorwhiptail.