Do you get to pick what your config file looks like? I'd have a config file like this:
...which you could load directly just by doing . /path/to/configfile Note the space between the dot and the file. Dot is an operarator here, for 'source', which runs lines from that file in your own script.
If you're stuck with a config file like that one though, I might try this:
The trick is, read takes a variable name. So VAR=ABCD ; read $VAR reads into the ABCD variable.
Hi,
I have a file that contains 1400 lines similar to the one shown below:
NAME=sara, TOWN=southampton, POSTCODE=SO18777, EMAIL=sara@hotmail.com, PASSWORD=asjdflkjds etc etc (note: this is one line).
Each line has the same fields, but on each line they are in a different order. Eg. the line... (2 Replies)
I have return files from a process that has then original input record followed on the next line by a response record..either AA,........... for accepted or EE,.......... for errored.
i.e
11,new,123
AA,accepted
12,exist,443
EE,rejected
13,old,223
AA,accepted
I want to write a small... (4 Replies)
I would like to pull a column from a file and place it in a variable:
The file would look like this:
N.Korea gibberish garbage
S.Korea gibberish garbage
USA gibberish garbage
Iraq gibberish garbage
Canada gibberish garbage
and items in the first... (8 Replies)
I saw a few posts close to what i want to do, but they didn't look like they would work exactly.. or I need to think out of the box on this.
I have a file that I keep server stats in for my own performance analysis. this file has the output from many commands in it (uptime, vmstats, ps, swap... (2 Replies)
Hi there,
Does anyone know of a place that will give details for each of the following UDP parms? I've found documentation on there size limits but not what they will do or affect if changed.
udp_xmit_hiwat
udp_xmit_lowat
udp_recv_hiwat
udp_max_buf ... (1 Reply)
In our Cron table, we have the /etc/subsync client ipadr1 ipadr2
Each ipadr is an actual IP adress.
I think it has something to do with synchronizing the clock between servers, but what is the ipadr2 for ? (0 Replies)
Hi,
I want to use a config file as the base file and parse over the values of country and city parameters in the config file and generate separate config files as explained below.
I will be using the config file as mentioned below:
(config.txt)
country:a,b
city:1,2
type:b1... (1 Reply)
Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated.
script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made.
OS :Susi linux ver 10.3.
... (4 Replies)
I'm scanning a list of emails- I need to pull 2 pieces of data, then move to the next file:
Sender's Email Address
Email Date
I need these to be outputted into a single column- separated by a ",". Like this:
Email1's Address, Email1's Date Stamp
Email2's Address, Email2's Date Stamp... (4 Replies)
I am connecting to another server through sftp. I am running one batch script to pull file from another server. sometimes i am receiving partial files. I am using below commands in batch script.
ls -ltr new.txt
mget new.txt
bye
The file is of 1 MB only.In most of the cases , i received... (6 Replies)
Discussion started by: srinath01
6 Replies
LEARN ABOUT SUSE
git-var
GIT-VAR(1) Git Manual GIT-VAR(1)NAME
git-var - Show a git logical variable
SYNOPSIS
git var ( -l | <variable> )
DESCRIPTION
Prints a git logical variable.
OPTIONS -l
Cause the logical variables to be listed. In addition, all the variables of the git configuration file .git/config are listed as well.
(However, the configuration variables listing functionality is deprecated in favor of git config -l.)
EXAMPLE
$ git var GIT_AUTHOR_IDENT
Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
VARIABLES
GIT_AUTHOR_IDENT
The author of a piece of code.
GIT_COMMITTER_IDENT
The person who put a piece of code into git.
GIT_EDITOR
Text editor for use by git commands. The value is meant to be interpreted by the shell when it is used. Examples: ~/bin/vi,
$SOME_ENVIRONMENT_VARIABLE, "C:Program FilesVimgvim.exe" --nofork. The order of preference is the $GIT_EDITOR environment variable,
then core.editor configuration, then $VISUAL, then $EDITOR, and then finally vi.
GIT_PAGER
Text viewer for use by git commands (e.g., less). The value is meant to be interpreted by the shell. The order of preference is the
$GIT_PAGER environment variable, then core.pager configuration, then $PAGER, and then finally less.
DIAGNOSTICS
You don't exist. Go away!
The passwd(5) gecos field couldn't be read
Your parents must have hated you!
The passwd(5) gecos field is longer than a giant static buffer.
Your sysadmin must hate you!
The passwd(5) name field is longer than a giant static buffer.
SEE ALSO git-commit-tree(1)git-tag(1)git-config(1)AUTHOR
Written by Eric Biederman <ebiederm@xmission.com[1]>
DOCUMENTATION
Documentation by Eric Biederman and the git-list <git@vger.kernel.org[2]>.
GIT
Part of the git(1) suite
NOTES
1. ebiederm@xmission.com
mailto:ebiederm@xmission.com
2. git@vger.kernel.org
mailto:git@vger.kernel.org
Git 1.7.1 07/05/2010 GIT-VAR(1)