11-28-2010
Hint: Have a look at the -r -w and -x options of test.
This User Gave Thanks to Chubler_XL For This Post:
9 More Discussions You Might Find Interesting
1. 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
2. UNIX for Dummies Questions & Answers
This should be so simple.. I have folder with about 27 subfolders in it, each folder has a number of fonts in it.. how do I get the total number of fonts for all subfolders? (2 Replies)
Discussion started by: glev2005
2 Replies
3. Shell Programming and Scripting
Hi All,
To start with, I have been reading this site for years, Unfortunately I do not consider myself versed well enough with scripts to provide useful help to others. The Blind cannot lead the Blind!
Many of you have provided me with brain food and solutions over the years without even... (4 Replies)
Discussion started by: Festus Hagen
4 Replies
4. Programming
Hi,
Can anyone tell me how to find out how many bits a c executable was compiled in?
I am trying to do some investigation of running 32bit programs in 64bit systems. (1 Reply)
Discussion started by: Leion
1 Replies
5. 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
6. Shell Programming and Scripting
This is my first ever post... please help! :o
I have two columns....here is part of the file...
12, 46798
6692, 46799
5710, ... (3 Replies)
Discussion started by: pelhabuan
3 Replies
7. 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
8. 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
9. What is on Your Mind?
In the past few days have I have done a lot of code cleanup work in various categories, including faster page loading and bug fixes:
Move countless inline style directives to external CSS stylesheets for key pages (faster page loading)
Fixed bug in member panel going between desktop and... (6 Replies)
Discussion started by: Neo
6 Replies
LEARN ABOUT DEBIAN
ringstat
RINGSTAT(1) Voicetronix Telephony Tools RINGSTAT(1)
NAME
ringstat - Perform a simple test of FXS (station) port ring and audio paths.
SYNOPSIS
ringstat [options]
DESCRIPTION
The ringstat utility performs a simple test of FXS port ring circuits. It exercises the card base functions including the audio path, ring
and hook detection. The ports will ring while on hook, play 10 seconds of dial tone if taken off hook, then ring again when they go back
on hook.
Press any key (on the keyboard) to end this test.
OPTIONS
The following options are available:
--help, -?
Show summary of options.
--card number
Explicitly select the card to test. Default is card 0.
--module number
Explicitly select the module of a card to test. Default assumes 8 ports on the card to test. Valid values here are presently 0 or
1. It also assumes all modules have 4 ports. This option may change in the future.
SEE ALSO
vpbecho(1), measerl(1)
AUTHOR
Ron Lee, Peter Wintulich, David Rowe, Voicetronix <support@voicetronix.com.au>
This manual page was written by Ron <ron@debian.org>, for the Debian project (but may be used by others).
VPB driver package Jan 4, 2007 RINGSTAT(1)