08-28-2007
Find cmd not working as expected
Hi,
i wan to search the file starting with Admin into the directory Output. I am running below command:
find /appl/Output -name "Admin*" -prune
but this command is going into the sub directories present under output. I do not want to search under sub directories. Any help will be highly appreciated.
Thanks!!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello.
Consider the following magic words:
# ls `which adduser`
ls: /usr/sbin/adduser: No such file or directory
#
Hmmm...
Then:
# ls /usr/sbin/adduser
/usr/sbin/adduser
#
Now what?
Unforunately this little sniippet is used in my debian woody server's mysql pre install script.... (2 Replies)
Discussion started by: osee
2 Replies
2. Shell Programming and Scripting
HI all,
i want to run various Unix cmds thru a java prg. following is the code which i have written.
-------------------------------------------------------------------
import java.io.*;
class Run
{
public static void main(String args)
{
String ls_str;
try{
Process cmd_su =... (1 Reply)
Discussion started by: sonbag_pspl
1 Replies
3. UNIX for Dummies Questions & Answers
I have a script with a find command using xargs to copy the files found to another directory. The find command is finding the appropriate file, but it's not copying. I've checked permissions, and those are all O.K., so I'm not sure what I'm missing. Any help is greatly appreciated.
This is... (2 Replies)
Discussion started by: mpflug
2 Replies
4. Solaris
find . -type f -mtime -1 -ls
command not working in sun solaris 5.8 (4 Replies)
Discussion started by: navjotbaweja
4 Replies
5. Shell Programming and Scripting
I am trying to copy 2 types of files so I can archive them. I tested with a set of commands:
touch -t $(date -d "-60 day" +%Y%m%d) WORKDIR/REF
find TARGETDIR/ -type f -maxdepth 1 -iname \*.out\* -or -iname \*.log\* ! -newer WORKDIR/REF -exec ls -l {} \;
This correctly lists any files in the... (2 Replies)
Discussion started by: prismtx
2 Replies
6. Shell Programming and Scripting
total=0
seq 1 5 | while read i ; do
total=$(($total+$i))
echo $total
done
echo $totalThis outputs:
1
3
6
10
15
0whereas I am expecting:
1
3
6
10
15
15My bash version: (4 Replies)
Discussion started by: meharo
4 Replies
7. Red Hat
how unix users able to change their password even if they have only read permissions and how backend process will be happening can u explain me which are files need to involved in this process (3 Replies)
Discussion started by: ponmuthu
3 Replies
8. Shell Programming and Scripting
I have the following files in a directory
> ls -1 /tmp/test/dir/
file with spaces 1.ogg
file with spaces 2.oggI am running the following to echo the filenames but alter the file extension on the files to .mp3 instead of .ogg ( I am going to run ffmpeg against the files ultimately, but keeping... (2 Replies)
Discussion started by: jelloir
2 Replies
9. UNIX for Advanced & Expert Users
I ran into the following and still do not understand entirely the rationale behind this. If someone could explain why things are as they are I'd be thankful.
The following was tested on AIX 7.1 with ksh88, but i suspect that to be ubiquitous. In an installation routine i had to create a set of... (6 Replies)
Discussion started by: bakunin
6 Replies
10. UNIX for Advanced & Expert Users
Greetings,
For housekeeping, I use the following command:
find /some/path -type f -name "*log*" ! -exec fuser -s "{}" 2>/dev/null \; -exec ls -lh {} \;
It finds all log files not currently in use by a process and manipulates them.
This command always works on linux and redhat machines,... (2 Replies)
Discussion started by: dampio
2 Replies
LEARN ABOUT HPUX
vparadmin
vparadmin(1M) vparadmin(1M)
NAME
vparadmin - modifies attributes for the virtual partition flexible administrative capability
SYNOPSIS
vp_name] | |
DESCRIPTION
The command is used to add or delete a Designated-Admin vPar. It can also be used to change the virtual partition flexible administrative
password.
Options are valid when the virtual partition flexible administrative capability is enabled.
Options
recognizes the following command line options and arguments. The options are mutually exclusive.
Adds the virtual partition
to the Designated-Admin vPar list in a secure virtual partition environment. It will prompt for the existing virtual parti-
tion flexible administrative password before allowing the addition.
Deletes the virtual partition
from the Designated-Admin vPar list. It will prompt for the existing virtual partition flexible administrative password
before allowing the deletion.
Changes the virtual partition flexible administrative password.
It will prompt for the old password for validation.
Displays the Designated-Admin vPar list.
If no arguments are supplied, indicates whether the virtual partition flexible administrative capability is enabled or disabled.
SECURITY RESTRICTIONS
This command is restricted to processes owned by a superuser.
RETURN VALUE
The command exits with one of the following values:
Successful completion.
One or more error conditions occurred.
EXAMPLES
Use vparadmin without any options:
The virtual partition fle xible administrative capability is disabled.
Add the name of the virtual partition called to the Designated-Admin vPar list:
---------- Designated-Admin virtual partitions ----------
Oslo
To change the virtual partition flexible administrative password:
Old password:
New password:
Re-enter new password:
vPar flexible administrative password successfully changed.
ERRORS
displays error messages on standard error for any of the following conditions:
o An invalid option is specified.
o An invalid value is specified for an option or a value is omitted.
o does not exist in the monitor database.
o One or more options are specified more than once.
AUTHOR
was developed by the Hewlett-Packard Company.
SEE ALSO
vparboot(1M), vparcreate(1M), vparmodify(1M), vparremove(1M), vparreset(1M), vparresources(5), vparstatus(1M), vpmon(1M).
vparadmin(1M)