Search Results

Search: Posts Made By: intelinside
2,140
Posted By Scrutinizer
Try: if [[ condition a || condition b ]] then...
Try:
if [[ condition a || condition b ]]
then
...
809
Posted By Scrutinizer
How about adding a space before the second double...
How about adding a space before the second double quote?
5,830
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...
1,135
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 11:27 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy