Sponsored Content
Top Forums Shell Programming and Scripting reading external variables does not work Post 302340478 by kshji on Monday 3rd of August 2009 01:35:08 PM
Old 08-03-2009
Code:
#!/bin/ksh or bash
vINIFILE="$1"
echo "The name of the File is $vINIFILE" 
grep "RUNJOB=0" "$vINIFILE"

And
Code:
chmod a+rx thisscript
./thisscript someinputfilename

Do you get correct output ?
If ok, then add those >> tosomefile

Last edited by kshji; 08-04-2009 at 02:22 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

reading variables from a file

Hi, Could anyone help me in understanding what I am missing.. I have a text file with the following info. INFILE=> #Name Variable=<value> #--------------------------------- name1 inargs="-a Filename1.$VAR.csv -f Filename2.$VAR.csv -c File.c" name1 ... (4 Replies)
Discussion started by: ttshell
4 Replies

2. Shell Programming and Scripting

How to parse config variables from external file to shell script

How do i use a config.txt to recursively pass a set of variables to a shell script eg my config.txt looks like this : path=c://dataset/set1 v1= a.bin v2= b.bin path=c://dataset/set2 v1= xy.bin v2= abc.bin .................. and so on . and my testscript : (2 Replies)
Discussion started by: pradsh
2 Replies

3. Shell Programming and Scripting

awk - arithemetic functions with external variables

I'm trying to get awk to do arithmetic functions with external variables and I'm getting an error that I cannot figure out how to fix. Insight would be appreciated money=$1 rate1=$(awk -F"\t " '/'$converting'/{print $3}' convert.table) rate2=$(awk -F"\t"... (2 Replies)
Discussion started by: DKNUCKLES
2 Replies

4. Shell Programming and Scripting

Substituting variables from external files

Hi All, I have the following problem: 1. I have a file containing a line: a,b,d,${d},e,f 2. From within a script I grep the file for '^a,' to get the line 3. I obtain the fourth field as follows: Field4="$( print -r $fileEntry | cut -d, -f4 )" 4. The script exports variables at the... (1 Reply)
Discussion started by: oneillc9
1 Replies

5. Filesystems, Disks and Memory

external USb hard disk reading problem

Hello, I am facing a hard disk drive reading problem since last one month and not able to resolve it. The thing is I purchased external USB hard disk (seagate 40 gb) 2 years back.And uptil now its working perfectly fine. But suddenly one day I am not able to read my data. The problem goes like... (1 Reply)
Discussion started by: albertspade
1 Replies

6. Shell Programming and Scripting

cd command doesn't work through variables

Hi.... cd command is not working when dual string drive/volume name is passed to cd through variables....... For Ex.... y=/Volumes/Backup\ vipin/ cd $y the above command gives error....... anyone with a genuine solution ? (16 Replies)
Discussion started by: vipinchauhan222
16 Replies

7. Shell Programming and Scripting

Help with reading and assigning variables

Hi Gurus, I have a file named log with 2 lines Each line is a file name. eg $ cat log monday tuesday I need to read log and assign each output(filename) to a different variable. The following doesn't work:- while read A B do echo " a is ${A} " echo " b is ${B} " done <... (6 Replies)
Discussion started by: wisdom
6 Replies

8. Shell Programming and Scripting

Reading file from remote system and work on it locally

Hi! I am still fairly new to shell programming, but I have taken an interest to it and want to try some new stuff. I intend to make a shell script (using bash) to read a file on a remote system, then do some work on it on the local system and display it. In the long run I want to have a... (9 Replies)
Discussion started by: aaOzymandias
9 Replies

9. Shell Programming and Scripting

Assign value to external variables from awk

Hello I have a text file with the next pattern Name,Year,Grade1,Grade2,Grade3 Name,Year,Grade1,Grade2,Grade3 Name,Year,Grade1,Grade2,Grade3 I want to assign to external variables the grades using the awk method. After i read the file line by line in order to get the grades i use this ... (2 Replies)
Discussion started by: Spleshmen
2 Replies

10. Shell Programming and Scripting

Reading variables from a file

Hi, I have an issue that hope someone will be able to help me with.... I'm using a while-read loop to read lines from a file that contain variables, and I want the variables substituted, but I can't get it to work - the below example with explain: while read line do echo $line ... (5 Replies)
Discussion started by: AndyG
5 Replies
wxSizerFlags(3erl)					     Erlang Module Definition						wxSizerFlags(3erl)

NAME
wxSizerFlags - See external documentation: wxSizerFlags. DESCRIPTION
See external documentation: wxSizerFlags . DATA TYPES
wxSizerFlags() : An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc or distributed for use on other nodes. EXPORTS
new() -> wxSizerFlags() Equivalent to new([]) . new(Options::[Option]) -> wxSizerFlags() Types Option = {proportion, integer()} See external documentation . align(This::wxSizerFlags(), Alignment::integer()) -> wxSizerFlags() See external documentation . border(This::wxSizerFlags()) -> wxSizerFlags() Equivalent to border(This, []) . border(This::wxSizerFlags(), Options::[Option]) -> wxSizerFlags() Types Option = {direction, integer()} See external documentation . border(This::wxSizerFlags(), Direction::integer(), BorderInPixels::integer()) -> wxSizerFlags() See external documentation . center(This::wxSizerFlags()) -> wxSizerFlags() See external documentation . centre(This::wxSizerFlags()) -> wxSizerFlags() See external documentation . expand(This::wxSizerFlags()) -> wxSizerFlags() See external documentation . left(This::wxSizerFlags()) -> wxSizerFlags() See external documentation . proportion(This::wxSizerFlags(), Proportion::integer()) -> wxSizerFlags() See external documentation . right(This::wxSizerFlags()) -> wxSizerFlags() See external documentation . destroy(This::wxSizerFlags()) -> ok Destroys this object, do not use object again AUTHORS
<> wxErlang 0.98.9 wxSizerFlags(3erl)
All times are GMT -4. The time now is 06:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy