01-06-2009
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi guys,
I want to copy folder and sub folders only. I don't want the files. If i use cp -r command it will copy entirely with files.
Could any one suggest me.
Thanks in advance (1 Reply)
Discussion started by: karthik82
1 Replies
2. UNIX for Advanced & Expert Users
Scenario:
I would want to copy my / to /mnt, and to avoid recursion exclude /mnt.
cp -avx / /mnt
If i use the above i believe it would run recursively, and end up in mess. So how to do it ?!
Basically this / is sda1, and /mnt is sda2 and sda1 is where only OS is available & currently... (2 Replies)
Discussion started by: thegeek
2 Replies
3. UNIX for Advanced & Expert Users
Hi
I want to copy the structure from one place to another.
-> cd /hol/;
-> find . -type d | cpio -pvdm /abc/cat;
while copying the structure I want to exclude some directories like test1 and Test.
I have read somewhere that this can be done with -prune option.
Could anyone... (2 Replies)
Discussion started by: soumodeep123
2 Replies
4. UNIX for Dummies Questions & Answers
I'm Unix. I'm looking at "df" on Unix now and below is an example. It's lists the filesystems out in 512-blocks, I need this in 4k blocks. Is there a way to do this in Unix or do I manually convert and how?
So for container 1 there is 7,340,032 in size in 512-blocks. What would the 4k block be... (2 Replies)
Discussion started by: rockycj
2 Replies
5. Shell Programming and Scripting
Hello,
I have a file like this:
FILE.TXT:
(define argc :: int)
(assert ( > argc 1))
(assert ( = argc 1))
<check>
#
(define c :: float)
(assert ( > c 0))
(assert ( = c 0))
<check>
#
now, i want to separate each block('#' is the delimeter), make them separate files, and then send them as... (5 Replies)
Discussion started by: paramad
5 Replies
6. UNIX for Dummies Questions & Answers
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)
Discussion started by: lifechamp
0 Replies
7. Shell Programming and Scripting
my directory structure is like below:
basedir\
p.txt
q.htm
r.java
b\
abc.htm
xyz.java
c\
p.htm
q.java
rst.txt
my requirement is i want to copy all the files and directories... (0 Replies)
Discussion started by: ajayyadavmca
0 Replies
8. Shell Programming and Scripting
Hello,
Searched for a while and found some "line-to-column" script. My case is similar but with multiple fields each row:
S02 Length Per
S02 7043 3.864
S02 54477 29.89
S02 104841 57.52
S03 Length Per
S03 1150 0.835
S03 1321 0.96
S03 ... (9 Replies)
Discussion started by: yifangt
9 Replies
9. UNIX for Dummies Questions & Answers
How to Copy non-empty files into subdirectory
I have directory A
there are bunch of files: a.txt a.txt.target b.txt b.target.txt.......
How can i find out the non-empty file within *.txt.target and copy them into a subdirectory B?
Thank you. (2 Replies)
Discussion started by: grace_shen
2 Replies
10. Web Development
I have an input form with several fields. What I would like to achieve is to auto populate or copy certain fields if they are empty when the form is submitted. I would like to use php if not then javascript but not jquery if possible - I have sort of had a go but I really have no idea... (4 Replies)
Discussion started by: barrydocks
4 Replies
LEARN ABOUT DEBIAN
ntfscmp
NTFSCMP(8) System Manager's Manual NTFSCMP(8)
NAME
ntfscmp - compare two NTFS filesystems and tell the differences
SYNOPSIS
ntfscmp [OPTIONS] DEVICE1 DEVICE2
DESCRIPTION
The ntfscmp program makes a comparison between two NTFS filesystems from all aspects and reports all variances it finds. The filesystems
can be on block devices or images files. Ntfscmp can be used for volume verification however its primary purpose was to be an efficient
development tool, used to quickly locate, identify and check the correctness of the metadata changes made to NTFS.
If one is interested only in the NTFS metadata changes then it could be useful to compare the metadata images created by using the --meta-
data option of ntfsclone(8) to eliminate the usually uninteresting timestamp changes.
The terse output of ntfscmp is intentional because the provided information is enough in each case to determine the exact differences. This
can be achieved, for instance, if one compares the verbose outputs of ntfsinfo(8) for each reported inodes by the diff(1) utility.
OPTIONS
Below is a summary of the options that ntfscmp accepts.
-P, --no-progress-bar
Don't show progress bars.
-v, --verbose
More informational output.
-h, --help
Display help and exit.
EXIT CODES
The exit code is 0 on success, non-zero otherwise.
KNOWN ISSUES
No problem is known. If you would find otherwise then please send your report to the development team: ntfs-3g-devel@lists.sf.net
AUTHOR
ntfscmp was written by Szabolcs Szakacsits. It was ported to ntfs-3g by Erik Larsson.
AVAILABILITY
ntfscmp is part of the ntfs-3g package and is available from:
http://www.tuxera.com/community/
SEE ALSO
ntfsinfo(8), ntfscat(8), diff(1), ntfsclone(8), ntfsprogs(8)
ntfs-3g 2012.1.15AR.5 April 2006 NTFSCMP(8)