Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to print the first array element?

989


How to print all the arguments provided to the script?

910


How can the contents of a file inside jar be read without extracting in a shell script?

1087


How do I edit a .sh file?

1081


How to print pid of the current shell?

952


What is the significance of the shebang line in shell scripting?

1052


What is a shell made of?

909


How do I run a .sh file on mac?

1092


What is bourne shell scripting?

928


How to check if a directory exists?

1114


What can scripts do?

1054


What language is bash written in?

957


How are shells born?

918


Is bash an operating system?

934


Why should we use shell scripts?

1004