02-06-2008
make sure when you try to simulate ^M,, you don't press Shift 6 then "M". press Ctrl-V then M.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi have one Perl file inside that i am defining
at an array file.
@temp_vmdk_files = `grep vmdk '$guest_vmx'`
where my $guest_vmx=/vmfs/volumes/47e40fec-9c8bb7f7-d076-001422159f8a/BES Exchange/BES-Exchange.vmx
and i am just want to do grep of "vmdk" files from the above path
but when... (5 Replies)
Discussion started by: bp_vardhaman
5 Replies
2. Shell Programming and Scripting
Hi Gurus,
I need some help with the "grep" command or whatever command that you think suitable for me. I'm about to write a perl script to extract a report from the system and submit it to the end users. The input for the script will consist of 3 element.
1) Generation ID
2) Month
3) Year... (6 Replies)
Discussion started by: miskin
6 Replies
3. Shell Programming and Scripting
Hey guys. I have a .pl script that scans my hosts to see if they are down or up. I can run it anytime I want. The script uses a conf file that contains text lines of the IP addresses of the servers. I run the script from the command line of my terminal (MAC OS)
I run: sudo ./scanner.pl
brings... (3 Replies)
Discussion started by: yoyoyo777
3 Replies
4. Shell Programming and Scripting
Hi All,
I have a .TSV extension file having ~1 Gig data and I need to grep a pattern in that file using perl. I am not able to read the file using perl any suggestions on this/ If I Change the format my data gets mismangled so I am bothered about using specific format as well.
#!... (3 Replies)
Discussion started by: vmsenthil
3 Replies
5. Shell Programming and Scripting
Hi,
I am using File::Find to go through a very large tree.
I am looking for all xml files and open only those that contain a tag <Updated>. I then want to capture the contents of two tags <Old> and <New>.
My problem is, after I open the file and do the first grep for <Updated> (which does... (3 Replies)
Discussion started by: OldGaf
3 Replies
6. Shell Programming and Scripting
hi guys
i have this very messy script, that looks in /var/log/messages.all for an error and reports if it finds the key works
how can i get it to look at more then one file, i.e /var/log/message.all *
so it looks in old logs as well
thanks
exit 0 if (isRenderNode(hostname));
my... (4 Replies)
Discussion started by: ab52
4 Replies
7. Programming
Hello,
Fairly simple really I have an xml file and I want to check to see if it contains a pattern. The pattern is "../"
On the command line I can type: grep "\.\./" myFile.xml
and I get desired result.
To do the same thing in a perl script I thought it was as simple as putting the ``... (4 Replies)
Discussion started by: Jaymoney
4 Replies
8. Shell Programming and Scripting
Hi,
I have file stored in a directory containing information about subnet mask and next hop address in the following format
10.1.1.0/16, 255.255.0.0, 10.1.1.1
10.1.2.0/16, 255.255.0.0,10.1.2.1
here 10.1.1.0/16 represent range of ip address 10.1.1.1-10.1.1.16
given say an IP address... (1 Reply)
Discussion started by: termeric
1 Replies
9. Shell Programming and Scripting
Hi ,
i am looking for a perl script to grep for a string in all files inside a directory .
bash command .
grep -r 'word' /path/to/dir
Thanks,
Nvil (3 Replies)
Discussion started by: nevil
3 Replies
10. Shell Programming and Scripting
I am working on one script where I need to grep the exact process in perl script.
for e.g. when I run simple grep command on the linux machine it gives me two process mGateway_mvc_q01 and mGateway_mvc_q01_v7 which is not the correct result.I tried to use ( ps -eAf | grep ^mGateway_mvc_q01$) but... (1 Reply)
Discussion started by: anuragpgtgerman
1 Replies
LEARN ABOUT REDHAT
gimp::feature
Feature(3) User Contributed Perl Documentation Feature(3)
NAME
Gimp::Feature - check for specific features to be present before registering the script.
SYNOPSIS
use Gimp::Feature;
or
use Gimp::Feature qw(feature1 feature2 ...);
DESCRIPTION
This module can be used to check for specific features to be present. This can be used to deny running the script when neccessary features
are not present. While some features can be checked for at any time, the Gimp::Fu module offers a nicer way to check for them.
"gtk"
checks for the presence of the gtk interface module.
"gtk-1.1", "gtk-1.2"
checks for the presence of gtk-1.1 (1.2) or higher.
"perl-5.005"
checks for perl version 5.005 or higher.
"pdl"
checks for the presence of a suitable version of PDL (>=1.9906).
"gnome"
checks for the presence of the Gnome-Perl module.
"gtkxmhtl"
checks for the presence of the Gtk::XmHTML module.
"unix"
checks wether the script runs on a unix-like operating system. At the moment, this is every system except windows, macos, os2 and vms.
"persistency"
checks wether the "Gimp::Data" module (Gimp::Data) can handle complex persistent data structures, i.e. perl references in addition to
plain strings.
The following features can only be checked after "Gimp-"main> has been called (usually found in the form "exit main"). See Gimp::Fu on how
to check for these.
"gimp-1.1", "gimp-1.2"
checks for the presense of gimp in at least version 1.1 (1.2).
FUNCTIONS
present(feature)
Checks for the presense of the single feature given as the argument. Returns true if the feature is present, false otherwise.
need(feature,[function-name])
Require a specific feature. If the required feature is not present the program will exit gracefully, logging an appropriate message.
You can optionally supply a function name to further specify the place where this feature was missing.
This is the function used when importing symbols from the module.
missing(feature-description,[function-name])
Indicates that a generic feature (described by the first argument) is missing. A function name can further be specified. This function
will log the given message and exit gracefully.
describe(feature)
Returns a string describing the given feature in more detail, or undef if there is no description for this feature.
list()
Returns a list of features that can be checked for. This list might not be complete.
AUTHOR
Marc Lehmann <pcg@goof.com>
SEE ALSO
perl(1), Gimp(1).
perl v5.8.0 1999-11-22 Feature(3)