Sponsored Content
Top Forums Shell Programming and Scripting passing in arguments into a file using a loop Post 302184738 by eltinator on Saturday 12th of April 2008 11:31:45 PM
Old 04-13-2008
hey, thanks for the response and sorry for the confusion. But basically I'll give an example of what I wanted to do. I have 2 files that look like...

File 1:
Item1
Item2
Item3

File 2:
<a href= ...>
$1
<more html stuff>
$2

So basically the $1 and $2 I want them to be replaced by Item1 and Item2 and so on. Not sure if this is possible or not. I'm not exactly sure how to pass in arguments like that into a file but Im starting to understand the while loop in shell now
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

passing arguments

I'm trying to pass a filename, or all the files in the current directory to the ls command with a script. Unsuccessful so far, here are a few of my attempts: #!/bin/ksh read fname #if (( $# > 0 )); then $fname | ls -l #fi this produces a long listing of all the files in my current... (4 Replies)
Discussion started by: jpprial
4 Replies

2. UNIX for Dummies Questions & Answers

passing strings as arguments

Is it possible to pass a string as an argument from the command line? I know I can pass a word in but can I put a line of text in with spaces and fullstops or do I just put it in brackets or quotes so the compiler can differinate between the first argument and the second. (1 Reply)
Discussion started by: iago
1 Replies

3. Solaris

Passing arguments to a shell script from file while scheduling in cron

Hi, I have a shell script Scp_1.sh for which I have to pass 2 arguments to run. I have another script Scp_2.sh which in turns calls script Scp_1.sh inside. How do I make Scp_1.sh script to read arguments automatically from a file, while running Scp_2.sh? -- Weblogic Support (4 Replies)
Discussion started by: weblogicsupport
4 Replies

4. Shell Programming and Scripting

Passing Arguments-Help

Hi, I have a script which adds the user credentials to an ldap server. Im passing the variables as below.. /path/my_script $uname $pwd $environ ${deposit} If i enter some special characters like ';' in $pwd, script returns an error which is set to display if the user enters... (5 Replies)
Discussion started by: Tuxidow
5 Replies

5. Shell Programming and Scripting

passing arguments

Hi I have a script to which I pass multiple arguments, for example lets say the script name is "abc". I run the script like ./abc def /file <directory location> In the above "def" is the first argument and "/file" is the second argument. I expect <directory location> that is passed after... (4 Replies)
Discussion started by: zmfcat1
4 Replies

6. UNIX for Dummies Questions & Answers

Passing arguments

I need to pass arguments to a shell script.My batch is calling some java program. ################# x=$1 y=$2 java -classpath program ################### if first parameter and second parameter is null then java -classpath program if first parameter is not null and second parameter is... (3 Replies)
Discussion started by: mnjx
3 Replies

7. Shell Programming and Scripting

Passing arguments at runtime

Hi .. Can any one please tell how to pass argument to shell script at runtime? I want to implement funcnality just like bc, where we can provide input while script is running and can be used later in the same script. Thanks in advance... (1 Reply)
Discussion started by: kunjalhg
1 Replies

8. Shell Programming and Scripting

Reading a string and passing passing arguments to a while loop

I have an for loop that reads the following file cat param.cfg val1:env1:opt1 val2:env2:opt2 val3:env3:opt3 val4:env4:opt4 . . The for loop extracts the each line of the file so that at any one point, the value of i is val1:env1:opt1 etc... I would like to extract each... (19 Replies)
Discussion started by: goddevil
19 Replies

9. UNIX for Dummies Questions & Answers

passing command arguments from a file?

Hi Im trying to run zip shell command from an Oracle job, but this has limitations. This should take a few of explanaition,.. Oracle allows me to execute a command and then I can set up a fixed number of arguments. Ex: (summarizing in something like..): JOB DEFINITION job_name: test... (4 Replies)
Discussion started by: vegatripy
4 Replies

10. UNIX for Beginners Questions & Answers

Passing Arguments to shell script from file is not working as expected.

Hi All, I have below simple shell script in cloudera quick start vm cenos 6 which copy file from source to destination. # file_copy.sh source_dir = ${source_dir} target = ${target_dir} cp source_dir target and my parameter file is like below #parameter_file.txt source_dir =... (4 Replies)
Discussion started by: Narasimhasss
4 Replies
wxListCtrl(3erl)					     Erlang Module Definition						  wxListCtrl(3erl)

