How to group the commands in shell scripting?
Answer Posted / linuxdemon(vjsujay@gmail.com)
(unix cmd 1; unix cmd2)
eg:
ubuntu@ubuntu:~$ (w > fname ; wc -l fname)
10 fname
ubuntu@ubuntu:~$
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What is bash command used for?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
What is the fastest scripting language?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What is awk in shell script?
What is another name for a bash shell script that you might see?
Print the 10th line without using tail and head command.
Explain about debugging?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
What is gui scripting?
What is batch file programming?
What lives in a shell?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
How to calculate the number of passed arguments?