Sponsored Content
Full Discussion: 'find' command inconsistency
Top Forums Shell Programming and Scripting 'find' command inconsistency Post 302429051 by curleb on Friday 11th of June 2010 11:49:18 PM
Old 06-12-2010
The find util has co-dependency issues and likes its globbed args to be held...preferably between double-quotes.

Seriously, it does not always behave as expected on globbed -name args. You'll want to make sure and wrap your args in proper quotes to ensure that find can parse them properly.
Code:
find /tmp/testuser -name *est*   -o -name *estf* 
# versus ... 
find /tmp/testuser -name "*est*" -o -name "*estf*"

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Disk inconsistency

Hi, it seems I've got an hw error on more than one device. I use an AIX 5.2. this is the problem desc. Description DISK OPERATION ERROR Probable Causes DASD DEVICE Failure Causes DISK DRIVE DISK DRIVE ELECTRONICS I wish to read the SYSLOG file, where is it ? tk (1 Reply)
Discussion started by: Carmen123
1 Replies

2. Ubuntu

packet inconsistency problem

Hello everyone, I was trying to install db2 on Ubuntu, but got messed up with manual installation and Synaptic. At the moment, I find myself with a filesystem where DB2 is NOT installed ( I removed it with a sudo rm :o ) and with Synaptic still flagging db2exc as installed. The problem is that... (1 Reply)
Discussion started by: clalfa
1 Replies

3. HP-UX

Backspace stty inconsistency

I have this in my .profile: stty erase `tput kbs` which sets erase to ^H for a vt and ^? for an xterm. This has been fine up until now on all systems whether I login using a vt terminal emulator or an xterm. On this new system though, if I log in directly using an xterm, backspace doesn't... (1 Reply)
Discussion started by: Runrig
1 Replies

4. UNIX for Dummies Questions & Answers

File System inconsistency

:mad: Dear All, Here I am sending the error msg that come to to the terminal when I attempt to start my linux redhat 2.4.18-3 system. cheking file system /boot clean /home : clean /usr :containing file system with errors,check forced error reading block 35924(attempt to... (3 Replies)
Discussion started by: callitdctr
3 Replies

5. Shell Programming and Scripting

Variable value inconsistency on BASH and CSH

May God never give you the bane of working on Solaris. Now, I am trying to run this simple shell script: #!/bin/sh input="a b c" data="123" while read eachline do data="$data$eachline" done << EOF $(echo "$input") EOF... (2 Replies)
Discussion started by: pavanlimo
2 Replies

6. UNIX for Dummies Questions & Answers

Inconsistency between passwd and group

Hi, I have a passwd file with 3 users belonging to the the root group (gid=0), but the group file does not list these users as members of the root group? Shoud I be worried and apart from manually changing it, how can it be remediated? thx Norgaard (1 Reply)
Discussion started by: Norgaard
1 Replies

7. Red Hat

file system inconsistency

here in one of the server the lvol4 is having 20G and used space is 181M but it showing 98% used kindly advice any one can i run fsck -y after unmounted that lvol4 /dev/mapper/vg01-lvol4 20G 19G 418M 98% /var/opt/fedex aymara.emea $ du -sh /var/opt/fedex/... (3 Replies)
Discussion started by: venikathir
3 Replies

8. Solaris

VCS Crashing due to inconsistency in opt (managed by VxvM)

We have a Sun Server running Solaris 10 and Veritas Cluster Server. The RAID Volumes in the Server (/ , swap, opt, var, usr) are managed by VxVm and UFS is grown on all these volumes. Lately the system has been crashing due to an inconsistency in the opt filesystem. Upon reboot we did a fsck on... (1 Reply)
Discussion started by: aji1729
1 Replies

9. Solaris

Svccfg listprop, inconsistency in service property

hi all, Please see below -> bash-3.2# svccfg svc:> select network/http svc:/network/http> select apache2 svc:/network/http:apache2> listprop httpd application httpd/stability astring Evolving httpd/ssl boolean true ... (0 Replies)
Discussion started by: javanoob
0 Replies

10. Linux

Inconsistency with parallel run

Hi All, I am running a parallel processing on aggregating a file. I am splitting the process into 7 separate parallel process and processing the same input file and the process will do the same for each 7 run. The issue I am having is for some reason the 1st parallel processes complete first... (7 Replies)
Discussion started by: arunkumar_mca
7 Replies
AnyEvent::Callback(3pm) 				User Contributed Perl Documentation				   AnyEvent::Callback(3pm)

NAME
AnyEvent::Callback - callback aggregator for AnyEvent watchers. SYNOPSIS
use AnyEvent::Callback; # usually watchers are looked as: AE::something @args, sub { ... }; AE::something @args, sub { ... }, # result sub { ... }; # error use AnyEvent::Callback; AE::something @args, CB { ... }; AE::something @args, CB sub { ... }, # result sub { ... }; # error AE::something @args, CB sub { ... }, # result sub { ... }, # error sub { ... }; # anyway callback Callback hierarchy my $cbchild = $cb->CB(sub { ... }); ... $cbchild->error('error'); # will call $cb->error('error'); Inside Your callback You can: sub my_watcher { my $cb = pop; my @args = @_; # ... $cb->error( @error ); # error callback will be called # or: $cb->( $value ); # result callback will be called } Callbacks stack my $cbs = CBS; for (1 .. $n) { AE::something @args, $cbs->cb; } $cbs->wait(sub { for (@_) { if ($_->is_error) { # handle one error my @err = $_->errors; # or: my $errstr = $_->errstr; } else { # results my @res = $_->results; } } }); DESCRIPTION
The module allows You to create callback's hierarchy. Also the module groups error and result callbacks into one object. Also the module checks if one callback was called by watcher or not. If a watcher doesn't call result or error callback, error callback will be called automatically. Also the module checks if a callback was called reentrant. In the case the module will complain (using "carp" in Carp). If a watcher touches error callback and if superior didn't define error callback, the module will call error callback upwards hierarchy. Example: AE::something @args, CB &my_watcher, &on_error; sub on_error { } sub my_watcher { my $cb = pop; ... the_other_watcher $cb->CB( sub { # error callback wasn't defined my $cb = pop; ... yet_another_watcher1 $cb->CB( sub { my $cb = pop; ... $cb->( 123 ); # upwards callback }); yet_another_watcher2 $cb->CB( sub { my $cb = pop; ... $cb->error( 456 ); # on_error will be called }); }); } METHODS
'CODE' (overloaded fake method) $cb->( ... ); You can use the object as usually CODEREF. CB Creates new callback object that have binding on parent callback. my $new_cb = $cb->CB(sub { ... }); # the cb doesn't catch errors my $new_cb = CB(sub { ... }, sub { ... }); # the cb catches errors my $new_cb = $cb->CB(sub { ... }, sub { ... }); # the same error Calls error callback. If the object has no registered error callbacks, parent object's error callback will be called. $cb->error('WTF?'); COPYRIGHT AND LICENCE
Copyright (C) 2012 by Dmitry E. Oboukhov This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-06-30 AnyEvent::Callback(3pm)
All times are GMT -4. The time now is 08:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy