Sponsored Content
Top Forums Shell Programming and Scripting Passing awk variables to shell Post 302603357 by jayan_jay on Wednesday 29th of February 2012 08:36:04 PM
Old 02-29-2012
Provide some input file contents and expected output ..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Passing Variables to AWK

Does anybody have an explanation for the following: The following scripts runs fine on IRIX64 6.5 but has bugs on Solaris 8. #! /bin/sh echo run only on an SGI machine echo type in linenumber read j echo value read value awk -f rmspass2 level=$value $j'step1.mlf' When the script is... (5 Replies)
Discussion started by: AreaMan
5 Replies

2. 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

3. Shell Programming and Scripting

Passing Variables to Awk

Hi I have a unix shell script with an awk statement. I would like to print some of the fields of an input file. However, I would like to print them dynamically, ie by passing the literal $1 $3 into the script to define the output. I have tried the following: variable1='$1' awk... (2 Replies)
Discussion started by: Bab00shka
2 Replies

4. 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

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

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

7. Shell Programming and Scripting

Passing variables into AWK

I'm trying to use awk to write new entries to a hosts file if they don't exist. I need to do so depending on the type of system I have. Below is what I have, but it isn't working. awk -v myip1=$IP1 myip2=$IP2 myhost1=$HOST1 myhost2=$HOST2' BEGIN { mqhost1=0; mqhost2=0; stap1=0; stap2=0; } ... (4 Replies)
Discussion started by: Boomn4x4
4 Replies

8. UNIX for Dummies Questions & Answers

Passing Global Shell variables to awk

Hi All, Iam trying to pass global shell variables and is not working Main script is like below CYEAR=`date +"%y"` CFYEAR=`date +"%Y"` CMONTH=`date +"%m"` if then PMONTH=12 PYEAR=`expr $CYEAR - 1` PFYEAR=`expr $CFYEAR - 1` else PMONTH=`expr... (6 Replies)
Discussion started by: baanprog
6 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
MUSE(1) 						      General Commands Manual							   MUSE(1)

NAME
MusE - MIDI/Audio Sequencer SYNOPSIS
muse [ options ] [ file ] DESCRIPTION
MusE is a MIDI/Audio sequencer that can also record and edit sound files, apply effects and filters from an intuitive graphical interface. It is based on the Linux-specific ALSA interface for audio i/o. The Jack Audio Connection Kit is used for routing. LADSPA-compliant plug- ins allow to extend the list of available effects. The optional file argument denotes a project file in MusE-internal format that is loaded on startup. Project files can also be loaded later on through the graphical menu. OPTIONS
-a Use a dummy audio backend instead of real audio i/o. -d Start in debugging mode without real-time threads. -D Enable verbose debugging messages. -h Display usage information. -I Do not attempt to load any DSSI plugins. -l xx Force locale to the language/country code xx. -L Do not se LASH. -m Provide debugging messages about midi input events. -M Provide debugging messages about midi output events. -p Do not attempt to load any LADSPA plugins. -P n Set scheduling priority of real-time threads to n (Dummy only, default 40. Else fixed by Jack.). -s Provide debugging messages about sync events. -v Print version information. -V Do not attempt to load any VST plugins. -y Enable Python control support. -Y n Force midi real time priority to n. SEE ALSO
MusE provides an integrated help system in the graphical user interface. AUTHORS
MusE was written by Werner Schweer, Robert Jonnson, Mathias Lundgren, Frank Neumann, Joachim Schiele, Tim Donnelly, Nil Geisweiller, Orcan Ogetbil and others. This manual page was originally written by Daniel Kobras <kobras@debian.org> for the Debian GNU/Linux system (but may be used by others). It was updated later by Orcan Ogetbil for MusE2. December 2010 MUSE(1)
All times are GMT -4. The time now is 07:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy