Search Results

Search: Posts Made By: mobitron
9,595
Posted By mobitron
2 things are wrong - 1. You are missing a...
2 things are wrong -
1. You are missing a double quote in your expression (echo $VAR1")
2. Your test expression can't just be the output of the grep command - you need to perform some kind of test...
2,429
Posted By mobitron
echo <string> | sed "s/Cluster//"
echo <string> | sed "s/Cluster//"
1,833
Posted By mobitron
You should use them when you want to pass the...
You should use them when you want to pass the output of what is within the quotes to another command, or a variable assignment.

e.g. if you wanted to assign the content of the user's passwd entry...
1,833
Posted By mobitron
You need to remove the backticks as well: ...
You need to remove the backticks as well:


if grep $username /etc/passwd > /dev/null
21,872
Posted By mobitron
1. You are using a numeric comparision operator...
1. You are using a numeric comparision operator (-eq) to compare strings.
2. Why don't you test for inequality instead of equality?
3. You are missing whitespace between your test arguments and...
Showing results 1 to 5 of 5

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