Sponsored Content
Top Forums Shell Programming and Scripting Read Parameters from one file and make a script Post 302835465 by RudiC on Monday 22nd of July 2013 12:33:03 PM
Old 07-22-2013
I'm sure I don't understand your request. The nearest guess I have is: you have a skeleton script with some placeholders that you then fill in/replace with data from another file. That you could do with an awk script... read in the data, and then read & edit the skeleton script.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to make parameters optional?

Hi, I am trying to call a function inside a shell script. Is there a way in which I can make the parameters options in the call? Please help me with this. Thanks!!! (2 Replies)
Discussion started by: neeto
2 Replies

2. Shell Programming and Scripting

(Problem) Script with Parameters file

Hello, this is my first post, and.... obviusly, i have a problem, i have this script: #!/bin/sh . /tmp/variables ... ... DESTINATION=`hostname`_DESTINATION ... and the /tmp/variables has: #!/bin/sh aix53_DESTINATION="/temporal/`hostname`.mksysb.`date +\%d\%m\%y`" ** The problem is... (2 Replies)
Discussion started by: pelado
2 Replies

3. Shell Programming and Scripting

read parameters from file

Hi there, I'm wondering how I can run a script that would loop and launch a command that would take as parameter every line in a file one by one. For example, say I want to remove a list of files: ~$ cat filestoremove foo bar ~$ cat myscript for file in filestoremove; do rm $file... (2 Replies)
Discussion started by: chebarbudo
2 Replies

4. Shell Programming and Scripting

Read parameters from a file

Hello all, I need to extract parameters from a file. For example, I have a file file.dat as par1 val1 par2 val2 par3 val3 I need to extract this and store val1 in par1 variable and so on. Please help. Thanks for your support. (2 Replies)
Discussion started by: cheerful
2 Replies

5. Solaris

Which file is read by kernel to set its default system kernel parameters values?

Hi gurus Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value Is it /dev/kmem file or something... (1 Reply)
Discussion started by: girish.batra
1 Replies

6. Shell Programming and Scripting

Calling sql file from shell script with parameters.

Hi, I am calling a sql file script.sql from shell script and passing few parameters also as shown below: sqlplus -S id/password @script.sql $param1 $param2 Now,In sql file I have to create a extract text file after querying oracle tables based on the parameters passed(param1,param2) as... (7 Replies)
Discussion started by: anil029
7 Replies

7. Shell Programming and Scripting

Loop to read parameters and stop

Hey guys, How do I make a loop that reads all the parameters en then stop when there are no parameters anymore ? Something that gives an output like this: ./Script.sh parameter1 parameter2 parameter3 parameter = parameter1 parameter = parameter2 parameter = parameter3 Thanks a lot,... (5 Replies)
Discussion started by: Miki1579
5 Replies

8. Shell Programming and Scripting

Shell Script to Dynamically Extract file content based on Parameters from a pdf file

Hi Guru's, I am new to shell scripting. I have a unique requirement: The system generates a single pdf(/tmp/ABC.pdf) file with Invoices for Multiple Customers, the format is something like this: Page1 >> Customer 1 >>Invoice1 + invoice 2 >> Page1 end Page2 >> Customer 2 >>Invoice 3 + Invoice 4... (3 Replies)
Discussion started by: DIps
3 Replies

9. Shell Programming and Scripting

Read csv file, convert the data and make one text file in UNIX shell scripting

I have input data looks like this which is a part of a csv file 7,1265,76548,"0102:04" 8,1266,76545,"0112:04" I need to make the output data should look like this and the output data will be part of text file: 7|1265000 |7654899 |A| 8|12660000 |76545999 |B| The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies

10. UNIX for Beginners Questions & Answers

How to make a loop to read the input from a file part by part?

Hi All, We've a VDI infrastructure in AWS (AWS workspaces) and we're planning to automate the process of provisioning workspaces. Instead of going to GUI console, and launching workspaces by selecting individual users is little time consuming. Thus, I want to create them in bunches from AWS CLI... (6 Replies)
Discussion started by: arun_adm
6 Replies
icmstart(1)						starts icmbuild program maintenance					       icmstart(1)

