Search Results

Search: Posts Made By: intelinside
3,443
Posted By Scrutinizer
Try: if [[ condition a || condition b ]] then...
Try:
if [[ condition a || condition b ]]
then
...
2,019
Posted By Scrutinizer
How about adding a space before the second double...
How about adding a space before the second double quote?
22,249
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,289
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 01:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy