[Linux] bc | determine whether the command is successfully executed bc: www.2cto. comno1321456echo & quot; obase2; $ no & quot; | bc binary, octal, and hexadecimal notation. the quotation marks can be replaced to determine whether the command is successfully executed: run echo $? Such...
[Linux] bc | determine whether the command is successfully executed bc: www.2cto.com no = 1321456 echo "obase = 2; $ no" | bc binary, octal, same as hexadecimal, the quotation mark content can be replaced to realize the +-* % operation to determine whether the command is successfully executed: after the command is executed, run echo $? If the result is not 0, the operation is unsuccessful. Otherwise, the operation is successful. 0 standard input 1 standard output 2 standard errors example: output lscommand error information to out.txt ls "cuowucanshu" 2> out.txt> clear File> append file content
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service