02-23-2016
Why aren't the changes I suggested in post #17 in this thread sufficient to add the header you want to your output file?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
First field is the Record Type. A Record Type 5 can have multiple Record Type 6's before another Record Type 5 appears.
I want to calculate the total of fields at position 8-11 on Record type 6 when Record Type 5 has a field at position 11-14 equals to '2222'. then it should delete the lines... (2 Replies)
Discussion started by: appsguy616
2 Replies
2. Shell Programming and Scripting
The file content is dynamic and using this format:
name1 number1
name2 number2
name3 number3
name4 number4
....................
Need a smooth way to calculate the sum of all the numbers in that file (number1 + number2 + number3 + number4........ = total ) (11 Replies)
Discussion started by: TehOne
11 Replies
3. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
4. Shell Programming and Scripting
Hello Friends,
I have a file(InputFile.csv) with the following columns(the columns are pipe-delimited):
ColA|ColB|ColC|ColD|ColE|ColF
Now for this file, I have to get those records which fulfil the following condition:
If "ColB" is NOT NULL and "ColD" has values one of the following... (9 Replies)
Discussion started by: mehimadri
9 Replies
5. Shell Programming and Scripting
Dears,
I need a script or command which can find the unique number from the second filed and against that number it adds the total of first field .
17215630 , 0
907043 ,1
201050 ,10
394149 ,4
1964 ,9
17215630, 0
907043 ,1
201050, 10
394149 ,4
1964 ,9
1234234, 55
23 ,100
33 ,67
... (2 Replies)
Discussion started by: shary
2 Replies
6. Shell Programming and Scripting
HI
I have a file
# cat marks.txt
MARKS LIST
2013
Name english french chinese latin total_marks
wer 34 45 67 23
wqa 12 39 10 56
wsy 23 90 23 78
Now i need to find the total marks of each student using... (11 Replies)
Discussion started by: Priya Amaresh
11 Replies
7. Shell Programming and Scripting
Hi All ,
I have the following script as below , I tried to modify to meet the requirement , could someone help ? very thanks
================================================================================================
while read STR NAME; do
Total=0
MyString="$STR"
GetData () {... (18 Replies)
Discussion started by: ust3
18 Replies
8. Shell Programming and Scripting
Trying to use awk to print the lines in file that have either REF or SNV in $3, add a header line, sort by $4 in numerical order. The below code does that already, but where I am stuck is on the last part where the total lines are counted and printed under Total_Targets, under Targets_less_than is... (4 Replies)
Discussion started by: cmccabe
4 Replies
9. Shell Programming and Scripting
I have been reading old posts and trying to come up with a solution for the below: Use a tab-delimited input file to assign
point to variables that are used to update a specific field, Rank. I really couldn't find too much in the way of assigning points
to variable, but made an attempt at an awk... (4 Replies)
Discussion started by: cmccabe
4 Replies
config(5) Files config(5)
NAME
config - Configuration file.
DESCRIPTION
A configuration file contains values for configuration parameters for the applications in the system. The erl command line argument -config
Name tells the system to use data in the system configuration file Name.config .
Configuration parameter values in the configuration file will override the values in the application resource files (see app(5) ). The val-
ues in the configuration file can be overridden by command line flags (see erl(1) ).
The value of a configuration parameter is retrieved by calling application:get_env/1,2 .
FILE SYNTAX
The configuration file should be called Name.config where Name is an arbitrary name.
The .config file contains one single Erlang term. The file has the following syntax:
[{Application1, [{Par11, Val11}, ..]},
..
{ApplicationN, [{ParN1, ValN1}, ..]}].
* Application = atom() is the name of the application.
* Par = atom() is the name of a configuration parameter.
* Val = term() is the value of a configuration parameter.
SYS.CONFIG
When starting Erlang in embedded mode, it is assumed that exactly one system configuration file is used, named sys.config . This file
should be located in $ROOT/releases/Vsn , where $ROOT is the Erlang/OTP root installation directory and Vsn is the release version.
Release handling relies on this assumption. When installing a new release version, the new sys.config is read and used to update the appli-
cation configurations.
This means that specifying another, or additional, .config files would lead to inconsistent update of application configurations. There-
fore, in Erlang 5.4/OTP R10B, the syntax of sys.config was extended to allow pointing out other .config files:
[{Application, [{Par, Val}]} | File].
* File = string() is the name of another .config file. The extension .config may be omitted. It is recommended to use absolute paths. A
relative path is relative the current working directory of the emulator.
When traversing the contents of sys.config and a filename is encountered, its contents are read and merged with the result so far. When an
application configuration tuple {Application, Env} is found, it is merged with the result so far. Merging means that new parameters are
added and existing parameter values overwritten. Example:
sys.config:
[{myapp,[{par1,val1},{par2,val2}]},
"/home/user/myconfig"].
myconfig.config:
[{myapp,[{par2,val3},{par3,val4}]}].
This will yield the following environment for myapp :
[{par1,val1},{par2,val3},{par3,val4}]
The behaviour if a file specified in sys.config does not exist or is erroneous in some other way, is backwards compatible. Starting the
runtime system will fail. Installing a new release version will not fail, but an error message is given and the erroneous file is ignored.
SEE ALSO
app(5) , erl(1) , OTP Design Principles
Ericsson AB kernel 2.14.3 config(5)