Search Results

Search: Posts Made By: intelinside
3,422
Posted By Scrutinizer
Try: if [[ condition a || condition b ]] then...
Try:
if [[ condition a || condition b ]]
then
...
2,015
Posted By Scrutinizer
How about adding a space before the second double...
How about adding a space before the second double quote?
22,165
Posted By agama
The key word is "string" as opposed to pattern. ...
The key word is "string" as opposed to pattern. Fgrep, or grep -F doesn't do any regular expression matching. Consider searching for the string .*.* in a file:


grep -F ".*.*" filename
grep...
2,251
Posted By radoulov
Try: read -p 'Enter any number, please: '...
Try:

read -p 'Enter any number, please: ' number
sleep 1
number=$( tr -d 0-9 <<< "$number" )
test -z "$number" &&
echo "Thank you" ||
echo "This is not a number"Actually you could...
Showing results 1 to 4 of 4

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