Sponsored Content
Full Discussion: Traverse catalogs
Top Forums Shell Programming and Scripting Traverse catalogs Post 302134295 by baghera on Thursday 30th of August 2007 08:22:17 AM
Old 08-30-2007
Traverse catalogs

Here is my problem (it seems I've a lot of problems nowadays).

I have several folders:

runner.20070830.12.45.12
runner.20070830.12.45.15
runner.20070830.12.45.17
runner.20070830.12.45.20
runner.20070830.12.45.45
runner.20070830.12.45.55

Each catalog contains some html-files.

I need to traverse each folder and get some data from a special html-log file in each folder. How can this be done in a simple way?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Fastest way to traverse through large directories

Hi! I have thousands of sub-directories, and hundreds of thousands of files in them. What is the fast way to find out which files are older than a certain date? Is the "find" command the fastest? Or is there some other way? Right now I have a C script that traverses through and checks... (5 Replies)
Discussion started by: sreedharange
5 Replies

2. Shell Programming and Scripting

Traverse Directory Tree for backup

Hi, I am trying to write a script that will move all the files from source directory structure(multiple levels might exist) to destination directory structure. If a sub directory in source doesnot exist in destination then I have to skip and goto next level. I also need to delete the files in... (1 Reply)
Discussion started by: srmadab
1 Replies

3. UNIX for Dummies Questions & Answers

Using File Descriptors, traverse a list

I have written this code, and according to my research it SHOULD be going down the list until it is finished, but I am getting blank feedback. Nothing is being output as far as I can tell. #!/bin/sh while echo Enter to start traversing read enter do read list <&3 echo $list done any... (2 Replies)
Discussion started by: MaestroRage
2 Replies

4. Shell Programming and Scripting

Traverse a flatfile and check for errors

Hi, I need to check a flatfile for various parameters like length of the record, format of record, any tab character present in the record etc., for checking presence of tab character, i'm trying to use the following code and i'm not sure if the same is right. Pls Help. nawk '{print... (1 Reply)
Discussion started by: aravindc
1 Replies

5. Shell Programming and Scripting

find in given path do not want to traverse to its sub-directories

Hi All, My UNIX Version is: OS Name Release Version AIX appma538 3 5 I want to find certain files with some criterias under the given path. At the same time i want to find the files which resides under the given directory, but normal find traverse to its sub-directories... (4 Replies)
Discussion started by: Arunprasad
4 Replies

6. Shell Programming and Scripting

Traverse through directory....

hi I have a directory structure like Parent Parent/child1/ Parent/child2/ Parent/child3/ and the each main directory contains Parent/child1/file1.txt, Parent/child1/fil2.zip ....... Parent/child2/file1.txt,Parent/child/fil2.zip ...... Now i want to traverse to each and want to... (1 Reply)
Discussion started by: Reddy482
1 Replies

7. Shell Programming and Scripting

Traverse Latest directory First

I wish to traverse the latest to the oldest directory based on its timestamp. ls -ltr drwxr-x--- 3 admin bel 1024 Jan 22 02:29 sys drwxr-x--- 2 admin bel 2048 Jan 22 02:30 admin drwxr-x--- 10 admin bel 24576 Jan 23 21:31 bin For the above i need to cd first to... (2 Replies)
Discussion started by: mohtashims
2 Replies

8. UNIX for Dummies Questions & Answers

Problem with traverse through line

i have a file like below New_file.txt 123|345|ab cd|ef gh 345|456|jk hu|uyh My script is #!/bin/ksh set -x for line in `cat New_file.txt` do a1=`echo $line|cut -d '|' -f1` echo $a1 done output ++ cat New_file.txt (2 Replies)
Discussion started by: Rajesh_us
2 Replies

9. Shell Programming and Scripting

Traverse through directories

Hi all, Require help in completing a shell script. i do have a total of 90 directories where in we have different sub-directories and one of the sub directory named logs I need to go inside the logs subdirectory and check if a particular log is present or not. for example below is the... (3 Replies)
Discussion started by: bhaskar t
3 Replies

10. Shell Programming and Scripting

Traverse through list of servers using ssh non-interactively.

I have 300 servers listed in servers.txt I motto is to check if my id "user1" has sudo privileges on the 3000 servers. I m using sudo -l to check if I have privileges or not. If wish to check this either non-interactively; if not; interactively. Below is the script I wrote: ... (5 Replies)
Discussion started by: mohtashims
5 Replies
Gendarme(Gendarme 2.10.0.0)											       Gendarme(Gendarme 2.10.0.0)

NAME
Gendarme - Rule-based code analysis for Mono. SYNOPSIS
gendarme [--config configfile] [--set ruleset] [--log file | --xml file | --html file] [options] assemblies ... DESCRIPTION
Gendarme is a extensible rule-based tool used to find problems in .NET applications and libraries. Gendarme inspects programs and libraries that contain code in ECMA CIL format (Mono and .NET) and looks for common problems with the code, problems that compilers do not typically check or have historically not checked. OPTIONS
--config configfile Specify the rule sets and rule settings. Default is 'rules.xml'. --set ruleset Specify a rule set from configfile. Defaults to 'default'. --log file Save the report to the specified file. If none of --log, --xml, or --html are used then the report is written to stdout. --xml file Save the report, formatted as XML, to the specified file. --html file Save the report, formatted as HTML, to the specified file. --ignore ignore-file Do not report defects listed in the specified file. --limit N Stop reporting after N defects are found. --severity [all | audit[+] | low[+|-] | medium[+|-] | high[+|-] | critical[-]],... Filter the reported defects to include the specified severity levels. Default is 'medium+' (i.e. low and audit levels are ignored). --confidence [all | low[+] | normal[+|-] | high[+|-] | total[-]],... Filter the reported defects to include the specified confidence levels. Default is 'normal+' (i.e. low level is ignored). --quiet Used to disable progress and other information which is normally written to stdout. --v|verbose When present additional progress information is written to stdout. May be used more than once to write even more info. --version Display Gendarme's version number. This will match the Mono version number that this copy of Gendarme was released with. assemblies ... Specify the assemblies to verify. You can specify multiple filenames, including masks (? and *). You can also provide a file that lists several assemblies (one per line) by prefixing the filename with @ on the command line. FILES
ignore-file This file is used to filter out defects from gendarme reports. rules.xml This file is used in conjunction with the --set option to control and configure the rules used by Gendarme. It contains a set of named rules (rule sets) and each rule set contains a list of rules. gendarme.exe.config Used by debug versions of Gendarme to enable logging for rules. It is useful for Gendarme's developers (i.e. not meant for end- users). ENVIRONMENT VARIABLES
GENDARME_COLOR The runner will use colors when displaying defects on the console. By default colors are dark in order to display correctly on any background. You can change this default to "light" (lighter colors looks nice on a dark background, or "none" so no colors will be used. E.g. GENDARME_COLOR=none gendarme ... EXIT STATUS
0 The runner returns 0 when no error has occurred. If some code was analyzed then this also means that no defects were found and reported. 1 The runner execution was successful but either some defects where found or no assembly was specified. 2 The runner execution was interrupted by I/O errors (e.g. missing files). 3 The runner founds errors in the (default or user supplied) configuration files. Specific error messages should be printed on the console. 4 The runner execution was interrupted by a non-handled exception. This is likely a bug inside Gendarme and should be reported on Nov- ell's bugzilla (http://bugzilla.novell.com) or on the mailing-list. COPYRIGHT
Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com) MAILING LISTS
Mailing lists are listed at the http://groups.google.com/group/gendarme WEB SITE
http://www.mono-project.com/Gendarme SEE ALSO
gendarme(5),gd2i(1),mono(1) Gendarme(Gendarme 2.10.0.0)
All times are GMT -4. The time now is 01:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy