Hello everybody,
i'm dummy for unix but i want to learn something.
i want to search the working directory and its subdirectories( all ) to find the files which are more than 1024 bytes.
So which commands must i learn?
Thanks to all. (13 Replies)
Im working on a project that basically imitates the find and whereis commands. The program will take in a file name or regular expression and, starting with the current directory search downwards and match any files with that pattern and prints the path name. I don't understand how to do this... (5 Replies)
Hi,
I would like to know is there any way to find/search filenames or directories inside the directories which has resticted permission.
When we use normal "find" command it returns "permission denied" message for the root directories or directories with restricted permissions.
Thanks (2 Replies)
Hi All,
I am Oracle Apps Tech guy, I have a requirement to find 777 permission is there or not for all Folders and Sub-folders
Under APPL_TOP (Folder/directory) with below conditions
i) the directory names should start with xx..... (like xxau,xxcfi,xxcca...etc)
and exclude the directory... (11 Replies)
Hi all,
Using grep command, i want to find the pattern of text in all directories and sub-directories.
e.g: if i want to search for a pattern named "parmeter", i used the command
grep -i "param" ../*
is this correct? (1 Reply)
Hi colleagues,
I need to search one file in all dierctories, i have O.S. AIX 5.3, my file began with cc, the others caracters i unknow.
Then i can to search one string in file in all dierctories.
Thank you for advanced. (8 Replies)
Hey guys,
I'm lost... I need to make a script that will work in this way:
./script.sh -e sh /usr/bin /home/student
this script will result in this output:
amuFormat.sh /usr/bin
gettext.sh /urs/bin
perfect.sh /home/student
the parameter -e <ext> gives you which... (2 Replies)
Hello.
I want to find a line that has "new = 0" in it, then search back based on field $4 () in the current line, and find the first line that has field $4 and "last fetch"
Grep or Awk preferred.
Here is what the data looks like:
2013-12-12 12:10:30,117 TRACE last fetch: Thu Dec 12... (7 Replies)
Lets say I have a massive directory which is filled with other directories all filled with different c++ scripts and I want a listing of all the scripts that contain the string: "this string". Is there a way to use a grep search for that? I tried:
grep -lr "this string" *
but I do not... (3 Replies)
Discussion started by: Circuits
3 Replies
LEARN ABOUT OSF1
whereis
whereis(1) General Commands Manual whereis(1)NAME
whereis - Locates files for programs
SYNOPSIS
whereis [-bms] [-u] [-BMS directory... -f] program...
The whereis command locates source, binary, and/or reference page files for the specified program program.
OPTIONS
The -b, -m, and -s options can be used in combination to restrict the search. Searches for an executable program. Searches for the refer-
ence page for a program. Searches for the sources of a program.
Use the -B, -M, and -S options to change or limit the places whereis searches. Specifies the binary directories to search. Specifies the
reference page directories to search. Specifies the source directories to search.
The other options that can be used with whereis are as follows: Terminates the last directory list and signals the start of program names.
Used with other options to indicate when there is no file for program in the default or specified directory or directories (source, binary,
or reference page).
DESCRIPTION
The whereis program locates source, binary, and reference pages for the specified programs. When looking for a match, the program names
are stripped of leading pathname components and any trailing extensions of the form (for example, s. resulting from the use of the Source
Code Control System see sccs(1), are also handled.
The default directories searched by the whereis command are as follows: /etc /etc/nls /sbin /usr/bin /usr/lbin /usr/lbin/spell /usr/ccs/lib
/usr/lib /usr/local /usr/hosts /usr/sbin
EXAMPLES
To find files matching cat in the default source, binary, and reference directories, enter: whereis cat To search for reference pages for
app13 in the directory /usr/local/man, enter: whereis -M /usr/local/man -f -f appl3 To find the programs in /usr/bin that do not have ref-
erence pages in /usr/share/man/man1 with source files in /usr/src/cmd, enter: whereis -u -M /usr/share/man/man1
-S /usr/src/cmd -f /usr/bin/* To find which files in the current directory either have no reference pages in the default reference
directories or have more than one, enter: whereis -m -u *
FILES
Default binary directories. Default binary directories. Default reference directories. Default source directories.
SEE ALSO
Commands: apropos(1), find(1), man(1), which(1), catman(8)whereis(1)