Sponsored Content
Full Discussion: output of find command
Top Forums UNIX for Dummies Questions & Answers output of find command Post 92711 by shriashishpatil on Wednesday 14th of December 2005 06:40:11 AM
Old 12-14-2005
output of find command

Hi,
I am confused about the output of find command.
Please see the two find commands below.
When i put "*.c" i get lots of files. But when i put *c only i get only one file.

Any answer??



$ find . -name "*c"
./clarify/cheval/hp_server/rulemanager/rulemansvc
./clarify/cheval/hp_server/dbadmin/case.arc
./clarify/cheval/hp_server/dbadmin/contact.arc
./clarify/cheval/hp_server/dbadmin/eorder.arc
./clarify/cheval/hp_server/dbadmin/interact.arc
./clarify/cheval/hp_server/dbadmin/period_amt.arc
./clarify/cheval/hp_server/dbadmin/scr_run.arc
./clarify/cheval/hp_server/dbadmin/shopping_list.arc
./clarify/cheval/hp_server/dbadmin/site.arc
./.dt/types/fp_dynamic
./test.c
$
$
$ find . -name *c
./test.c
$
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

hiding output from find command

when I do the find command from / , there are a lot of directories that I do not have access to and so I get "find: cannot open ..." How can I suppress these messages so only what was found is output. I was thinking on find / -name 'searchterm' | grep -v find but this doesnt work ... (5 Replies)
Discussion started by: JamesByars
5 Replies

2. UNIX for Dummies Questions & Answers

create PATH from find command output

I'm trying to autogenerate a PATH variable from the output of a find command as follows: PATH=`find $dir -name "*.jar" | sed 's/$/:/'` The output looks similar like this if I echo it: PATH=/path/to/1.jar: /path/to/2.jar: /path/to/3.jar: I want the path to be on one line. I'm on... (3 Replies)
Discussion started by: rein
3 Replies

3. Shell Programming and Scripting

Incorrect output using find command

I'm using the below command to list files older than 2 hours but it returns redundant output, am I missing something. # find . -mmin +120 -exec ls -l {} \; total 0 -rw-r--r-- 1 root system 0 Oct 13 09:52 test1 -rw-r--r-- 1 root system 0 Oct 13 09:52 test2 -rw-r--r-- 1 root ... (5 Replies)
Discussion started by: mbak
5 Replies

4. UNIX for Dummies Questions & Answers

problem with output of find command being input to basename command...

Hi, I am triying to make sure that there exists only one file with the pattern abc* in path /path/. This directory is having many huge files. If there is only one file then I have to take its complete name only to use furter in my script. I am planning to do like this: if ; then... (2 Replies)
Discussion started by: new_learner
2 Replies

5. Shell Programming and Scripting

Wrong output in find command

Hi guys - I am trying a small script to tell me if there is a file that exists less than 1k. It should report ERROR, otherwise the check is good. I wrote this script down, however it never runs in the if/then statement. It always returns the echo ERROR. MYSIZE=$(find /home/student/dir1... (8 Replies)
Discussion started by: DallasT
8 Replies

6. AIX

find command modify the output

Hello All, I am new to this shell scripting , I wanted to modify the output of my find command such that it does not display the path but only file names , for example I am searching for the files which are modified in the last 24 hours which is find /usr/monitor/text/ -type f -mtime... (3 Replies)
Discussion started by: raokl
3 Replies

7. Shell Programming and Scripting

Output of find command to variable?

Hi, I'd like to assign the output of the find command to a variable. What I need is to run the find command, and if it returns zero files, the program exits. so i'm trying to assign the output of the find command to the $var1 variable....and then if this is less than one, I echo a... (2 Replies)
Discussion started by: horhif
2 Replies

8. Shell Programming and Scripting

Compare the output of find command

Hi All, I am trying to run find command in a script to list out certain files based on a patter. However, when there is no file in the output, the script should exit. Tried a couple of operators (-n, -z) etc but the script does not work. I am confused whether a null string is returned... (3 Replies)
Discussion started by: danish0909
3 Replies

9. Shell Programming and Scripting

Find command don't output anything, but file is there

Please if You can help me debug why nothing is found by this command? # echo "Zeus Robot" >> /home/vps/190/test # cat /home/vps/190/test Zeus Robot # find /home/vps -type f -mtime 2 -size -1000k -exec grep -l "Zeus Robot" {} \; >> out # cat out # cat /home/vps/190/test Zeus Robot Why... (6 Replies)
Discussion started by: postcd
6 Replies

10. Shell Programming and Scripting

Better Align--output of find command

Hi, i have sh program which search for a file in a folder structure and provides its path. This is just used to see if that file exits more that once anywhere down the folder structure. I have used find command to search & printing it output on terminal. I have attached screen shot of it.... (10 Replies)
Discussion started by: praveenkumar198
10 Replies
Geometry::Primitive::Arc(3pm)				User Contributed Perl Documentation			     Geometry::Primitive::Arc(3pm)

NAME
Geometry::Primitive::Arc - Portion of the circumference of a Circle DESCRIPTION
Geometry::Primitive::Arc represents a closed segment of a curve. SYNOPSIS
use Geometry::Primitive::Arc; my $arc = Geometry::Primitive::Arc->new( angle_start => 0, angle_end => 1.57079633, radius => 15 ); ATTRIBUTES
angle_start The starting angle for this arc in radians. angle_end The ending angle for this arc in radians. radius Returns the radius of the arc. origin Set/Get the origin of this arc. METHODS
new Creates a new Geometry::Primitive::Arc get_point_at_angle Given angle in radians returns the point at that angle on this arc. Returns undef if the angle falls outside this arc's range. length Returns the length of this arc. point_end Get the end point. Provided for Shape role. point_start Get the start point. Provided for Shape role. scale ($amount) Increases the radius by multiplying it by the supplied amount. AUTHOR
Cory Watson <gphat@cpan.org> COPYRIGHT &; LICENSE You can redistribute and/or modify this code under the same terms as Perl itself. perl v5.10.1 2010-01-10 Geometry::Primitive::Arc(3pm)
All times are GMT -4. The time now is 08:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy