First off, please use descriptive thread titles. "Please.... help" is not descriptive at all. As a general rule: whatever you can leave out in a title without changing its factual meaning - leave out.
Second: it might be only me, but
along with the nature of the question makes my homework-o-meter spike out at "max". For homework there is a special forum and it is not allowed here.
I close this thread. If you want to have it opened again ask any moderator/administrator (including me) along with an explanation why this is not homework/coursework.
Is this possible? Let me know If I need specify further on what I am trying to do- I just want to spare you the boring details of my personal file management.
Thanks in advance-
Brian- (2 Replies)
I Need help for one requirement,
I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix.
Example:
Source Directory : \a
destination Directory : \a\b
File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt)
File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Can somebody help me with this? I'm sure it's a no-brainer if you know awk... but I don't.
Input:
Blah
Blah
Me love you
long time
Blah
Blah
awk magic with 'long time'
==>
Output:
Blah
Blah
Me love you long time (0 Replies)
Hi,
need to zip all files in a directory and move to another directory after the zip..
i am using this one but didnt help me...
zip -r my_proj_`date +%Y%m%d%H%MS`.zip /path/my_proj
mv in_proj_`date +%Y%m%d%H%M%S`.zip /path/source/
i am trying to zip all the files in my_proj... (0 Replies)
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Hi All,
Daily i am doing the house keeping in one of my server and manually moving the files which were older than 90 days and moving to destination folder.
using the find command . Could you please assist me how to put the automation using the shell script .
... (11 Replies)
Hi All,
We have main directory called "head"
under this we have several sub directories and under these directories we have sub directories.
My requirement is I have to find the SQL files which are having the string "procedure" under "head" directory and sub directories as well.
And create... (14 Replies)
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
LEARN ABOUT DEBIAN
vop_close
VOP_OPEN(9) BSD Kernel Developer's Manual VOP_OPEN(9)NAME
VOP_OPEN, VOP_CLOSE -- open or close a file
SYNOPSIS
#include <sys/param.h>
#include <sys/vnode.h>
int
VOP_OPEN(struct vnode *vp, int mode, struct ucred *cred, struct thread *td, struct file *fp);
int
VOP_CLOSE(struct vnode *vp, int mode, struct ucred *cred, struct thread *td);
DESCRIPTION
The VOP_OPEN() entry point is called before a file is accessed by a process and the VOP_CLOSE() entry point is called after a file is fin-
ished with by the process.
The arguments are:
vp The vnode of the file.
mode The access mode required by the calling process.
td The thread which is accessing the file.
fp The file being opened.
Pointer to the file fp is useful for file systems which require such information, e.g., fdescfs(5). Use 'NULL' as fp argument to VOP_OPEN()
for in-kernel opens.
The access mode is a set of flags, including FREAD, FWRITE, O_NONBLOCK, O_APPEND.
LOCKS
VOP_OPEN() expects vp to be locked on entry and will leave it locked on return.
VOP_CLOSE() expects at least a reference to be associated with the vnode and does not care whether the vnode is locked or not. The lock and
reference state is left unchanged on return. Note that vn_close expects an unlocked, referenced vnode and will dereference the vnode prior
to returning.
RETURN VALUES
Zero is returned on success, otherwise an error code is returned.
SEE ALSO vnode(9), VOP_LOOKUP(9)AUTHORS
This manual page was written by Doug Rabson.
BSD June 5, 2007 BSD