Search Results

Search: Posts Made By: jvezinat
3,131
Posted By jvezinat
Issue with user input including * (glob) and sed
Hello All,

I have created a script that searches for different things and "sanitizes" the findings from files. Currently the user is required to put in a hostname (server.serverfarm.abc) one at a...
3,671
Posted By jvezinat
Thank you for the help! Working script as...
Thank you for the help! Working script as follows:

#!/bin/bash
# Set count to zero to track amount of guesses
# Set win=no for while loop condition
win=0
count=0
echo "What is your name?"...
3,671
Posted By jvezinat
Hi, Thank you for explaining that to me. ...
Hi,

Thank you for explaining that to me. The currently working script is as follows:

#!/bin/bash
win=no
echo "Please pick a number"
read number
while [ $win = no ]; do
if [ -z $number ];...
3,671
Posted By jvezinat
Would like to check user input for letters within a loop
Hi All,

#!/bin/bash

#Just trying to check if letters are in the user input. Any tips?
# I have tried regexp and using 0-9 etc, i cannot get this to work either in just an if statement or while...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 01:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy