Scripting Linux to install several programs at once

I've been installing step by step video conversion codec and tools for a few hours now, and it is just plan annoying. Is it possible to design a script to load in linux to do all the commands in sequence one after another?

Answers


Absolutely. Create a plain text file, put #! /bin/bash at the top, then write all the commands in the file. Save it, "chmod +x yourFile", then run it by calling ./yourFile.

If your installs are a more intricate, I'd need to see an example to say more specifically how to do this as a shell script.


Need Your Help


About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.