NAME
wxListCtrl - See external documentation: wxListCtrl. DESCRIPTION
See external documentation: wxListCtrl . This class is derived (and can use functions) from: wxControl wxWindow wxEvtHandler DATA TYPES
wxListCtrl() : 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() -> wxListCtrl() See external documentation . new(Parent::wxWindow() (see module wxWindow)) -> wxListCtrl() Equivalent to new(Parent, []) . new(Parent::wxWindow() (see module wxWindow), Options::[Option]) -> wxListCtrl() Types Option = {winid, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx() (see module wx)} See external documentation . arrange(This::wxListCtrl()) -> bool() Equivalent to arrange(This, []) . arrange(This::wxListCtrl(), Options::[Option]) -> bool() Types Option = {flag, integer()} See external documentation . assignImageList(This::wxListCtrl(), ImageList::wxImageList() (see module wxImageList), Which::integer()) -> ok See external documentation . clearAll(This::wxListCtrl()) -> ok See external documentation . create(This::wxListCtrl(), Parent::wxWindow() (see module wxWindow)) -> bool() Equivalent to create(This, Parent, []) . create(This::wxListCtrl(), Parent::wxWindow() (see module wxWindow), Options::[Option]) -> bool() Types Option = {winid, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx() (see module wx)} See external documentation . deleteAllItems(This::wxListCtrl()) -> bool() See external documentation . deleteColumn(This::wxListCtrl(), Col::integer()) -> bool() See external documentation . deleteItem(This::wxListCtrl(), Item::integer()) -> bool() See external documentation . editLabel(This::wxListCtrl(), Item::integer()) -> wxTextCtrl() (see module wxTextCtrl) See external documentation . ensureVisible(This::wxListCtrl(), Item::integer()) -> bool() See external documentation . findItem(This::wxListCtrl(), Start::integer(), Str::string()) -> integer() Equivalent to findItem(This, Start, Str, []) . findItem(This::wxListCtrl(), Start::integer(), X::string() | term(), X::term() | integer()) -> integer() See external documentation . Alternatives: findItem(This::wxListCtrl(), Start::integer(), Str::string(), [Option]) -> integer() Option = {partial, bool()} findItem(This::wxListCtrl(), Start::integer(), Pt::{X::integer(),Y::integer()}, Direction::integer()) -> integer() getColumn(This::wxListCtrl(), Col::integer(), Item::wxListItem() (see module wxListItem)) -> bool() See external documentation . getColumnCount(This::wxListCtrl()) -> integer() See external documentation . getColumnWidth(This::wxListCtrl(), Col::integer()) -> integer() See external documentation . getCountPerPage(This::wxListCtrl()) -> integer() See external documentation . getEditControl(This::wxListCtrl()) -> wxTextCtrl() (see module wxTextCtrl) See external documentation . getImageList(This::wxListCtrl(), Which::integer()) -> wxImageList() (see module wxImageList) See external documentation . getItem(This::wxListCtrl(), Info::wxListItem() (see module wxListItem)) -> bool() See external documentation . getItemBackgroundColour(This::wxListCtrl(), Item::integer()) -> colour() (see module wx) See external documentation . getItemCount(This::wxListCtrl()) -> integer() See external documentation . getItemData(This::wxListCtrl(), Item::integer()) -> integer() See external documentation . getItemFont(This::wxListCtrl(), Item::integer()) -> wxFont() (see module wxFont) See external documentation . getItemPosition(This::wxListCtrl(), Item::integer(), Pos::{X::integer(), Y::integer()}) -> bool() See external documentation . getItemRect(This::wxListCtrl(), Item::integer(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}) -> bool() Equivalent to getItemRect(This, Item, Rect, []) . getItemRect(This::wxListCtrl(), Item::integer(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}, Options::[Option]) -> bool() Types Option = {code, integer()} See external documentation . getItemSpacing(This::wxListCtrl()) -> {W::integer(), H::integer()} See external documentation . getItemState(This::wxListCtrl(), Item::integer(), StateMask::integer()) -> integer() See external documentation . getItemText(This::wxListCtrl(), Item::integer()) -> string() See external documentation . getItemTextColour(This::wxListCtrl(), Item::integer()) -> colour() (see module wx) See external documentation . getNextItem(This::wxListCtrl(), Item::integer()) -> integer() Equivalent to getNextItem(This, Item, []) . getNextItem(This::wxListCtrl(), Item::integer(), Options::[Option]) -> integer() Types Option = {geometry, integer()} | {state, integer()} See external documentation . getSelectedItemCount(This::wxListCtrl()) -> integer() See external documentation . getTextColour(This::wxListCtrl()) -> colour() (see module wx) See external documentation . getTopItem(This::wxListCtrl()) -> integer() See external documentation . getViewRect(This::wxListCtrl()) -> {X::integer(), Y::integer(), W::integer(), H::integer()} See external documentation . hitTest(This::wxListCtrl(), Point::{X::integer(), Y::integer()}) -> {integer(), Flags::integer()} See external documentation . insertColumn(This::wxListCtrl(), Col::integer(), X::string() | term()) -> integer() See external documentation . Alternatives: insertColumn(This::wxListCtrl(), Col::integer(), Heading::string()) -> insertColumn(This,Col,Heading, []) insertColumn(This::wxListCtrl(), Col::integer(), Info::wxListItem:wxListItem()) -> integer() insertColumn(This::wxListCtrl(), Col::integer(), Heading::string(), Options::[Option]) -> integer() Types Option = {format, integer()} | {width, integer()} See external documentation . insertItem(This::wxListCtrl(), Info::wxListItem() (see module wxListItem)) -> integer() See external documentation . insertItem(This::wxListCtrl(), Index::integer(), X::integer() | string()) -> integer() See external documentation . Alternatives: insertItem(This::wxListCtrl(), Index::integer(), ImageIndex::integer()) -> integer() insertItem(This::wxListCtrl(), Index::integer(), Label::string()) -> integer() insertItem(This::wxListCtrl(), Index::integer(), Label::string(), ImageIndex::integer()) -> integer() See external documentation . refreshItem(This::wxListCtrl(), Item::integer()) -> ok See external documentation . refreshItems(This::wxListCtrl(), ItemFrom::integer(), ItemTo::integer()) -> ok See external documentation . scrollList(This::wxListCtrl(), Dx::integer(), Dy::integer()) -> bool() See external documentation . setBackgroundColour(This::wxListCtrl(), Colour::colour() (see module wx)) -> bool() See external documentation . setColumn(This::wxListCtrl(), Col::integer(), Item::wxListItem() (see module wxListItem)) -> bool() See external documentation . setColumnWidth(This::wxListCtrl(), Col::integer(), Width::integer()) -> bool() See external documentation . setImageList(This::wxListCtrl(), ImageList::wxImageList() (see module wxImageList), Which::integer()) -> ok See external documentation . setItem(This::wxListCtrl(), Info::wxListItem() (see module wxListItem)) -> bool() See external documentation . setItem(This::wxListCtrl(), Index::integer(), Col::integer(), Label::string()) -> integer() Equivalent to setItem(This, Index, Col, Label, []) . setItem(This::wxListCtrl(), Index::integer(), Col::integer(), Label::string(), Options::[Option]) -> integer() Types Option = {imageId, integer()} See external documentation . setItemBackgroundColour(This::wxListCtrl(), Item::integer(), Col::colour() (see module wx)) -> ok See external documentation . setItemCount(This::wxListCtrl(), Count::integer()) -> ok See external documentation . setItemData(This::wxListCtrl(), Item::integer(), Data::integer()) -> bool() See external documentation . setItemFont(This::wxListCtrl(), Item::integer(), F::wxFont() (see module wxFont)) -> ok See external documentation . setItemImage(This::wxListCtrl(), Item::integer(), Image::integer()) -> bool() Equivalent to setItemImage(This, Item, Image, []) . setItemImage(This::wxListCtrl(), Item::integer(), Image::integer(), Options::[Option]) -> bool() Types Option = {selImage, integer()} See external documentation . setItemColumnImage(This::wxListCtrl(), Item::integer(), Column::integer(), Image::integer()) -> bool() See external documentation . setItemPosition(This::wxListCtrl(), Item::integer(), Pos::{X::integer(), Y::integer()}) -> bool() See external documentation . setItemState(This::wxListCtrl(), Item::integer(), State::integer(), StateMask::integer()) -> bool() See external documentation . setItemText(This::wxListCtrl(), Item::integer(), Str::string()) -> ok See external documentation . setItemTextColour(This::wxListCtrl(), Item::integer(), Col::colour() (see module wx)) -> ok See external documentation . setSingleStyle(This::wxListCtrl(), Style::integer()) -> ok Equivalent to setSingleStyle(This, Style, []) . setSingleStyle(This::wxListCtrl(), Style::integer(), Options::[Option]) -> ok Types Option = {add, bool()} See external documentation . setTextColour(This::wxListCtrl(), Col::colour() (see module wx)) -> ok See external documentation . setWindowStyleFlag(This::wxListCtrl(), Style::integer()) -> ok See external documentation . sortItems(This::wxListCtrl(), SortCallBack::function()) -> boolean() Sort the items in the list control SortCalBack(Item1,Item2) -> integer() SortCallBack receives the client data associated with two items to compare, and should return 0 if the items are equal, a negative value if the first item is less than the second one and a positive value if the first item is greater than the second one. NOTE: The callback may not call other processes. destroy(This::wxListCtrl()) -> ok Destroys this object, do not use object again AUTHORS
<> wxErlang 0.98.9 wxListCtrl(3erl)
All times are GMT -4. The time now is 10:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy