12-16-2009
Hi radoulov,
could you please eloborate on the command.
Thanks in advance
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
My question is if the simple but powerful shell scripts can extract data from a big data file by using a list of identifier. I used to put everything in the database and do joining, which sounds stupid but only way I knew. For example, my data file looks like,
... (3 Replies)
Discussion started by: mskcc
3 Replies
2. Shell Programming and Scripting
I have a very long string (millions of characters).
I have a file with start location and length that is thousands of rows long:
Start Length
5 10
16 21
44 100
215 37
...
I'd like to extract the substring that corresponds to the start and length from each row of the list:
I tried... (7 Replies)
Discussion started by: dcfargo
7 Replies
3. UNIX for Dummies Questions & Answers
HI,
i HAVE THE PROFILE LIST
ldapsearch -D cn=root -w root -p 389 mail=dgmp_ndl@bsnl.in
mail=dgmp_ndl@bsnl.in,o=Data Networks,o=Data Networks,o=Data Networks,o=Messagingdb,dc=bsnl,dc=in
I NEED TO SEPERATE ONLY THE MAIL ID
I m USING bash-2.05b$ ldapsearch -D cn=root -w root -p 389... (3 Replies)
Discussion started by: indoo.pathak
3 Replies
4. UNIX for Advanced & Expert Users
Need to search a pattern occurrence (count) in a specified file.
Below is the details
$ cat fruits
apple apple
ball ball
apple
ball ball ball
apple apple apple
cat cat
cat cat cat
apple
apple
Note: If I'll use the grep command with -c option then it'll count the 1st occurrence in... (6 Replies)
Discussion started by: tp2115
6 Replies
5. Shell Programming and Scripting
Hi Gents,
I have a file 1 like this
1 1000 20
2 2000 30
3 1000 40
5 1000 50
And I have other file 1 like
2 1
I would like to get from the file 1 the complete line which are in file 2, the key to compare is the column 2 then output should be.
2 2000 30.
I was trying to get it... (5 Replies)
Discussion started by: jiam912
5 Replies
6. Shell Programming and Scripting
Hi,
I have a file with more than 28000 records and it looks like below..
>mm10_refflat_ABCD range=chr1:1234567-2345678
tgtgcacactacacatgactagtacatgactagac....so on
>mm10_refflat_BCD range=chr1:3234567-4545678...
tgtgcacactacacatgactagtatgtgcacactacacatgactagta
.
.
.
.
.
so on
... (2 Replies)
Discussion started by: Diya123
2 Replies
7. Shell Programming and Scripting
Please can someone help with this?
I have a file with lines as follows:
word1 word2 word3 word4 word5 word6 word7 word8
word1 word2 word3 word4 word5 word6 word7 word8
word1 word2 word3 word4 word5 word6 word7 word8
word1 word2 word3 word4 word5 word6 word7 word8
When I use the... (7 Replies)
Discussion started by: Subhadeep_Sahu
7 Replies
8. Shell Programming and Scripting
Assume a string that contains one or multiple occurrences of three different keywords (abbreviated as "kw"). I would like to replace kw2 with some other string, say "qux". Specifically, I would like to replace that occurrence of kw2 that is the first one that is preceded by kw1 somewhere in the... (4 Replies)
Discussion started by: M Gruenstaeudl
4 Replies
9. Shell Programming and Scripting
I am trying to use awk to extract and print the first ocurrence of NM_ and NP_ with a : before in each line. The input file is tab-delimeted, but the output does not need to be. The below does execute but prints all the lines in the file not just the patterns. Thank you :).
file tab-delimeted
... (2 Replies)
Discussion started by: cmccabe
2 Replies
10. Shell Programming and Scripting
Hi, i have file file.txt with data like:
START
03:11:30 a
03:11:40 b
END
START
03:13:30 eee
03:13:35 fff
END
jjjjjjjjjjjjjjjjjjjjj
START
03:14:30 eee
03:15:30 fff
END
ggggggggggg
iiiiiiiiiiiiiiiiiiiiiiiii
I want the below output
START (13 Replies)
Discussion started by: Jyotshna
13 Replies
LEARN ABOUT DEBIAN
scrounge-ntfs
scrounge-ntfs(8) BSD System Manager's Manual scrounge-ntfs(8)
NAME
scrounge-ntfs -- helps retrieve data from corrupted NTFS partitions
SYNOPSIS
scrounge-ntfs -l disk
scrounge-ntfs -s disk
scrounge-ntfs [-m mftoffset] [-c clustersize] [-o outdir] disk start end
DESCRIPTION
scrounge-ntfs is a utility that can rescue data from corrupted NTFS partitions. It writes the files retrieved to another working file system.
Certain information about the partition needs to be known in advance.
The -l mode is meant to be run in advance of the data corruption, with the output stored away in a file. This allows scrounge-ntfs to recover
data reliably. See the 'NOTES' section below for recover info when this isn't the case.
OPTIONS
The options are as follows:
-c The cluster size (in sectors). When not specified a default of 8 is used.
-l List partition information for a drive. This will only work when the partition table for the given drive is intact.
-m When recovering data this specifies the location of the MFT from the beginning of the partition (in sectors). If not specified
then no directory information can be used, that is, all rescued files will be written to the same directory.
-o Directory to put rescued files in. If not specified then files will be placed in the current directory.
-s Search disk for partition information. (Not implemented yet).
disk The raw device used to access the disk which contains the NTFS partition to rescue files from. eg: '/dev/hdc'
start The beginning of the NTFS partition (in sectors).
end The end of the NTFS partition (in sectors)
NOTES
If you plan on using this program sucessfully you should prepare in advance by storing a copy of the partition information. Use the -l option
to do this. Eventually searching for disk partition information will be implemented, which will solve this problem.
When only one partition exists on a disk or you want to rescue the first partition there are ways to guess at the sector sizes and MFT loca-
tion. See the scrounge-ntfs web page for more info:
http://memberwebs.com/swalter/software/scrounge/
AUTHOR
Stef Walter <stef@memberwebs.com>
scrounge-ntfs June 1, 2019 scrounge-ntfs