08-10-2009
I do not like csh either, but the script I was modifing was already written in the language. Good idea about about putting ksh in there, and I might do that next time. What I ended up doing was just writing the command to a tmp file and then running the tmp file. Not the most elegant solution, but it got the job done.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I create a file touch 1201093003 fichcomp
and inside a repertory (which hava a lot of files) I want to list all files created before this file :
find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long
but i make a filter all... (1 Reply)
Discussion started by: yacsil
1 Replies
2. UNIX for Dummies Questions & Answers
How to find the last argument in a argument line? (4 Replies)
Discussion started by: nehagupta2008
4 Replies
3. UNIX for Dummies Questions & Answers
I need to find whether there is a file named vijay is there or not in folder named "opt" .I tried "ls *|grep vijay" but it showed permission problem.
so i need to use find command (6 Replies)
Discussion started by: amirthraj_12
6 Replies
4. Linux
Hi,
I'm using the following command to find the multiple requierd file types and its working fine
find . -name "*.pl" -o -name "*.pm" -o -name "*.sql" -o -name "*.so" -o -name "*.sh" -o -name "*.java" -o -name "*.class" -o -name "*.jar" -o -name "*.gz" -o -name "*.Z" -type f
Though... (2 Replies)
Discussion started by: vickramshetty
2 Replies
5. Shell Programming and Scripting
Hi all ,
I'm new to unix
I have a checked project , there exists a file called xxx.config .
now my task is to find all the files in the checked out project which references to this xxx.config file.
how do i use grep or find command . (2 Replies)
Discussion started by: Gangam
2 Replies
6. UNIX for Dummies Questions & Answers
Hi
I wish to find only files in dir /srv/container/content/imz06/. It means exclude subfolder /srv/container/content/imz06/archive/
> uname -a
SunOS testbox6 5.10 Generic_139555-08 sun4v sparc SUNW,Sun-Blade-T6320Its Solaris default "find"
> find /srv/container/content/imz06/* -name... (4 Replies)
Discussion started by: slashdotweenie
4 Replies
7. Shell Programming and Scripting
Hi,
I'm trying to pass the variable in the find command like below
a=log.20111114
find /apps/file3_logs/env3/ -name '$a' -exec ls -lrt {} \;
but it's not working
thanks in advance.
Regards
Thelak (3 Replies)
Discussion started by: ajithbe
3 Replies
8. Shell Programming and Scripting
Hi Friends,
Please help me to sort out this problem, I am running this in centos o/s and whenever I run this script I am getting "find: missing argument to `-exec' " but when I run the same code in the command line I didn't find any problem. I am using perl script to run this ... (2 Replies)
Discussion started by: ramkumarselvam
2 Replies
9. UNIX Desktop Questions & Answers
Hello,
I would like to ask you, how to match directory names. I need to find only directories, which are created only from numbers and doesn't include any letters.
I used command
find $AC_WORKDIR/work_archive/test/$dirs_years -maxdepth 1 -name \\* -print
If I have dirs like
12... (3 Replies)
Discussion started by: satin1321
3 Replies
10. UNIX for Beginners Questions & Answers
Hi,
Below is list of files in my directory.
-rw-rw-r--. 1 Roots Roots 0 Dec 26 06:58 12345_kms_report.csv
-rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59 12346_kms_report.csv
-rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59 12347_kms_report.csv
-rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59... (2 Replies)
Discussion started by: Balraj
2 Replies
find(n) [incr Tcl] find(n)
__________________________________________________________________________________________________________________________________________________
NAME
find - search for classes and objects
SYNOPSIS
itcl::find option ?arg arg ...?
_________________________________________________________________
DESCRIPTION
The find command is used to find classes and objects that are available in the current interpreter. Classes and objects are reported first
in the active namespace, then in all other namespaces in the interpreter.
The option argument determines what action is carried out by the command. The legal options (which may be abbreviated) are:
find classes ?pattern?
Returns a list of [incr Tcl] classes. Classes in the current namespace are listed first, followed by classes in all other names-
paces in the interpreter. If the optional pattern is specified, then the reported names are compared using the rules of the "string
match" command, and only matching names are reported.
If a class resides in the current namespace context, this command reports its simple name--without any qualifiers. However, if the
pattern contains :: qualifiers, or if the class resides in another context, this command reports its fully-qualified name. There-
fore, you can use the following command to obtain a list where all names are fully-qualified:
itcl::find classes ::*
find objects ?pattern? ?-class className? ?-isa className?
Returns a list of [incr Tcl] objects. Objects in the current namespace are listed first, followed by objects in all other names-
paces in the interpreter. If the optional pattern is specified, then the reported names are compared using the rules of the "string
match" command, and only matching names are reported. If the optional "-class" parameter is specified, this list is restricted to
objects whose most-specific class is className. If the optional "-isa" parameter is specified, this list is further restricted to
objects having the given className anywhere in their heritage.
If an object resides in the current namespace context, this command reports its simple name--without any qualifiers. However, if
the pattern contains :: qualifiers, or if the object resides in another context, this command reports its fully-qualified name.
Therefore, you can use the following command to obtain a list where all names are fully-qualified:
itcl::find objects ::*
KEYWORDS
class, object, search, import
itcl 3.0 find(n)