Sponsored Content
Full Discussion: shell script Variable
Top Forums Shell Programming and Scripting shell script Variable Post 302222515 by arvindng on Thursday 7th of August 2008 01:39:48 AM
Old 08-07-2008
Its Working. Thank U Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to Pass variable to shell Script

Hi , i am beginner to Unix, I have one small script which execute java programme,it has java command input output structure . Right now i have given Input output structure manually that is on same directory, now how can i pass that by commandline #!/bin/sh java Classjava input.txt... (5 Replies)
Discussion started by: sam70
5 Replies

2. Shell Programming and Scripting

transfer a variable in a shell script?

Hey guys, seems I can't transfer the $ip into gawk in the following bash script, where the problem is? #!/bin/bash while read ip do gawk '$1~"$ip"' /tmp/source done < /tmp/ip ++ cat /tmp/ip 192.16.1.1|192.168.1.2|192.168.1.3 10.1.1.1|10.1.1.2 10.8.1.0|10.8.1.1|10.8.1.2 -- cat... (11 Replies)
Discussion started by: fedora
11 Replies

3. Shell Programming and Scripting

How to return a value of a variable from shell script to perl script

HI , Is there any way to return a value of variable from shell to perl script. Code: === Perl file my $diff1=system("sh diff.sh"); my $diff2=system("sh diff1.sh"); I need exit status of below commands i.e 0 and 1 respectively. Since in both the cases diff is working so system... (3 Replies)
Discussion started by: srkelect
3 Replies

4. Shell Programming and Scripting

Help Needed with Shell Script Variable

ok, so, i want to do something like this where i store results of codings in a variable, but when i run it, it doesn' twork: example HOT=34 BOSS=`john=133 if ; then ADDIT=`expr 8 + 6` case $HOT in 34) expr 4 + 5 ;; esac fi` it seems shell scripts have a problem with having ``... (2 Replies)
Discussion started by: SkySmart
2 Replies

5. Shell Programming and Scripting

assign awk's variable to shell script's variable?

Dear All, we have a command output which looks like : Total 200 queues in 30000 Kbytes and we're going to get "200" and "30000" for further process. currently, i'm using : numA=echo $OUTPUT | awk '{print $2}' numB=echo $OUTPUT | awk '{print $5}' my question is : can I use just one... (4 Replies)
Discussion started by: tiger2000
4 Replies

6. Shell Programming and Scripting

Passing variable from shell script to python script

I have a shell script main.sh which inturn call the python script ofdm.py, I want to pass two variables from shell script to python script for its execution. How do i achieve this ????? Eg: main.sh a=3 b=3; c= a+b exec python ofdm.py ofdm.py d=c+a Thanks in Anticipation (4 Replies)
Discussion started by: shashi792
4 Replies

7. Shell Programming and Scripting

How to read * in a variable in shell script??

hi, i have a text file which conatins some fields delimited by space. some fields contains * as entries. cron_file.txt 0 * * * * 0 3 * * * i want to read each line 1 by 1 and store each field in seperate variables n a shell script. i am unable to read the field that contains a *. how... (3 Replies)
Discussion started by: Little
3 Replies

8. Shell Programming and Scripting

Unable to pass shell script variable to awk command in same shell script

I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist. diff=$1$2.diff id=$2 new=new_$diff echo "My id is $1" echo "I want to sync for user account $id" ##awk command I am using is as below cat $diff | awk... (2 Replies)
Discussion started by: Ashunayak
2 Replies

9. Shell Programming and Scripting

Shell script to pass the config file lines as variable on the respective called function on a script

I want to make a config file which contain all the paths. i want to read the config file line by line and pass as an argument on my below function. Replace all the path with reading config path line by line and pass in respective functions. how can i achieve that? Kindly guide. ... (6 Replies)
Discussion started by: sadique.manzar
6 Replies

10. UNIX for Beginners Questions & Answers

How can I assign awk's variable to shell script's variable?

I have the following script, and I want to assign the output ($10 and $5) from awk to N and L: grdinfo data.grd | awk '{print $10,$5}'| read N L output from gridinfo data.grd is: data.grd 50 100 41 82 -2796 6944 0.016 0.016 3001 2461. where N and L is suppose to be 3001 and 100. I use... (8 Replies)
Discussion started by: geomarine
8 Replies
Image::ExifTool::MWG(3) 				User Contributed Perl Documentation				   Image::ExifTool::MWG(3)

NAME
Image::ExifTool::MWG - Metadata Working Group support SYNOPSIS
# enable MWG tags (strict mode enabled by default) use Image::ExifTool::MWG; # disable MWG strict mode $Image::ExifTool::MWG::strict = 0; DESCRIPTION
The MWG module contains tag definitions which are designed to simplify implementation of the Metadata Working Group guidelines. These special MWG composite tags are enabled simply by loading this module: use Image::ExifTool::MWG; When the MWG module is loaded, "strict MWG conformance" is enabled by default. In this mode, ExifTool will generate a Warning tag instead of extracting EXIF, IPTC and XMP from non-standard locations. The strict mode may be disabled by setting the MWG "strict" flag to zero (either before or after loading the MWG module): $Image::ExifTool::MWG::strict = 0; AUTHOR
Copyright 2003-2010, Phil Harvey (phil at owl.phy.queensu.ca) This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. REFERENCES
<http://www.metadataworkinggroup.org/> SEE ALSO
"MWG Tags" in Image::ExifTool::TagNames, Image::ExifTool(3pm) perl v5.12.1 2010-03-04 Image::ExifTool::MWG(3)
All times are GMT -4. The time now is 08:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy