08-28-2007
Why are you using find if you are not recursing through directories?
echo /appl/Output/Admin*
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 OSF1
dxfileshare
dxfileshare(8) System Manager's Manual dxfileshare(8)
NAME
dxfileshare - Exports local directories and mounts directories from the network
SYNOPSIS
/usr/bin/X11/dxfileshare
DESCRIPTION
Use the File Sharing application, dxfileshare, to: Export (or share) local UNIX directories to the network Stop exporting UNIX local direc-
tories to the network Specify which directories mounted from the network are to be remounted every time the system is rebooted, that is,
add an entry to the /etc/fstab file Add, change, or delete NFS entries from the /etc/exports file Share local UNIX directories with a per-
sonal computer (PC) when Advanced Server for UNIX is installed on your system Display local directories that are shared (exported) with the
network Display network mounts (directories that can be mounted from the network)
The File Sharing application can also be invoked from the CDE Application Manager from the following categories:
Application Group: System_Admin
System Admin Subgroup: Daily Admin
Online help is available for the File Sharing application by clicking on any Help button or using the Help pull-down menu.
RESTRICTIONS
You must have root privileges to use certain features of File Sharing. Namely, the ability to export (or share) a directory or to modify
the properties of a directory that is already being exported.
You must have Advanced Server for UNIX installed on your system to share local directories with PCs.
FILES
Defaults that are shared by the graphical and command line user interface. File Sharing uses the same file as the Host Manager application.
File Sharing application File Sharing help volume Directory containing File Sharing application icons Application defaults file that sets
the default values for the X resources File Sharing message catalog Message catalog containing File Sharing location IDs for on-item help
i18n_motif_shared_text.cat
Message catalog containing application-independent messages i18n_motif_shared_text_LocIds.cat
Message catalog containing application-independent location IDs for on-item help
SEE ALSO
Commands: X(1X), automount(8), bcheckrc(8), mount(8), mountd(8), showmount(8), umount(8)
Functions: getfsstat(2), getmntinfo(3), getmntinfo_r(3), mount(2), mount(2sv), umount(2), umount(2sv), umount(3)
Files: exports(4), fstab(4), mountdtab(4)
Tru64 UNIX System Administration
ASU Installation and Administration Guide
ASU Concepts and Planning Guide
dxfileshare(8)