Sponsored Content
Top Forums UNIX for Advanced & Expert Users speed test +20,000 file existance checks too slow Post 302269839 by cjcox on Thursday 18th of December 2008 07:28:28 PM
Old 12-18-2008
Don't pipe "it" into a if statement, create the shell script on the fly and pipe that:

Code:
awk '{print "if [ -f \"" $10 "\" ]; then echo 1; else echo 0;fi"}' | sh

 

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

network speed is slow

Hello, everyone: i encounter a problem these days , pls help me ,thanks in advance. my env: machine: ES40 A ES40 B os: true64 Unix 4.0f note: src.tar 8M network card speed 100M my problem: ... (3 Replies)
Discussion started by: q30
3 Replies

2. News, Links, Events and Announcements

Intel Benchmark Test: Linux Goes to 600,000

For story: http://story.news.yahoo.com/news?tmpl=story&cid=75&ncid=738&e=9&u=/nf/20030606/tc_nf/21680 (0 Replies)
Discussion started by: Neo
0 Replies

3. Shell Programming and Scripting

Test File Existance Remotely?

Thanks in advance to anyone that can help me answer this: I'm trying to write an if statement that will run test -f on whether a file exists on another server and if it does not then report that negative outcome to a log file. I'm thinking it should look something like this: if ; then rcp... (5 Replies)
Discussion started by: Korn0474
5 Replies

4. UNIX for Dummies Questions & Answers

Test existance of a file

Hi, I need to find out if a particular file exists and i am using if with -e option. Scenarion is like There is a possibility of two files having nomaincluture like below First file = abc20101028.somthing Second File = abc20101028.somthing.done I need to check abc20101028.somthing... (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

5. Shell Programming and Scripting

Slow Perl script: how to speed up?

I had written a perl script to compare two files: new and master and get the output of the first file i.e. the first file: words that are not in the master file STRUCTURE OF THE TWO FILES The first file is a series of names ramesh sushil jonga sudesh lugdi whereas the second file (could be... (4 Replies)
Discussion started by: gimley
4 Replies

6. Solaris

Rsync quite slow (using very little cpu): how to improve its speed?

I have "inherited" a OmniOS (illumos based) server. I noticed rsync is significantly slower in respect to my reference, FreeBSD 12-CURRENT, running on exactly same hardware. Using same hardware, same command with same source and target disks, OmniOS r151026 gives: test@omniosce:~# time... (11 Replies)
Discussion started by: priyadarshan
11 Replies
RULI(1) 						      General Commands Manual							   RULI(1)

NAME
srvsearch, sync_srvsearch, smtpsearch, sync_smtpsearch, httpsearch, sync_httpsearch, ruli-getaddrinfo - Sample programs for RULI Library (RFC 2782) SYNOPSIS
echo _service._protocol.nongnu.org | ruli-getaddrinfo echo _service._protocol.nongnu.org | srvsearch [ options ] echo _service._protocol.nongnu.org | sync_srvsearch [ options ] echo nongnu.org | smtpsearch [ options ] echo nongnu.org | sync_smtpsearch [ options ] echo nongnu.org | httpsearch [ options ] echo nongnu.org | sync_httpsearch [ options ] DESCRIPTION
This manual page documents briefly sample programs for the ruli(3) library. ruli is a library aimed at querying DNS SRV resource records. OPTIONS
For http searches, one can force the port number by specifying it as the first option. search Use the resolver search list defined in '/etc/resolv.conf'. need_ra Require RA (Recursion Available) bit in the name server answer. noinet Don't fetch IPv4 addresses. noinet6 Don't fetch IPv6 addresses. uri_port Assume the specified default port was forced by the user-supplied URI. nowalk Don't search addresses missing from the name server answer. nofall Don't launch fallback queries for addresses, if the SRV query fails. nosort6 Don't sort the address list to give preference to IPv6 addresses. EXAMPLES
echo _telnet._tcp.nongnu.org | ruli-getaddrinfo echo _smtp._tcp.nongnu.org | srvsearch search echo _smtp._tcp.nongnu.org | sync_srvsearch search noinet6 echo nongnu.org | smtpsearch noinet echo nongnu.org | sync_smtpsearch nowalk nofall echo nongnu.org | httpsearch noinet6 echo nongnu.org | sync_httpsearch 80 SEE ALSO
ruli(3) AUTHOR
This manual page was written by Everton da Silva Marques <evertonsm@yahoo.com.br>. October 08, 2004 RULI(1)
All times are GMT -4. The time now is 12:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy