'find' takes one or more directories before the other arguments, allowing you to tell it precisely where to look inside.
-print is usually redundant, since it does that by default unless you've told it to take a different action like -exec.
Quote:
Originally Posted by kim1980
Hi,
How can i find the types of files in some directory(~/mydir) that start with word "fix" then followed by number 3, 4, 7 or 8 and end with .ccp or .in
Quote:
How can i find the total number of files that are larger than 5000 bytes in specific directory?, I can do it by current directory by using
find -size +5000c -print | wc -l
but how to find in specific directory ex: /home/user
Where can I find the source code to basic unix core utilities like less, wget, and unzip?
I'm on a HP-UX system that is missing a lot of basic tools. I Don't have admin access to the box. Google searches won't give me the source code.
I would like to install some of the missing tools, like... (4 Replies)
I am looking a script which will find garbase directories (10 char. long)..which need to delete empty dir excluding symlink and system directories.
I tried this partial script but it just find directories create a file which contains link directories..can somebody help me to complete this... (4 Replies)
Hi, sorry for my english,
i want to find the C-sources of the compiler gcc because i must create a compiler for an educational architecture made by my information technology professor. He told me that i must start from this sources, compile the gcc with them (pratically "auto-compile" the... (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)
Hello.I have been trying to solve the following problem, but to no avail. If anyone could please give me some indications, or anything, it would be amazing.
A C source program and a type name are given. Determine from source,
the list of the global variables having the given type.
For each... (5 Replies)
Hi Friends,
On one of my server which having direct connection to internet without firewall ..am seeing a established connection with SSH .. am not getting how ..there no login but I can see this established connection .
## have hidden original IPs with below notations for security concerns .... (0 Replies)
Hello Guys,
Someone or, some tool has killed the application process with signal 9 (kill -9) . How to track that in HP-UX?
On AIX we can use light-weight tool called ProbeVue to track it but not sure how to do it on HP-UX. Appreciate your help.
Kelly
Closed because this is... (0 Replies)
Hello Guys,
Someone or, some tool has killed the application process with signal 9 (kill -9) . How to track that in Solaris?
On AIX we can use light-weight tool called ProbeVue to track it but not sure how to do it on Solaris. Appreciate your help.
Kelly (3 Replies)
Hello,
i have multiple directories on my server. i need to find specific word like lets says for e.g IPV6 from those directories. can somebody tell me the right command which will let me to that? (8 Replies)
Discussion started by: Jared
8 Replies
LEARN ABOUT MOJAVE
shar
SHAR(1) BSD General Commands Manual SHAR(1)NAME
shar -- create a shell archive of files
SYNOPSIS
shar file ...
DESCRIPTION
shar writes an sh(1) shell script to the standard output which will recreate the file hierarchy specified by the command line operands.
Directories will be recreated and must be specified before the files they contain (the find(1) utility does this correctly).
shar is normally used for distributing files by ftp(1) or mail(1).
SEE ALSO compress(1), mail(1), tar(1), uuencode(1)BUGS
shar makes no provisions for special types of files or files containing magic characters.
EXAMPLES
To create a shell archive of the program ls(1) and mail it to Rick:
cd ls
shar `find . -print` | mail -s "ls source" rick
To recreate the program directory:
mkdir ls
cd ls
...
<delete header lines and examine mailed archive>
...
sh archive
HISTORY
The shar command appears in 4.4BSD.
SECURITY CONSIDERATIONS
It is easy to insert trojan horses into shar files. It is strongly recommended that all shell archive files be examined before running them
through sh(1). Archives produced using this implementation of shar may be easily examined with the command:
egrep -v '^[X#]' shar.file
4.4BSD June 6, 1993 4.4BSD