10-26-2007
Problems with find command
Folks,
I have been searching a dir for specfic files that have been accessed within a certain timeframe. The issue that I am having is that it picks up the .snapshot dir as well.
I am using the following:
find /probecards/ -name "S25E3N*" -mtime -1 -type f
Is this correct or how do I get it to ignore the ,snapshot files?
I have tried different methods to do this but always with the same results
Rgds
Colin
10 More Discussions You Might Find Interesting
1. Programming
Apparently I do not have C on my Sun Blade. It's a fresh install, and I'l fairly new to using this box. When I type cc, I get the following:
/usr/ucb/cc: language optional software package not installed...
Does this mean I do not have C on this Blade? How can I get it and set it up?
Thanks! (1 Reply)
Discussion started by: jpeery
1 Replies
2. Shell Programming and Scripting
Hi Folks!
Can you help me with this find -printf command. I seem to be unable to execute the printf-command from my shell script. I'm confused: :confused:
My shell script snippet looks like this:
#!/bin/sh
..
COMMAND="find ./* -printf '%p %m %s %u %g \n'"
echo "Command: ${COMMAND}"... (1 Reply)
Discussion started by: grahamb
1 Replies
3. Shell Programming and Scripting
Hey,
I was hoping for some help, my point was to search for all "core" files with only digits in the extension
Eg:
1) core.153498 < He should find it
2) core.1 < He should find it
3) core.919jasj < shouldn't find it
4) core.abdijs < shouldn't find it
find . -name 'core.*' -printf "%s... (6 Replies)
Discussion started by: candyzouk
6 Replies
4. Shell Programming and Scripting
Hi all,
my problem:
(little extract from my bash-script)
I want to move each file (.mov) from one directory (and many Subdirectories) to another directory (only one);
after moving i want to create hardlinks to the old directories.
Thatīs no problem, but now:
source-directories... (4 Replies)
Discussion started by: tubian
4 Replies
5. Shell Programming and Scripting
I am writing a script that looks in a reports directory, copies a specified script to a working folder, copies some data files into the working folder, runs the report, zips the new files, then uploads them.
Right now to determine what files to zip (as I don't know how many report files there... (6 Replies)
Discussion started by: droppedonjapan
6 Replies
6. UNIX for Dummies Questions & Answers
Hi I am trying to find files over a size given by the user.
this is what I have so far
echo "Enter a pathname to check (example = /home/jsk1gcc/testwork): "
read input
echo "Enter a the size (examples = 100k, 10M, 1G): "
read size
find $input -size +$size
echo
echo "Hit the Enter... (2 Replies)
Discussion started by: AngelFlesh
2 Replies
7. Shell Programming and Scripting
the below cmd is not wrking in perl script
find . -name "*e*" -exec wc -l {} \;
its show the following error
Can't modify system in scalar assignment at prjt.pl line 4, near ");"
Execution of prjt.pl aborted due to compilation errors. (11 Replies)
Discussion started by: natraj005
11 Replies
8. Shell Programming and Scripting
Hello,
for dir in `find /root/test -type d` ;do
echo "$dir"
done
for dir in `ls -1d /root/test/*/` ;do
echo "$dir"
done
If there's a directory with spaces in name, it does echo each word of that dir separately... solution?
mkdir "test"
cd test
mkdir "example_1_2_3"... (6 Replies)
Discussion started by: TehOne
6 Replies
9. Shell Programming and Scripting
set -A allfiles `find $usrhtml -type f`
i am trying to populate this array with the find command. It works fine when find is looking through a single directory but when i add a new subdirectory the files in the subdirectory get duplicated. Can anyone help me and fix this so each files in... (1 Reply)
Discussion started by: bjhum33
1 Replies
10. Shell Programming and Scripting
Have a text file "test-array.txt" with contents below
a23003
b23406
c23506
Tying to read the above file into an array and search for file-names in a directory TEST_DIR ,recursively with the above names in them.
Example: If TEST_DIR has a files named
xyxa_a23003_test.sql,... (4 Replies)
Discussion started by: gaurav99
4 Replies
LEARN ABOUT ULTRIX
netgroup
netgroup(5yp) netgroup(5yp)
Name
netgroup - list of network groups
Description
The file defines network-wide groups used for permission checking when doing remote mounts, remote logins, and remote shells. For remote
mounts, the information in the file is used to classify machines; for remote logins and remote shells, it is used to classify users. Each
line of the file defines a group and has the following format:
groupname member1,...,member_n
Each member is either another group name or a combination of the host name, user name, and domain name.
Any of the three fields can be empty, in which case a wildcard is assumed. For example, to define a group to which everyone belongs, the
following entry could appear in the file:
universal (,,)
Field names that begin with something other than a letter, digit, or underscore (such as ``-'') work in the opposite way. For example:
justmachines (analytica,-,suez)
justpeople (-,babbage,suez)
The machine analytica belongs to the group justmachines in the domain suez, but no users belong to it. Similarly, the user babbage belongs
to the group justpeople in the domain suez, but no machines belong to it.
Network groups are part of the Yellow Pages data base and are accessed through these files:
/etc/yp/domainname/netgroup.dir
/etc/yp/domainname/netgroup.pag
/etc/yp/domainname/netgroup.byuser.dir
/etc/yp/domainname/netgroup.byuser.pag
/etc/yp/domainname/netgroup.byhost.dir
/etc/yp/domainname/netgroup.byhost.pag
These files can be created from using
Files
/etc/netgroup
/etc/yp/domainname/netgroup.dir
/etc/yp/domainname/netgroup.pag
/etc/yp/domainname/netgroup.byuser.dir
/etc/yp/domainname/netgroup.byuser.pag
/etc/yp/domainname/netgroup.byhost.dir
/etc/yp/domainname/netgroup.byhost.pag
See Also
getnetgrent(3yp), makedbm(8yp), ypserv(8yp)
netgroup(5yp)