9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I'm looking for a way to inventory files on a webserver into a CSV file, and am particularly interested in certain types of files, like .php, .cgi, .pl, .py, .sh, etc. but also want the ability to find all files, including those with no extension, or specified extensions, as above, including files... (1 Reply)
Discussion started by: spacegoose
1 Replies
2. Shell Programming and Scripting
Hi All,
I am new here but I have a scripting question that I can't seem to figure out with the "find" cmd.
What I am trying to do is to only have to run a single find cmd parsing the directories and output the different file types to induvidual files and I have been running into problems.... (3 Replies)
Discussion started by: swaters
3 Replies
3. Shell Programming and Scripting
I have a variable, vbLevel and want to assign it to one of several values which are "none", "low", "medium", "high".
Then I want to do something like
if ; then
...
fi (9 Replies)
Discussion started by: kristinu
9 Replies
4. UNIX for Dummies Questions & Answers
How do we find the partition type in Linux? df -T will give me the mounted partition types like ufs, ext3 etc. How do I find out for say a newly added disk to the system? Please advise...
Thanks (2 Replies)
Discussion started by: lubu
2 Replies
5. Shell Programming and Scripting
How can I pass $var_find variable as argment to find command?
test.sh
var_find=' \( -name "*.xml" -o -name "*.jsp" \) '
echo "${var_find}"
find . -type f ${var_find} -print
# Below statement works fine.. I want to replace this with the above..
#find . \( -name "*.xml" -o -name... (4 Replies)
Discussion started by: kchinnam
4 Replies
6. Linux
Hi,
I'm using the following command to find the multiple requierd file types and its working fine
find . -name "*.pl" -o -name "*.pm" -o -name "*.sql" -o -name "*.so" -o -name "*.sh" -o -name "*.java" -o -name "*.class" -o -name "*.jar" -o -name "*.gz" -o -name "*.Z" -type f
Though... (2 Replies)
Discussion started by: vickramshetty
2 Replies
7. Shell Programming and Scripting
Hello, I need a smart sed command that can take any of the following two as an input and give below mentioned output. As you can see, I am trying to convert some C code
INPUT:
struct abc_sample1 {
char myString;
UINT16 myValue1;
... (2 Replies)
Discussion started by: SiftinDotCom
2 Replies
8. Shell Programming and Scripting
There are these ksh files and config files that are written and updated on a daily basis.
All I want to do is write a script that finds both these types of files and archive them on a daily basis, to help in restoring in times of system outages and so on. Particulary I'm interested in .ksh ,... (9 Replies)
Discussion started by: manthasirisha
9 Replies
9. UNIX for Dummies Questions & Answers
Trying to use the find command to find any directory which contains a file ending in .zip AND a file ending in .o
I'm having trouble specifying multiple files as criteria and have can't seem to figure it out from Unix in a Nutshell and Google. (2 Replies)
Discussion started by: dangral
2 Replies
hal-find(1M) System Administration Commands hal-find(1M)
NAME
hal-find, hal-find-by-capability, hal-find-by-property - search HAL global device list
SYNOPSIS
hal-find-by-capability --capability capability [--help]
[--verbose] [--version]
hal-find-by-property --key key --string value [--help]
[--verbose] [--version]
DESCRIPTION
The hal-find commands, hal-find-by-capability and hal-find-by-property, search the Hardware Abstraction Layer (HAL) device list by speci-
fied criteria and displays results on the standard output. hal-find-by-capability searches by capability, such as volume or block. hal-
find-by-property searches by property, such as block.is_volume or volume.disc.has_audio.
OPTIONS
The following options are supported:
--capability capability HAL device capability to search for.
--help Display list of options.
--key key The key to the property that is the basis of the search.
--string value The string value associated with the property that is the basis of the search.
--verbose Verbose mode.
--version Display version and exit.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWhalr |
+-----------------------------+-----------------------------+
|Interface Stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO
hald(1M), attributes(5), hal(5)
SunOS 5.11 22 Aug 2006 hal-find(1M)