Sponsored Content
Full Discussion: Regex NOT EQUAL help
Top Forums Shell Programming and Scripting Regex NOT EQUAL help Post 302343812 by ArterialTool on Thursday 13th of August 2009 04:37:41 PM
Old 08-13-2009
Makes sense. Thanks again
 

9 More Discussions You Might Find Interesting

1. Solaris

Stop+A equal

Hi, I have replaced my current Intel PC machine with Solaris 10, it use to have windows XP. I am sure alot of people already done this and i have seen Solaris running smoothly but having keyboard problem. What is the equal keys in a QWERTY keyboard for selection <Stop+A> ? Is there a... (5 Replies)
Discussion started by: tlee
5 Replies

2. Shell Programming and Scripting

equal to operator

Hi, I have the below script executed arg="dir" if "$arg" = "dir" then echo "true" else echo "false" fi Please let me know what happens in the if command. My output is: dir: dir: No such file or directory false which is not the desired output. When i used test command... (1 Reply)
Discussion started by: anijan
1 Replies

3. Shell Programming and Scripting

My Values are Equal but They are Not

Does anybody understand why this is not being interpreted as true. Script: #!/bin/bash errored=`grep "errored" new_update_scripts.txt` echo $errored = "errored" if ; then echo true else echo false fi Output: $ UpdateScripts errored = errored false (7 Replies)
Discussion started by: scottwmackey
7 Replies

4. Shell Programming and Scripting

while [ $x -ge 50 ] + and equal to zero ; then

while + and equal to zero ; then what to punt instead of phrase and equal to zero. it's bash thank you in advance (1 Reply)
Discussion started by: losh
1 Replies

5. Shell Programming and Scripting

Converting perl regex to sed regex

I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly: if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies

6. UNIX for Dummies Questions & Answers

read regex from ID file, print regex and line below from source file

I have a file of protein sequences with headers (my source file). Based on a list of IDs (which are included in some of the headers), I'd like to print out only the specified sequences, with only the ID as header. In other words, I'd like to search source.txt for the terms in IDs.txt, and print... (3 Replies)
Discussion started by: pathunkathunk
3 Replies

7. Shell Programming and Scripting

Perl, RegEx - Help me to understand the regex!

