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
How to print the first array element?
How to print all the arguments provided to the script?
How can the contents of a file inside jar be read without extracting in a shell script?
How do I edit a .sh file?
How to print pid of the current shell?
What is the significance of the shebang line in shell scripting?
What is a shell made of?
How do I run a .sh file on mac?
What is bourne shell scripting?
How to check if a directory exists?
What can scripts do?
What language is bash written in?
How are shells born?
Is bash an operating system?
Why should we use shell scripts?