Sponsored Content
Full Discussion: external function in awk
Top Forums Shell Programming and Scripting external function in awk Post 302157205 by kamel.seg on Thursday 10th of January 2008 11:00:46 AM
Old 01-10-2008
awk is not shell, can i call the function through the callers system()
function??

regards
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk help (external variable)

i need help with an awk question. i am looking to have an external variable be defined outside of awk but used in awk. so if we have fields $1, $2, $3 so on and so forth, i would like to be able to dictate what field is being printed by something like $. so if i had a counter called test, make it 3... (8 Replies)
Discussion started by: pupp
8 Replies

2. Shell Programming and Scripting

Calling external function in a shell

hi guys, how r u??? please I need you, help me please. I have a shell, in this shell i have this function and another code lines, this function is getting date one day back. the function is in the same shell (FILE 1) Now I need put this function in another file (FILE 2) and calling... (4 Replies)
Discussion started by: acevallo
4 Replies

3. Shell Programming and Scripting

Can you ref/link/import a function from external ksh script?

Hey guys, I'm not the best AIX scripter about but I can flounder my way thru them to create what I need. Anyhow, I have various scripts that perform various actions and processes. I was tasked to come up with a single form of logging that all the scripts could implement so that the output... (2 Replies)
Discussion started by: isawme
2 Replies

4. Shell Programming and Scripting

How to Call external function in .C or .So (Shared Object)

Hi, Anybody know any way to Call with Shell Script an external function wrote in .C or .So (Shared Object) on AIX enviroment and returning parameters of .C or .SO to Shell Script? Tks!! (6 Replies)
Discussion started by: rdgsantos
6 Replies

5. UNIX for Dummies Questions & Answers

Call external function

Is it possible to call a function from another script? Thanks (6 Replies)
Discussion started by: chrisjones
6 Replies

6. Shell Programming and Scripting

Help needed with awk external variable

I'm trying to get the universities result data into different file, where the $9 contains unversity field and field7,4 & 5 contains the keys to sort the students by marks. How to use uni variable to match against $9 inside awk? c=0 for uni in `cat /tmp/global_rank| awk -F ',' '{print... (1 Reply)
Discussion started by: InduInduIndu
1 Replies

7. Shell Programming and Scripting

Problem in passing date to external function from perl script.

my $sysdate = strftime('%Y-%m-%d', localtime ); biDeriveByDate('Table_Str',$sysdate,\@lIndx,\@lResVals) In a perl script, when I'm trying to pass $sysdate to some external function it's not working since $sysdate is passed as a string mentioned above but my function is expecting a date value... (1 Reply)
Discussion started by: Devesh5683
1 Replies

8. Shell Programming and Scripting

Passing external variable to awk

Hi, I am trying to write a bash script in which I need to pass a external variable to the awk program. I tired using -v but it not accepting the value. Here is my sample code. #!/usr/bin/bash ###################################################################################### ####... (5 Replies)
Discussion started by: jpkumar10
5 Replies

9. Shell Programming and Scripting

awk - Why can't value of awk variables be passed to external functions ?

I wrote a very simple script to understand how to call user-defined functions from within awk after reading this post. function my_func_local { echo "In func $1" } export -f my_func_local echo $1 | awk -F"/" '{for (k=1;k<=NF;k++) { if ($k == "a" ) { system("my_local_func $k") } else{... (19 Replies)
Discussion started by: sreyan32
19 Replies

10. Shell Programming and Scripting

Need help on awk for printing the function name inside each function

Hi, I am having script which contains many functions. Need to print each function name at the starting of the function. Like below, functionname() { echo "functionname" commands.... } I've tried like below, func=`grep "()" scriptname | cut -d "(" -f1` for i in $func do nawk -v... (4 Replies)
Discussion started by: Sumanthsv
4 Replies
wxKeyEvent(3erl)					     Erlang Module Definition						  wxKeyEvent(3erl)

NAME
wxKeyEvent - See external documentation: wxKeyEvent. DESCRIPTION
See external documentation: wxKeyEvent . Use wxEvtHandler:connect/3 with EventType: : char , char_hook , key_down , key_up See also the message variant #wxKey{ } event record type. This class is derived (and can use functions) from: wxEvent DATA TYPES
wxKeyEvent() : 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
altDown(This::wxKeyEvent()) -> bool() See external documentation . cmdDown(This::wxKeyEvent()) -> bool() See external documentation . controlDown(This::wxKeyEvent()) -> bool() See external documentation . getKeyCode(This::wxKeyEvent()) -> integer() See external documentation . getModifiers(This::wxKeyEvent()) -> integer() See external documentation . getPosition(This::wxKeyEvent()) -> {X::integer(), Y::integer()} See external documentation . getRawKeyCode(This::wxKeyEvent()) -> integer() See external documentation . getRawKeyFlags(This::wxKeyEvent()) -> integer() See external documentation . getUnicodeKey(This::wxKeyEvent()) -> integer() See external documentation . getX(This::wxKeyEvent()) -> integer() See external documentation . getY(This::wxKeyEvent()) -> integer() See external documentation . hasModifiers(This::wxKeyEvent()) -> bool() See external documentation . metaDown(This::wxKeyEvent()) -> bool() See external documentation . shiftDown(This::wxKeyEvent()) -> bool() See external documentation . AUTHORS
<> wxErlang 0.98.9 wxKeyEvent(3erl)
All times are GMT -4. The time now is 07:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy