Sponsored Content
Full Discussion: Find files in Directories
Top Forums Shell Programming and Scripting Find files in Directories Post 68272 by Just Ice on Saturday 2nd of April 2005 11:01:00 AM
Old 04-02-2005
looking for all the files in the list will confirm that you have the right directory but ... if there's one file in your list that you know does not exist anywhere else --- just find the directory that file resides in and you're there already ...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

find -type d returning files as well as directories

Can anyone see why the following command returns all files and not just the directories as specified? find . -type d -exec ls -F {} \; Also tried find . -type d -name "*" -exec ls -F {} \; find . -type d -name "*" -exec ls -F '{}' \; -print Always returns all files :-\ OS is... (2 Replies)
Discussion started by: tuns99
2 Replies

2. Homework & Coursework Questions

Find and delete empty files and directories

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Need to make a script, to remove all empty files and folders from current category. It also should show the name... (2 Replies)
Discussion started by: Itixop
2 Replies

3. Shell Programming and Scripting

Find Files with a input in directories

So i have directories that store logs, 1 directorie for each day, with the name like this : 2012_07_01/ 2012_07_02/ and for each directorie we have the logs, inside them lives the logs for that day, and every log have this name pattern : ... (2 Replies)
Discussion started by: drd0spt
2 Replies

4. Shell Programming and Scripting

Script to go Into Directories and Find/Delete files

I have a task, I usually do manually, but with growing responsibilities I tend to forget to do this weekly, I want to write a script that automates this, but I cant seem to work it out in my head, I have the shell of it out, but need help, and you guys have helped me with EVERY problem I have... (5 Replies)
Discussion started by: gkelly1117
5 Replies

5. Shell Programming and Scripting

Find only files/directories with different permissions/owners

My git post-update has the following lines in it to make sure the permissions are set right: find /usr/local/apache/htdocs -type d -print0 | xargs -0 chmod 755 find /usr/local/apache/htdocs -type f -print0 | xargs -0 chmod 644 chown -R apache:apache /usr/local/apache/htdocsThe only problem is... (5 Replies)
Discussion started by: dheian
5 Replies

6. UNIX for Advanced & Expert Users

Find all files in the current directory excluding hidden files and directories

Find all files in the current directory only excluding hidden directories and files. For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories and listing normal which should be avoided. `find . \( ! -name ".*" -prune \) -mtime +${n_days}... (7 Replies)
Discussion started by: ksailesh1
7 Replies

7. UNIX for Dummies Questions & Answers

Find Files In A List with known Partial Directories

First I'm new to Linux and have used the find command pretty often but this is where I've hit a snag. I have a file that contains 3500 files that I want to find and then eventually copy to my own directory (these files are all on a shared directory at work atm). Our work computer are huge and... (2 Replies)
Discussion started by: Myrona
2 Replies

8. UNIX for Dummies Questions & Answers

Loop over certain user directories and find files

Hello I have user directories that contain /temp directory. Example folders: /user1/temp/ /user2/temp/ /user3/temp/ How can i loop over all user directories and find all files only in their /temp folder? Thanks a lot for help! (3 Replies)
Discussion started by: flavius42
3 Replies

9. Shell Programming and Scripting

Find common files between two directories

I have two directories Dir 1 /home/sid/release1 Dir 2 /home/sid/release2 I want to find the common files between the two directories Dir 1 files /home/sid/release1>ls -lrt total 16 -rw-r--r-- 1 sid cool 0 Jun 19 12:53 File123 -rw-r--r-- 1 sid cool 0 Jun 19 12:53... (5 Replies)
Discussion started by: sidnow
5 Replies

10. Shell Programming and Scripting

Find command excluding directories and some files

hello. I try to print a list of files but excluding some directories and some files. I would like to write a command for : find "from_dir" "ignore dir1, dir2, ..." "ignore file1, file2,...." "where file are older than 2017-02-03T06:00:00" Note that "DO_IT" is a local function in the script... (5 Replies)
Discussion started by: jcdole
5 Replies
getconfig(1)						      General Commands Manual						      getconfig(1)

NAME
getconfig - get configuration information for the XFree86 server SYNOPSIS
getconfig [option ...] DESCRIPTION
getconfig is a programmatic interface that is used by the XFree86 server to get configuration information about video hardware when operat- ing without an XF86Config file. This implementation of getconfig is written in perl. It processes a prioritized and ordered list of rules supplied internally and from meta-configuration files. The rules are in the form of perl expressions. getconfig writes to standard output the XF86Config-style config- uration data specified by the last highest priority rule that evaluates to true. Information about the format of the meta-configuration files can be found in the getconfig(5) manual page. OPTIONS
-I search-path Specify the search path to use for meta-config files. search-path is a comma-separated list of directories to search. Each direc- tory in the search path is searched for files with a .cfg suffix. Each such file is opened and checked for a valid signature string. Rules are read from files with a valid signature string and appended to the list of rules to evaluate. If no search path is specified, only the internally supplied configuration rules will be used. -D Enable debugging output. -V Print out the version information and exit. -X XFree86-version Specify the XFree86 version in numeric (integer) form. -b subsys-id Specify the PCI subsystem ID of the video device. -c class Specify the PCI class of the video device. -d device-id Specify the PCI device ID of the video device. -r revision Specify the PCI revision of the video device. -s subsysvendor-id Specify the PCI subsystem vendor ID of the video device. -v vendor-id Specify the PCI vendor ID of the video device. -S sbus-path Specify the SBUS path of the video device. FILES
.cfg files located in the search path. The search path typically specified by the XFree86 server is: /etc/X11 /usr/X11R6/etc/X11 <modulepath> /usr/X11R6/lib/X11/getconfig where <modulepath> is the XFree86 server's module search path. SEE ALSO
getconfig(5), XFree86(1), XF86Config(5). AUTHORS
The XFree86 automatic configuration support and the getconfig interface was written by David H. Dawes, with the support of X-Oz Technolo- gies. XFree86 Version 4.7.0 getconfig(1)
All times are GMT -4. The time now is 10:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy