Sponsored Content
Full Discussion: Loop Counting Question
Top Forums UNIX for Dummies Questions & Answers Loop Counting Question Post 302747157 by phunk on Thursday 20th of December 2012 04:44:13 PM
Old 12-20-2012
I appreciate it. Makes sense to me Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

while loop question

while do print What is the next device number to be added to $dgroup? print Press \<Enter\> if there are no more devices to be added. read dev_num export dev_num symld -g $dgroup -sid $sname add dev $dev_num done In this while... (2 Replies)
Discussion started by: stepnkev
2 Replies

2. Shell Programming and Scripting

counting the lines of diff files in loop

i have two file. i want to count the lines of each file one by one in loop and compare it. can any one pls help me on this? (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies

3. Shell Programming and Scripting

BASH loop inside a loop question

Hi all Sorry for the basic question, but i am writing a shell script to get around a slightly flaky binary that ships with one of our servers. This particular utility randomly generates the correct information and could work first time or may work on the 12th or 100th attempt etc !.... (4 Replies)
Discussion started by: rethink
4 Replies

4. Shell Programming and Scripting

For Loop Question

I'm improving the way an existing script handles arrays, but the results aren't what I had in mind: e="Too many consecutive errors... System is probably unstable!" e="Cancelable Timer Wait Failed!" for errcd in ${e} do echo ${errcd} done The for loop interprets the spaces... (2 Replies)
Discussion started by: ironhalo
2 Replies

5. Programming

trouble with loop counting

HI there, I am trying to count manually what this code does but I am stuck and I don't learly see the result. The code works and it compiles and runs but I just don't follow the value of var. #include<stdio.h> #include<stdlib.h> #include<sys/types.h> #include<unistd.h> #include<wait.h>... (2 Replies)
Discussion started by: bluetxxth
2 Replies

6. Shell Programming and Scripting

For Loop Question

I am struggling with the for loop. I have a file name heros.txt and I would like to go through a list in file where.txt and see if I can find the name from where inside heros. One of the problems that I am having is I dont understand how to setup the for loop to find the list to search.:wall: ... (6 Replies)
Discussion started by: captaindoogles
6 Replies

7. Shell Programming and Scripting

For loop question

Hi, I'm trying to put together a small script that will read a txt file that contains a list of two columns. Each column is the name of a folder.. e.g. AIX Server1 AIX Server2 AIX Server3 $ for i in `cat /opt/apacheprod/scripts/input/copy_list.txt` do PLATFORMVAR=`awk ' { print $1 } '... (7 Replies)
Discussion started by: Jazmania
7 Replies

8. Shell Programming and Scripting

For loop question

I have two files. In file one, there are many columns, but only two of interest to me. Column 1 contains a list of individuals, defined by an ID number. Column 10 contains the diagnosis that each individual has (I am a physician). All together, there are 3000 lines in this file, one line per... (2 Replies)
Discussion started by: awc228
2 Replies

9. Shell Programming and Scripting

Quick Question: counting columns?

Hi everyone I have a quick question... I have an ascii file that looks like the one below, and I wanted to find a way to make a listing of how many columns there is in each row, similar to the example below. Anyone has any ideas of how I can do this? Thanks!! 6 Sep 2008 -158.535 33.6617... (2 Replies)
Discussion started by: lucshi09
2 Replies

10. Shell Programming and Scripting

awk counting question

Probably a simple to this, but unsure how to do it. I would prefer an AWK solution. Below is the data set. 1 2 3 2 5 7 4 6 9 1 5 4 8 5 7 1 1 10 15 3 12 3 7 9 9 8 10 4 5 2 9 1 10 4 7 9 7 12 6 9 13 8 For the second... (11 Replies)
Discussion started by: mollydog11
11 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 03:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy