03-09-2007
Hi folks,
I was wondering if you could tell me how to use find to locate a file without knowing the directory of the file.
I tried using find . -name filename* but I had to ctrl+c after several minutes.
Would that have eventually worked (providing the file actually exists), or do you know of a better way to search?
Also, can you advise me how I could pipe the output to a .txt file?
Thanks!
Last edited by Kozmo; 03-09-2007 at 02:38 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
Is there any command or script to search all the directories for duplicated files?
Thanks,
Abrahim (3 Replies)
Discussion started by: abk
3 Replies
2. UNIX for Dummies Questions & Answers
I want to search for a file pattern in more than one directory. How I need to do that?
Here is the scenario:
I am having a directory structure like the following:
/log
...../20051001
..........ftp_server_20051001.log
..........ftp_down_server.log
..........ftp_up_server.log... (7 Replies)
Discussion started by: ravikirankethe
7 Replies
3. Shell Programming and Scripting
Hi all,
I have script which downloads the build and copies onto the local machine
I am able to download files in a directory, but unable to get the files in subdierctories.
I am using finddepth to search for sub directories but I am unable to do so.
Here is my code:
... (0 Replies)
Discussion started by: gurukottur
0 Replies
4. Shell Programming and Scripting
Im working on a project that basically imitates the find and whereis commands. The program will take in a file name or regular expression and, starting with the current directory search downwards and match any files with that pattern and prints the path name. I don't understand how to do this... (5 Replies)
Discussion started by: new2C
5 Replies
5. Shell Programming and Scripting
Hi,
I would like to look for files in certain sub-directories in order to avoid looking into possibly big ones.
The subdirectories to search are created monthly following the convention YYYYMM.
I've tried this:
find . \( ! -name 2 -prune \) -o -type f -print
expecting to retrieve only Y... (15 Replies)
Discussion started by: m69w
15 Replies
6. UNIX for Advanced & Expert Users
need a Command in UNIX which can find out a word from files in multiple directories
e.g.
/home contains multiple directories
/home/d1
/home/d2
.
.
.
.
/home/dn
under d1,d2...dn contains multiple files. I need to search a specific word in a files under these multiple... (1 Reply)
Discussion started by: jagkoth
1 Replies
7. UNIX for Advanced & Expert Users
Hi colleagues,
I need to search one file in all dierctories, i have O.S. AIX 5.3, my file began with cc, the others caracters i unknow.
Then i can to search one string in file in all dierctories.
Thank you for advanced. (8 Replies)
Discussion started by: systemoper
8 Replies
8. Shell Programming and Scripting
Hey guys,
I'm lost... I need to make a script that will work in this way:
./script.sh -e sh /usr/bin /home/student
this script will result in this output:
amuFormat.sh /usr/bin
gettext.sh /urs/bin
perfect.sh /home/student
the parameter -e <ext> gives you which... (2 Replies)
Discussion started by: Miki1579
2 Replies
9. Shell Programming and Scripting
So I have extremely limited experience with shell scripting and I was hoping someone could point out a few commands I need to use in order to pull this off with a shell script like BASH or whatnot (this is on OS X).
I need to search out for filenames with account numbers in the name itself... (3 Replies)
Discussion started by: flyawaymike
3 Replies
10. UNIX for Beginners Questions & Answers
Lets say I have a massive directory which is filled with other directories all filled with different c++ scripts and I want a listing of all the scripts that contain the string: "this string". Is there a way to use a grep search for that? I tried:
grep -lr "this string" *
but I do not... (3 Replies)
Discussion started by: Circuits
3 Replies
LEARN ABOUT FREEBSD
linsysfs
LINSYSFS(5) BSD File Formats Manual LINSYSFS(5)
NAME
linsysfs -- Linux system file system
SYNOPSIS
linsys /compat/linux/sys linsysfs rw 0 0
DESCRIPTION
The Linux system file system, or linsysfs, emulates a subset of the Linux sys file system and is required for the complete operation of some
Linux binaries.
The linsysfs provides a two-level view of devices. At the highest level, PCI devices themselves are named, according to their bus, slot and
function in the system hierarchy. PCI storage devices are listed in the scsi_host class with a device symlink to the PCI directories of the
devices.
Each device node is a directory containing some files and directories:
host A place holder for storage host information.
pci_id A directory for the pci_id that contains either the device information or another directory structure for a PCI bridge.
Each host node of scsi_host is a directory containing some files and directories:
proc_name The Linux registered driver name for these devices.
device A symlink to the PCI device directory.
FILES
/compat/linux/sys The normal mount point for linsysfs.
/compat/linux/sys/class/scsi_host The storage host node.
/compat/linux/sys/devices/pci0000:00 The PCI device hierarchy node.
EXAMPLES
The most common usage follows:
mount -t linsysfs linsys /compat/linux/sys
where /compat/linux/sys is a mount point.
SEE ALSO
nmount(2), unmount(2), linprocfs(5), pseudofs(9)
HISTORY
The linsysfs driver first appeared in FreeBSD 6.2.
AUTHORS
The linsysfs driver was derived from linprocfs by Doug Ambrisko. This manual page was edited by Doug Ambrisko, based on the linprocfs(5)
manual page by Garrett Wollman.
BSD
February 5, 2007 BSD