Dear friends,
please tell me how to find the files which are existing in the current directory, but it sholud not search in the sub directories..
it is like this,
current directory contains
file1, file2, file3, dir1, dir2
and dir1 conatins
file4, file5
and dir2 contains
file6,... (9 Replies)
Hi,
I have defined an array which holds a couple of elements which are nothing but files names. I want to find the files in a directory for the matching file name(array elements) with less than 1 day old.
When I am trying to execute the code (as below), it gives an error.
Your help in this... (1 Reply)
How do I find all "regular" files on solaris(8) that are open for write ( +read as well).
I tried using pfiles, and lsof commands, but not sure how to get exactly what I wanted.
ps -e | awk '{ print $1 }' | xargs -i pfiles {} 2>/dev/null (10 Replies)
why is this giving me errors?
i type this in: find / -name "something.txt" 2>/dev/null
i get the following error messages:
find: bad option 2
find: path-list predicate-list
:confused: (5 Replies)
If I enter (simplified):
find . -printf "%p\n"
then all files in the output are prepended by a "." like
./local/share/test23.log
How can achieve that
a.) the leading "./" is omitted
and/or
b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
How can I recursively find all files in a directory and print out the file and first line number of any text blocks that match the below cases?
This would seem to involve find, xargs, *grep, regex, etc.
In summary, I want to find so-called empty "try-catch blocks" that do not contain code... (0 Replies)
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
These three finds worked as expected:
$ find . -iname "*.PDF"
$ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \)
$ find . -path "*_nobackup*" -prune -iname "*.PDF"
They all returned the match:
./folder/file.pdf
:b:
This find returned no matches:
$ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies
LEARN ABOUT PLAN9
srv
SRV(4) Kernel Interfaces Manual SRV(4)NAME
srv, 9fs, dk232, dkmodem - start network file service
SYNOPSIS
srv [ -m ] [net!]system[!service] [ srvname [ mtpt ] ]
9fs [net!]system [mountpoint]
dk232 [server]
dkmodem [telno]
DESCRIPTION
Srv dials the given machine and initializes the connection to serve the 9P protocol. It then creates in /srv a file named srvname. Users
can then mount (see bind(1)) the service, typically on a name in /n, to access the files provided by the remote machine. If srvname is
omitted, the first argument to srv is used. Option m directs srv to mount the service on /n/system or onto mtpt if it is given.
The specified service must serve 9P. Usually service can be omitted; when calling some non-Plan 9 systems, a service such as u9fs must be
mentioned explicitly.
The 9fs command does the srv and the mount necessary to make available the files of system on network net. The files are mounted on mount-
point, if given; otherwise they are mounted on /n/system. If system contains characters, only the last element of system is used in the /n
name.
9fs recognizes some special names, such as dump to make the dump file system available on /n/dump. 9fs is an rc(1) script; examine it to
see what local conventions apply.
Dk232 configures a serial line as a Datakit device and connects to a file server (default bootes) using 9fs.
Dkmodem dials a file server at telephone number telno and configures the line as a Datakit device using 9fs.
EXAMPLES
To see kremvax's and deepthought's files in /n/kremvax and /n/deepthought:
9fs kremvax
9fs hhgttg/deepthought
NOTE
The TCP port used for 9P is 564.
FILES
/srv/* ports to file systems and servers posted by srv and 9fs
SOURCE
/sys/src/cmd/srv.c
/rc/bin/9fs
/rc/bin/dk232
/rc/bin/dkmodem
SEE ALSO bind(1), dial(2), srv(3), ftpfs(4), dkconfig(8)SRV(4)