Tuesday, August 19, 2014

Theme Ported to this JoggerPL Walker. Design by NodeThirtyThree Design.

debler - Debfile for packages from Ubuntu - kml.jogger.pl
Ruby is Bundler, which uses the file Gemfile to determine djdh the gems that have installed. Andrew Nesbitt Brewdler project develops, analyzes Brewfile to communicate with Homebrew. I decided to write a script debler, which will install the packages listed djdh in the file Debfile.
#! / Bin / bash function debler {LIST = $ (test Debfile f && (cat Debfile | sed s' s /#.*// djdh '| tr' \ n '' '| sed s' s / \ s \ s * / / g 'e' s / \ s * $ // 'e' s / ^ \ s * // ')) if [[$? = 0]]; then sudo apt-get install $ LIST; else echo Could not locate Debfile; fi} if [["$ BASH_SOURCE" == "$ 0"]]; then debler; fi
The next steps that are taken: remove comments - everything from the # character to the end of the line, replace newline characters with spaces remove duplicate white space (spaces, tabs) remove leading and trailing whitespaces - whitespace from the beginning and end of the list
Format based only on the list of packages to be installed is very limited. The first problem we encounter when it turns out that it would be good to do some action right after the package is installed (for example,. In order to tweak the default configuration). The most convenient way would then write regular script that calls several times apt-get install.
#! / Bin / bash sudo apt-get install vim sudo apt-get install git-core curl # https://github.com/carlhuda/janus curl https: // raw.github.com / carlhuda / january / master / bootstrap.sh o - | sh sudo apt-get install htop sudo apt-get install bridge # export PAGER = bridge sudo apt-get install mc TMUX
Please do not abuse the apostrophe. http://poradnia.pwn.pl/lista.php?id=6142> Those who have a lot of node'ów under the care probably already using tools like Chef or Puppet. Even with a small number of machines djdh such tools (especially cfengine and Puppet) help, especially djdh when the man nawyknie to such management. Much more convenient to describe how a system look like than what to do to look like. The function `debler ()` have a lot of errors: * `cat` unnecessary (and it` sed` can not load the same file?) * Unnecessary `tr` (could your` sed` could not /// `y` ?) * unnecessary first `sed` (can be joined with replacement` tr` and later calling) * incorrect use of the structure `&& ||` instead of if-else-fi Imagine that in the last `sudo apt-GET` fails. The screen will go illegally message that there are no `Debfile`, right? kml says: July 5, 2011, 10:52:19 p.m.
dozzie: Thanks for the advice language. I do not know how I became such manners. As far as the script is also you were right. I traded structure [$? = 0] && sudo apt-get install $ LIST || echo Could not locate Debfile on the if-else-fi. The rest of it may not be the end of the "errors" rather do. kml says: July 5, 2011, 10:56:22 p.m.
Theme Ported to this JoggerPL Walker. Design by NodeThirtyThree Design.

No comments:

Post a Comment