I also want to modify this code so that it executes mv command only if there is a blank line at end of file ie otherwise file time stamp remains untouched, is it possible?
I don't believe you can do that with mv. You may have to settle for a copy and remove the old one.
The above 'preserves' (hence the 'p') attributes, including the timestamp.
hi, i am on aix. i used smitty to remove a user..
but then found that its directory still exists....
so i have to remove the directory manually...
am i doing it the right way? (2 Replies)
Hello, somehow a directory called -r was created on one of my servers and I can't remove is using either rm or rmdir. Is there a way to remove this directory? Thank you.
-David (2 Replies)
What is the best way to completely remove dir with it's content ???
rmdir deletes only EMPTY dirs as i know.
The man page of remove function says "remove() deletes a name from the file system." Can it remove any dir recursively ??? :rolleyes: (7 Replies)
Hi,
I need to delete an empty directory in a temp directory except "dir5" (keep everything that is not empty).
Plese advise.
Here is an example of my directory.
/dir/temp/
dir1 - delete if this is empty
dir2 - delete if this is empty
dir3 - delete if this is empty
dir4 - delete if this... (7 Replies)
Hi,
I want to remove a directory recursively except the inside directories calles .SYNC (designsync dirs) I am looking for something like:
\rm -rf < find . * | grep -v .SYNC
The find works ok but I do not know how to redirect it.
Please help.
Regards,
Ziv:rolleyes: (1 Reply)
Hi,
I want to remove a directory recursively except the inside directories calles .SYNC (designsync dirs) I am looking for something like:
\rm -rf < find . * | grep -v .SYNC
The find works ok but I do not know how to redirect it.
Please help.
Regards,
Ziv (3 Replies)
By Mistake i created a directory named "-lrt" in one of my working directories and now i am not able to delete it , please suggest hw to delete this directory now ?
Thanks in advance. (1 Reply)
Hello my friends,
I have a directory called
log_old
when I try to delete it, it tells me no such file or directory.
Then I tried to run this command:
ls -lb
It tells me the directory name, it is: log_old1\177
!!
I tried to remove it using inode, using this... (4 Replies)
How to remove directory of a particular user (1 Reply)
Discussion started by: pspriyanka
1 Replies
LEARN ABOUT DEBIAN
snowdrop
SNOWDROP(1) General Commands Manual SNOWDROP(1)NAME
sd-eng, sd-engf, sd-c - text watermarking and watermark recovery
SYNOPSIS
sd-eng [-6] -i origfile newfile "Recipient" ["Comment"]
sd-eng [-6] -e origfile newfile
sd-eng [-6] -l
DESCRIPTION
snowdrop is a stenographic text watermarking and watermark recovery system. It is composed of three programs:
sd-eng Watermark normal English text.
sd-engf
Watermark fine quality English text, yeilding higher quality output but encoding less information.
sd-c Watermark C code.
The three programs operate similarly, with the same parameters and usage. The watermark is encoded in using a number of techniques, such
as whitespace reformatting, typo insertation, word substitutions, punctuation changes, and for C code, logic reordering, variable name man-
gling, etc.
The watermark is a md5sum, which is retreivable from as little as 5 or 10 lines of the watermarked document. Even large changes to a medium
sized document should not obscure the watermark, as it is stored redundently in multiple independent channels.
The three usage modes are adding a watermark, checking for the presense of a watermark, and listing the contents of your database of water-
marks. Note that to later check a watermark, you must retain a copy of the original, un-watermarked file.
OPTIONS -i Inject a watermark into a file. You must pass it the original file, the filename to output the watwrmarked version to, information
about who you intend the watermarked file for, and an optional comment.
-e Extract a watermark from a file. Needs the original file and the new file that you suspect bears the watermark.
-l Lists the contents of the watermark database. Each of the three programs will have a different list.
-6 Enable 64 bit watermarking. The default is a weak 32 bit watermark.
ENVIRONMENT
SD_SYNONYMS
This variable can be used to point snowdrop at a customized synonyms file.
FILES
~/.snowdrop/database
Database of watermarked files.
SEE ALSO
/usr/share/snowdrop/README
Explain snowdrop in more depth, its limitations, and how to write additional watermarking modules for other tpyes of files.
AUTHOR
Michal Zalewski <lcamtuf@coredump.cx>
SNOWDROP(1)