NAME
icmstart - A startup script for icmbuild program maintenance SYNOPSIS
icmstart [Options] top-dir [program|library] DESCRIPTION
The icmstart script is a generic script that can be used to start program maintenance using icmake(1) and icmbuild(1). Icmstart creates an initial directory top-dir and installs the files CLASSES, VERSION and icmconf below top-dir. A second argument `program' or `library' may be specified as the default mode of operation of the icmbuild(1) script. Skeleton files for the main directory and subdirectories, by default listed in the file /etc/icmake/icmstart.rc, may be installed as well (cf. icmstart.rc(7)). After changing to the directory created by icmstart the icmbuild(1) script may be used for program maintenance. OPTIONS
Icmstart may be called with the following options, which (if specified) must be the first arguments of icmstart: o -c confpath Use the configuration files (icmstart.rc, AUTHOR, YEARS and VERSION) if found in `confpath' rather than in ~/.icmake and/or /etc/icmake/. Once a file is found it is used allowing partial overrides of the default files provided by icmake(1). o -d Do not execute any commands, but show the commands that would have been executed on the standard output. o -I Do not install files. o -r Unconditionally replace existing files. If -r is not provided icmstart will ask the user to confirm that an existing file must be overwritten. If a skeleton specification refers to a directory, the full directory and its subdirectories will be replaced. o -s skeleton-path By default skeleton files are listed in the skeleton resource file /usr/share/icmake/icmstart.rc. Alternatively, the skeleton resource file may be specified by the ICM environment variable, which -in turn- may be overruled by the path specified with the -s option. The skeleton path may be specified as a full file-path or as a directory, in which case the skeleton resource file is assumed to be icmstart.rc (see below at SKELETON FILES). Since icmstart uses cp to install files, cp must be available when icm- start should install skeleton files. SKELETON FILES
Skeleton resource files may contain comment (empty lines and lines beginning with the hash-mark (#)) which is ignored, and should otherwise contain specifications of resource s to install. The default resource file is /etc/icmake/icmstart.rc, contains CLASSES P main.cc P main.ih P usage.cc P version.cc P ? scanner P ? parser This file is overruled by ~/.icmake/icmstart.rc. See icmstart.rc(7) for details about the format of the icmstart.rc file. CONFIGURATION FILES
The configuration files icmstart.rc, AUTHOR, YEARS and VERSION are recognized and processed by icmstart. If the -c option was specified configuration files found in the path specified at this option are used. If not specified or if a file isn't found then the path ~/icmake is inspected. If a configuration file isn't found in ~/icmake either, configuration files in /etc/icmake are used. Configuration files are not required for the proper operation of icmstart. When absent icmstart performs the following default actions: o If the file AUTHOR does not exist icmstart uses #define AUTHOR "". When the file AUTHOR is defined in a configuration path it should have one line, defining the author of the program. E.g., #define AUTHOR "Frank B. Brokken <f.b.brokken@rug.nl>" o If the file VERSION does not exist icmstart uses #define VERSION "0.00.00". When the file VERSION is defined in a configuration path it should have one line, defining the program's initial version. E.g., #define VERSION "1.00.00" o If the file YEAR does not exist icmstart uses #define YEARS "yyyy" where yyyy is the current year. When the file YEAR is defined in a configuration path it should have one line, defining the program's initial release year. E.g., #define YEARS "2012" Plural is used here since a release year usually becomes a range of years after some time, as with Icmake's years specification: #define YEARS "1992-2012" o If the file icmstart.rc does not exist (or is empty) icmstart will not install any of the files normally found in icmstart.rc, but the initial project directory, icmconf and VERSION are installed. ) FILES
The mentioned paths are sugestive only and may be installation dependent: o /usr/share/icmake/icmconf Example of a icmbuild configuration file; o /usr/share/icmake/CLASSES Example of a icmbuild CLASSES file. o /usr/share/icmake/icmstart.rc Default skeleton resource file. SEE ALSO
icmake(1), icmbuild(1), icmconf(7), icmstart.rc(7). BUGS
None reported COPYRIGHT
This is free software, distributed under the terms of the GNU General Public License (GPL). AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl). icmake.7.18.00.tar.gz 1992-2012 icmstart(1)
All times are GMT -4. The time now is 02:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy