In Linux shell programming, it is often used to determine whether a string is equal, the operator that can be used to determine whether a string is equal (equal), ' (not equal To), ' (less than), ' (Less -eq -ne -lt -le than or equal -gt to), '
Conditional expression ("CONDITIONAL EXPRESSIONS")
Conditional expressions are used in [composite commands and built-in command test and [to test file properties for string and arithmetic comparisons.] An expression is constructed using the
Condition testTo determine whether a demand is satisfied, it needs to be implemented by a testing mechanism.different test conditions are expressed according to the execution status result of the command1, according to the execution status of the ID
one. DataType (data type ):Perl's data types are roughly four: Scalar (variables), Scalar Array (array), hash array (hash), References (pointer), but they seem to be small but more than sufficient. In particular, you can write a Perl program without
Getting started with jstl: Expression LanguageSimplify software maintenance for JSP applications by avoiding scripting Elements
JSP standard tag Library (jstl) is a set of custom tag libraries that implement common functions in Web applications,
I. Data Types(Data type):
Perl has four data types: Scalar (variable), Scalar Array (Array), Hash Array (Hash), and References (pointer ), it seems to be rare, but it is more than enough to use it. Especially when writing Perl programs, you do not
Test Condition Expression Description
File symbols:
[Root@lamp test]# Help testtest:test [expr]Evaluate conditional expression.Exits with a status of 0 (True) or 1 (false) depending onThe evaluation of EXPR. Expressions May is unary or binary.
Original address: http://blog.chinaunix.net/uid-24607609-id-2118151.htmlThe syntax for the most streamlined if command is:if TEST-COMMANDS; then CONSEQUENT-COMMANDS; fiafter the Test-command executes and its return status is 0, the
To compare two strings for equality:
If ["$test" x = "Test" x]; Then
Here are a few key points:
1 using a single equal sign
2 Notice that there is a space on each side of the equal sign: This is what the Unix shell requires
3 Notice the last X of "$
Python learning notes sorting (4) strings in Python..., python learning notes
A string is an ordered Character Set combination used to store and present text-based information.Common string constants and expressionsT1 = ''empty stringT2 = "diege's"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.