hi all,
in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders...
please help me, how can i find the total size of these specific files in the server... (3 Replies)
Hi All,
I need a solution on my following find command
find ./.. -name '*.file' -print
BTW This gives me the output as belows
./rtlsim/test/ADCONV0/infile/ad0_dagctst.file
./rtlsim/test/ADCONV0/user_command.file
./rtlsim/test/ADCONV0/simv.daidir/scsim.db.dir/scsim.db.file... (2 Replies)
Hello Experts,
I m newbie. Could u pls help me to write script on Sun solaris-
I have backup directory "/var/opt/backup/" where files are backed up in different directory "backup1" "backup2" "backup3".
I want to write a shell script which i will put in crontab and daily midnight it will... (1 Reply)
I am writing a script which reads a file line by line and then assigns it to a variable like this 1090373422_4028715212.jpg. I have images with file name of this format in some other directory. In my script I want to assign variable with this file name and then find this filename in some other... (11 Replies)
Hello,
I am trying to write a shell script to search for a pattern in the directory and show only one entry for each field, essentially I am looking to search for a pattern in a file and list that file name. (1 Reply)
Hi I made this code to search in directory for file and size
How can I remodel it to seach in the sub direcotry as well
Thanks
#!/bin/bash
echo -n "Enter: "
read var
if
then
echo "Directory exists: ${var}"
size=`du -hs "${var}"`
echo The size of the current folder is... (4 Replies)
I am trying to find all DAT files in a subdirectory named IN. I do not know the entire path.
For example: /stage/<?>/<?>/IN/file.DAT
I am using the find command without success:
find /stage -name IN -a -name '*.DAT' -print
What is the correct logic and syntax? Thank you for the help. (5 Replies)
Hi Forum,
I am using the below command to find files older than x days in a directory excluding subdirectories. From the previous forums I got to know that prune command helps us not to descend in subdirectories. Though I am using it here, not getting the desired result.
cd $dir... (8 Replies)
I have a directory that is in the below order (the --- is not part of the directory tree, only there to help illustrate:
DATE --- main level
Folder1 --- level under DATE
plugin_out --- level under Folder1
variantCaller_out.40 --- level under plugin_out
001,002,003 --- level under... (3 Replies)
I have the below input data in a file and need to get the output as mentioned below. Need to sort the data by size(Asc/des)/by subdirectory
Below is the input which is there in a file:
120 /root/path2/part-00000-d3700305-428d-4b13-8161-42051f4ac5ed-c000.json
532 ... (3 Replies)
Discussion started by: ajarramuk
3 Replies
LEARN ABOUT HPUX
whereis
whereis(1) General Commands Manual whereis(1)NAME
whereis - locate source, binary, and/or manual for program
SYNOPSIS
dir... name...
DESCRIPTION
locates source, binary, and manuals sections for specified files. The supplied names are first stripped of leading path name components
and any (single) trailing extension of the form (such as Prefixes of resulting from use of SCCS are also dealt with. then attempts to
locate the desired program in a list of standard places.
Options
recognizes the following command-line options:
Limit search to binary files.
Can be used in conjunction with or
Limit search to source-code files.
Can be used in conjunction with or
Limit search to manual entry files.
Can be used in conjunction with or
Search for unusual entries.
A file is said to be unusual if it does not have one entry of each requested type. Thus, searches for those files in
the current directory that have no corresponding manual entry.
Limit search to binaries located in one or more specified directories.
Can be used in conjunction with or
Limit search to source files located in one or more specified directories.
Can be used in conjunction with or
Limit search to manual entry files
located in one or more specified directories. Can be used in conjunction with or
Terminates the last directory list
or options) and identifies the start of file names.
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
EXAMPLES
Find all the files in that are not documented in with source files in
WARNINGS
uses the system call (see chdir(2)) to run faster. Therefore, path names given with the and options must be absolute path names.
AUTHOR
was developed by the University of California, Berkeley.
FILES whereis(1)