Use to get input (data from user) from keyboard and store (data) to variable. Syntax: read variable1, variable2,…variableN eg: #!/bin/sh echo “Enter your name please” read fname echo “Welcome $fname”
Author: Sandeep Sadanandan
Exit status
By default in Linux if particular command/shell script is executed, it return two type of values which is used to see whether command or shell script executed is successful or not. (1) If return value is zero (0), command is successful. (2) If return value is nonzero, command is not successful or some sort of error executing command/shell […]
Quotes in scripts
Mainly three types of quotes are used. 1. ” – Double quotes: Anything enclose in double quotes removed meaning of that characters (except and $). 2. ‘ – Single quotes: Enclosed in single quotes remains unchanged. 3. ` – Back quotes: To execute command
Shell Arithmetic
used to perform arithmetic operations in shell scripts. Synatax: $ expr op1 operator op2 eg: $ expr 1 + 3 $ expr 2 – 1 $ expr 10 / 2 $ expr 20 % 3 $ expr 10 * 3 $ echo `expr 6 + 3` in the last one we used back quote (` […]
Redirection in Shell-Unix/linux
Redirection is a function common to most command-line interpreters, including various unix shells that can redirect standard streams to user specified locations. UNIX STANDARD I/O Streams 0- stdin (Standard input) 1- stdout (Standard output) 2- stderr (standard error) Redirecting standard input and standard output simple redirection to a file: $command > file […]
HP today announced that its board of directors has appointed Meg Whitman as president and chief executive officer. In addition, Ray Lane has moved from non-executive chairman to executive chairman of the board of directors, and the board intends to appoint a lead independent director promptly. These leadership appointments are effective immediately and follow the […]
The Red Hat Crash Utility is a kernel-specific debugger. It is usually used for performing postmortem system analysis when the system panicked, locked up, or appears unresponsive. In this short article, Eugene Teo will give a quick overview of how you can install crash and how you can use it to get important information from […]
Windows 8 OEM specs may block Linux booting
After years of trying to cut off Linux growth as a desktop platform on x86 and x64 PCs, Microsoft may have actually figured out a way to stop Linux deployments on client PCs dead in their tracks. At the very least, Linux deployment will be hindered on any Windows 8-certified machines to come, as […]
Google Wallet goes live
At long last, Google has launched its Google Wallet mobile payment application on Sprint Nexus S 4G smartphones. Google Wallet, which Google first announced this past spring, utilizes near-field communications (NFC) technology to send very short-range signals to nearby NFC tags to complete payments — or as Google tells it, you’ll only have to tap […]
Carol Bartz out as Yahoo CEO
Carol Bartz has been fired from her job as Yahoo CEO and replaced on an interim basis by the company’s chief financial officer, Tim Morse, Yahoo said on Tuesday. Bartz sent a brief e-mail to employees saying she had been fired by Yahoo’s chairman, according to the Wall Street Journal’s All Things D blog, which was the […]