11-16-2010
If it takes so long, maybe the machine is suffering from another performance problem/bottleneck somewhere else ...
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to write a script that will look for a file in a directory, then remove it. I need it to loop until it has removed a certain number of files. Is it better to do a repeat or to list each file in a pattern? Files will be numbered like RAF.01.*, RAF.02.*, etc. Thanks, James (6 Replies)
Discussion started by: JporterFDX
6 Replies
2. UNIX for Dummies Questions & Answers
Some simple questions from a simple man.
If i wanted to count the number of files contained within a directory, say /tmp would ls -l /tmp ¦ wc -l suffice and will it be accurate?
second one: How would i check the number of files with a certain string in the filename, in the same directory.
... (2 Replies)
Discussion started by: iamalex
2 Replies
3. UNIX for Dummies Questions & Answers
I want to count the no of lines for files (.c and .h) present in a directory structure.
My code is:
#!/bin/bash
# Usage: linecount.sh directory_name
for file in $(find $1 -name ); do
wc -l "$file" >> filecount.txt
done
Problem is that the directory structure is really big... (3 Replies)
Discussion started by: MobileUser
3 Replies
4. Shell Programming and Scripting
I have 20 files in a direcotry like BARE01_DLY_MKT_YYYYMMDD. The MKT differes for all these files but the remaining syntax remains the same for a particular day. If I am checking for today I need to make sure that there are 20 files that start with BARE01_DLY_MKT_20060720. How can I write a... (31 Replies)
Discussion started by: dsravan
31 Replies
5. Shell Programming and Scripting
I've never toyed with awk, but it seems every time I present an elegant 2- to 8-line script, someone comes back with an awk 1-liner.
I just came up with this to count all the lines of source code in a directory. How would I do it in awk?
LINES=0
for n in $(wc -l *.cpp *.h | cut -b-7); do
... (2 Replies)
Discussion started by: KenJackson
2 Replies
6. Shell Programming and Scripting
Hello, I'm writing a script in sh in which the first command line argument is a directory. from that, i'm suppose to count the number of readable, writable, and executable items in the directory. I know using $1 represents the directory, and ls would display all the items in the directory, and that... (4 Replies)
Discussion started by: kratos22
4 Replies
7. UNIX for Dummies Questions & Answers
Help Needed !
Can we count number of folders of specific date in a directory, even if directory has folders of different dates.
Please reply as soon as possible. (1 Reply)
Discussion started by: vishal_215
1 Replies
8. Shell Programming and Scripting
I am trying to display the output of ls and also print the number of characters in EVERY file name. This is what I have so far:
#!/bin/sh
for x in `ls`; do
echo The number of characters in x | wc -m
done
Any help appreciated (1 Reply)
Discussion started by: LinuxNubBrah
1 Replies
9. Shell Programming and Scripting
So I have a loop that stated if a directory exists or not. If it does it prints the number of files within that directory. I use this code...
result=`(ls -l . | egrep -c '^-')`
However, no matter which directory I input, it outputs the number "2"
What is wrong here? (4 Replies)
Discussion started by: itech4814
4 Replies
LEARN ABOUT REDHAT
smc91c92_cs
SMC91C92_CS(4) Kernel Interfaces Manual SMC91C92_CS(4)
NAME
smc91c92_cs - SMC 91cxx device driver
SYNOPSIS
insmod smc91c92_cs.o [pc_debug=n] [if_port=n] [irq_list=i,j,...]
DESCRIPTION
Smc91c92_cs is the low-level Card Services driver for SMC 91c92, 91c94, 91c96, and 91c100 based PC Card ethernet adapters. When this
driver is attached to a card, it allocates the next available ethernet device (eth0..eth#). This device name will be reported in the ker-
nel log file, and passed on to cardmgr(8).
With the default transceiver setting, the driver will attempt to continuously autodetect the transceiver type (10base2 or 10baseT). There
should normally only be a one or two second lag before the correct transceiver is selected. On particularly noisy or busy networks, it is
possible for the detection logic to incorrectly toggle the transceiver type. If this becomes a problem, it may be necessary to explicitly
select the interface type when the module is loaded or with the ifport command.
PARAMETERS
pc_debug=n
Selects the PCMCIA debugging level. This parameter is only available if the module is compiled with debugging enabled. A non-zero
value enables debugging.
if_port=n
Selects the transceiver type. 0 is autodetect (10baseT or 10base2), 1 is 10baseT (twisted pair), and 2 is 10base2 (BNC, or thin
net). The default is 0 (autodetect).
irq_list=i,j,...
Specifies the set of interrupts that may be allocated by this driver.
DIAGNOSTICS
eth#: interrupt(s) dropped!
Indicates that the driver did not receive an interrupt notification for some reason. The driver will poll the card (with a signifi-
cant performance penalty) if the problem persists. The most likely cause is an interrupt conflict and/or host bridge configuration
problem.
DIAGNOSTICS
eth#: interrupt(s) dropped!
Indicates that the driver did not receive an interrupt notification for some reason. The driver will poll the card (with a signifi-
cant performance penalty) if the problem persists. The most likely cause is an interrupt conflict and/or host bridge configuration
problem.
AUTHOR
David Hinds - dahinds@users.sourceforge.net
SEE ALSO
cardmgr(8), pcmcia(5), ifport(8).
pcmcia-cs 2000/06/12 21:24:48 SMC91C92_CS(4)