Can anyone direct me to a resource that explains scripting in simple terms?
I have visited many sites and browsed this forum and have yet to find simple explanations. (8 Replies)
Hi all! Im wondering if its possible to create a GUI for a shell script I just got done writing as the people that will be using it dont like the command line all to well. Just something simple with radio buttons to select options, maybe a text field to enter a location to save the file generated... (1 Reply)
Hi
I want to write a small script that will create folders named from `AAAA' all the way to `ZZZZ'.
That is:
`AAAA'
`AAAB'
`AAAC'
...
`AABA'
`AABB'
`AABC'
...
`ABAA'
`ABAB'
`ABAC'
...
`ABBA'
...
`ZZZZ' (4 Replies)
I have a local account for a unix server. The idle timeout for the account is around 10 mins. I have to login to the server multiple times during the day. Is there a way to increase the idle timeout or may be a script that I can run on background so it is not idle. Something like echo date every 9... (3 Replies)
Hello - I am in process of deleting many files which are older than 4 weeks.
For example I am inside:
/subsystem/prod/
Files are with various extentions, but anything older than 4 weeks should be deleted.
What would be the most simplest script to acheive this? (4 Replies)
Hi all, I am brand new to these forums and I am a brand new UNIX Administartor. Don't know any scripting yet :wall:, and would like to learn as my boss is slowly letting me understand everything about being a Sys/*Nix Admin. He created this script which I am trying to replicate because I lost it... (54 Replies)
Dear all,
I have a directory named A and some subdirectories named B, C, D with .xml files. I want to use the following command to strip the file.
sed -re ':start s/<*>//g; /</ {N; b start}' file.xml > file.xml
At the same time, I want to remove the blank lines using
sed '/^$/d'
How can... (6 Replies)
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Hello ,
I am new in this forum and need your help as I am totally confused :confused:
I read a lot of threads and tried to search a lot but did not get the exact answer to my question.
I just want a simple (content wise may be long) shell script to create oracle database.
In detail:... (5 Replies)
This is the problem: Write a script that will make a backup of a file giving it a ‘.bak’ extension & verify that it works. I have tried a number of different scripts that haven't worked and I haven't seen anything really concise and to the point via google. For brevity's sake this is one of the... (4 Replies)
Discussion started by: demet8
4 Replies
LEARN ABOUT DEBIAN
bundle-config
BUNDLE-CONFIG(1)BUNDLE-CONFIG(1)NAME
bundle-config - Set bundler configuration options
SYNOPSIS
bundle config [name [value]]
DESCRIPTION
This command allows you to interact with bundler's configuration system. Bundler retrieves its configuration from the local application
(app/.bundle/config), environment variables, and the user's home directory (~/.bundle/config), in that order of priority.
Executing bundle config with no parameters will print a list of all bundler configuration for the current bundle, and where that configura-
tion was set.
Executing bundle config <name> will print the value of that configuration setting, and where it was set.
Executing bundle config <name> <value> will set that configuration to the value specified for all bundles executed as the current user. The
configuration will be stored in ~/.bundle/config.
BUILD OPTIONS
You can use bundle config to give bundler the flags to pass to the gem installer every time bundler tries to install a particular gem.
A very common example, the mysql gem, requires Snow Leopard users to pass configuration flags to gem install to specify where to find the
mysql_config executable.
gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
Since the specific location of that executable can change from machine to machine, you can specify these flags on a per-machine basis.
bundle config build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
After running this command, every time bundler needs to install the mysql gem, it will pass along the flags you specified.
CONFIGURATION KEYS
Configuration keys in bundler have two forms: the canonical form and the environment variable form.
For instance, passing the --without flag to bundle install(1) bundle-install.1.html prevents Bundler from installing certain groups speci-
fied in the Gemfile(5). Bundler persists this value in app/.bundle/config so that calls to Bundler.setup do not try to find gems from the
Gemfile that you didn't install. Additionally, subsequent calls to bundle install(1) bundle-install.1.html remember this setting and skip
those groups.
The canonical form of this configuration is "without". To convert the canonical form to the environment variable form, capitalize it, and
prepend BUNDLE_. The environment variable form of "without" is BUNDLE_WITHOUT.
LIST OF AVAILABLE KEYS
The following is a list of all configuration keys and their purpose. You can learn more about their operation in bundle install(1) bun-
dle-install.1.html.
path (BUNDLE_PATH)
The location on disk to install gems. Defaults to $GEM_HOME in development and vendor/bundler when --deployment is used
frozen (BUNDLE_FROZEN)
Disallow changes to the Gemfile. Defaults to true when --deployment is used.
without (BUNDLE_WITHOUT)
A :-separated list of groups whose gems bundler should not install
bin (BUNDLE_BIN)
Install executables from gems in the bundle to the specified directory. Defaults to false.
gemfile (BUNDLE_GEMFILE)
The name of the file that bundler should use as the Gemfile. This location of this file also sets the root of the project, which is
used to resolve relative paths in the Gemfile, among other things. By default, bundler will search up from the current working
directory until it finds a Gemfile.
In general, you should set these settings per-application by using the applicable flag to the bundle install(1) bundle-install.1.html com-
mand.
You can set them globally either via environment variables or bundle config, whichever is preferable for your setup. If you use both, envi-
ronment variables will take preference over global settings.
June 2012 BUNDLE-CONFIG(1)