I am not a big expert in regex and have just little understanding of that language. Could you help me to understand the regular Perl expression: ^(?!if\b|else\b|while\b|)(?:+?\s+){1,6}(+\s*)\(*\) *?(?:^*;?+){0,10}\{ ------ This is regex to select functions from a C/C++ source and defined in... (2 Replies)
Discussion started by: alex_5161
2 Replies

8. Shell Programming and Scripting

Sendmail K command regex: adding exclusion/negative lookahead to regex -a@MATCH

I'm trying to get some exclusions into our sendmail regular expression for the K command. The following configuration & regex works: LOCAL_CONFIG # Kcheckaddress regex -a@MATCH +<@+?\.++?\.(us|info|to|br|bid|cn|ru) LOCAL_RULESETS SLocal_check_mail # check address against various regex... (0 Replies)
Discussion started by: RobbieTheK
0 Replies

9. UNIX for Advanced & Expert Users

awk not equal

Did I do something wrong with this awk not equal? For some reason it prints twice. >awk '{if ($4 != "root") print $1 " " $4 " " $5}' ls_test server10: njs nodeadm server10: njs nodeadm >grep server10 ls_test server10: drwxr-sr-x. 18 njs nodeadm 4096 Aug 16 09:42 /opt > (2 Replies)
Discussion started by: cokedude
2 Replies
FILESYSTEMITERATOR(3)							 1						     FILESYSTEMITERATOR(3)

The FilesystemIterator class

INTRODUCTION
The Filesystem iterator CLASS SYNOPSIS
FilesystemIterator FilesystemIteratorextends DirectoryIteratorSeekableIterator Constants o const integer$FilesystemIterator::CURRENT_AS_PATHNAME32 o const integer$FilesystemIterator::CURRENT_AS_FILEINFO0 o const integer$FilesystemIterator::CURRENT_AS_SELF16 o const integer$FilesystemIterator::CURRENT_MODE_MASK240 o const integer$FilesystemIterator::KEY_AS_PATHNAME0 o const integer$FilesystemIterator::KEY_AS_FILENAME256 o const integer$FilesystemIterator::FOLLOW_SYMLINKS512 o const integer$FilesystemIterator::KEY_MODE_MASK3840 o const integer$FilesystemIterator::NEW_CURRENT_AND_KEY256 o const integer$FilesystemIterator::SKIP_DOTS4096 o const integer$FilesystemIterator::UNIX_PATHS8192 Methods o public FilesystemIterator::__construct (string $path, [int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CUR- RENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS]) o public mixed FilesystemIterator::current (void ) o public int FilesystemIterator::getFlags (void ) o public string FilesystemIterator::key (void ) o public void FilesystemIterator::next (void ) o public void FilesystemIterator::rewind (void ) o public void FilesystemIterator::setFlags ([int $flags]) Inherited methods o public DirectoryIterator DirectoryIterator::current (void ) o public int DirectoryIterator::getATime (void ) o public string DirectoryIterator::getBasename ([string $suffix]) o public int DirectoryIterator::getCTime (void ) o public string DirectoryIterator::getExtension (void ) o public string DirectoryIterator::getFilename (void ) o public int DirectoryIterator::getGroup (void ) o public int DirectoryIterator::getInode (void ) o public int DirectoryIterator::getMTime (void ) o public int DirectoryIterator::getOwner (void ) o public string DirectoryIterator::getPath (void ) o public string DirectoryIterator::getPathname (void ) o public int DirectoryIterator::getPerms (void ) o public int DirectoryIterator::getSize (void ) o public string DirectoryIterator::getType (void ) o public bool DirectoryIterator::isDir (void ) o public bool DirectoryIterator::isDot (void ) o public bool DirectoryIterator::isExecutable (void ) o public bool DirectoryIterator::isFile (void ) o public bool DirectoryIterator::isLink (void ) o public bool DirectoryIterator::isReadable (void ) o public bool DirectoryIterator::isWritable (void ) o public string DirectoryIterator::key (void ) o public void DirectoryIterator::next (void ) o public void DirectoryIterator::rewind (void ) o public void DirectoryIterator::seek (int $position) o public string DirectoryIterator::__toString (void ) o public bool DirectoryIterator::valid (void ) PREDEFINED CONSTANTS
o FilesystemIterator::CURRENT_AS_PATHNAME -Makes FilesystemIterator::current return the pathname. o FilesystemIterator::CURRENT_AS_FILEINFO -Makes FilesystemIterator::current return an SplFileInfo instance. o FilesystemIterator::CURRENT_AS_SELF -Makes FilesystemIterator::current return $this (the FilesystemIterator). o FilesystemIterator::CURRENT_MODE_MASK -Masks FilesystemIterator::current o FilesystemIterator::KEY_AS_PATHNAME -Makes FilesystemIterator::key return the pathname. o FilesystemIterator::KEY_AS_FILENAME -Makes FilesystemIterator::key return the filename. o FilesystemIterator::FOLLOW_SYMLINKS -Makes RecursiveDirectoryIterator::hasChildren follow symlinks. o FilesystemIterator::KEY_MODE_MASK -Masks FilesystemIterator::key o FilesystemIterator::NEW_CURRENT_AND_KEY -Same as FilesystemIterator::KEY_AS_FILENAME | FilesystemIterator::CURRENT_AS_FILEINFO. o FilesystemIterator::SKIP_DOTS -Skips dot files ( . and ..). o FilesystemIterator::UNIX_PATHS -Makes paths use Unix-style forward slash irrespective of system default. CHANGELOG
+--------+-------------------------------------------+ |Version | | | | | | | Description | | | | +--------+-------------------------------------------+ | 5.3.1 | | | | | | | Added FilesystemIterator::FOLLOW_SYMLINKS | | | | +--------+-------------------------------------------+ PHP Documentation Group FILESYSTEMITERATOR(3)
All times are GMT -4. The time now is 12:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy