Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Passing Global Shell variables to awk Post 302847197 by baanprog on Monday 26th of August 2013 12:23:17 PM
Old 08-26-2013
Corona688 you could be little gentler in your replies...

I did remove the $ and still it did not work so I kept it back

now I think I will try the new way....thanks all to your replies...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Passing shell variables to awk program..

Hello, Can we pass shell variables like $PATH etc. to a awk program part for example, awk ' { fieldValue=$PATH .... }' file (1 Reply)
Discussion started by: Vishnu
1 Replies

2. Shell Programming and Scripting

Passing awk Variables

I am trying to pass the results from a variable gathered from awk, however when I echo the 'PARSE' and 'SUB', the response is blank. This is my command. awk -F= '/Unit/''{ PARSE=substr($2,1,5) ; SUB=substr($2,1,1) }' inputfile.lst Is this a kind of valid attempt or am I obligated to declare... (3 Replies)
Discussion started by: gozer13
3 Replies

3. UNIX for Dummies Questions & Answers

How to declare global variables for shell script

Hi, I do have some variables accessed in more than one script. I want to have those variables in a command file anduse them. Something like a header file that we use in C programs. I dont want to set them as environment variables. Is there any other option, like header file in scripting ?? ... (2 Replies)
Discussion started by: risshanth
2 Replies

4. Solaris

How to access ENV variables of non global zones in global zone???

Hi Guys, My requirement is I have file called /opt/orahome/.profile in non global zone. PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:. export PATH PS1="\${ORACLE_SID}:`hostname`:\$PWD$ " export PS1 EDITOR=vi export EDITOR ENV=/opt/orahome/.kshrc export ENV... (1 Reply)
Discussion started by: vijaysachin
1 Replies

5. UNIX for Dummies Questions & Answers

Passing Shell Variables to an awk command

Hello, I have two files File1 & File2. File1 76 135 136 200 250 345 .... File2 1 24 1 35 1 36 1 72 .... I want to get all the values form File2 corresponding to the range in File 1 and feed it to a program. Is the code below right? Can I pass shell variables to awk in this... (2 Replies)
Discussion started by: Gussifinknottle
2 Replies

6. Shell Programming and Scripting

Passing awk variables to shell

Hi. I need to parse file and assign some values to variables, right now i do like below MYHOMEDIR=`awk '/Home/ {print $NF}' output.txt` MYSHELL=`awk '/Shell/ {print $NF}' output.txt` PRGRP=`awk '/Primary/ {print $NF}' output.txt` SECGRP=`awk '/Second/ {print $NF}' output.txt` In this... (10 Replies)
Discussion started by: urello
10 Replies

7. Shell Programming and Scripting

ksh passing to awk multiple dyanamic variables awk -v

Using ksh to call a function which has awk script embedded. It parses a long two element list file, filled with text numbers (I want column 2, beginning no sooner than line 45, that's the only known thing) . It's unknown where to start or end the data collection, dynamic variables will be used. ... (1 Reply)
Discussion started by: highnthemnts
1 Replies

8. Shell Programming and Scripting

Problem in Global variables in shell script

hi, i have a shell script which calls another shell which in turn calls another shell script. Main_shell_script.sh echo "In Main_shell_script.sh" FILENAME="original.txt" # LINE 1 DST_FILENAME=$FILENAME # LINE 2 echo "FILENAME = {$FILENAME}" echo "DST_FILENAME =... (3 Replies)
Discussion started by: Little
3 Replies

9. Shell Programming and Scripting

Passing awk variables to bash variables

Trying to do so echo "111:222:333" |awk -F: '{system("export TESTO=" $2)}'But it doesn't work (2 Replies)
Discussion started by: urello
2 Replies

10. Shell Programming and Scripting

Awk: passing shell variables through and extracting text

Hello, new to the forums and to awk. Glad to be here. :o I want to pass two shell (#!/bin/sh) variables through to awk and use them. They will determine where to start and stop text extraction. The code with the variables hard-coded in awk works fine; the same code, but with the shell... (7 Replies)
Discussion started by: bedtime
7 Replies
PERFUSED(8)						    BSD System Manager's Manual 					       PERFUSED(8)

NAME
perfused -- PUFFS Enabled Relay to FUSE Daemon SYNOPSIS
perfused [-fs] [-d types] [-i -fd] DESCRIPTION
perfused is a userland daemon implementing the FUSE kernel level API. It creates a /dev/fuse socket for FUSE file system daemons to connect to. perfused takes care of mounting the file system using puffs(3). When the kernel sends a puffs(3) operation for the mounted file system, perfused will translate it into a FUSE request, and will send it to the file system daemon through /dev/fuse. The FUSE reply will be converted back into a puffs(3) reply and will be relayed to the kernel. FUSE file system daemons must be modified so that they request perfused to perform the mount(2) system call instead of doing it on their own. This is done by replacing mount(2) and the open(2) calls for /dev/fuse with perfuse_mount() and perfuse_open(), respectively, in their sources. libperfuse(3) must be used at link time. Most FUSE file system daemons use libfuse and will work unmodified, provided the modifi- cation is done in libfuse itself . The following options are available: -d types Print additional debug information. types is a comma-separated list of information types to print: puffs Display PUFFS requests and replies. fuse Display FUSE requests and replies. dump Dump content of FUSE frames. fh Display file handle activity. reclaim Display reclaim activity. readdir Display readdir activity. requeue Display requeue activity. sync Display dirty flags and sync operations. -f Do not fork, but stay in the foreground. -i fd Do not open /dev/fuse but use the socket available from the file descriptor fd. This is used when perfused is started from libperfuse(3). -s Enable debug output only when receiving SIGINFO. SIGNALS
SIGINFO If the -s flag was used, toggle debug output. Do nothing otherwise. SIGUSR1 Toggle FUSE operation dump on and off. When toggling off, the trace is is stored in /var/run/perfuse-xxx.trace (xxx is the filesys- tem mount point). ERRORS
The program logs to the syslog daemon as facility ``daemon''. For detailed debugging use the -d (debug) option. SEE ALSO
mount(2), perfuse_mount(3), puffs(4) AUTHORS
The program was written by Emmanuel Dreyfus <manu@NetBSD.org>. BUGS
When perfused runs in the foreground (using the -f flag), some processes using the FUSE file system will sometime hang on 'uvn_fp2'. BSD
January 29, 2012 BSD
All times are GMT -4. The time now is 11:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy