I couldn't find the original thread that I created and since I didn't get a definitive answer, I figured I'd try again. Maybe this time I can describe what I want a little better.
I've got two files, each with thousands of names all separated by new line. I want to know if 'name in file1'... (2 Replies)
Hello Friends,
I have .tar files which exists under different directories after the below code is run:
find . -name "*" -type f -print | grep .tar > tmp.txt
cat tmp.txt
./dir1/subdir1/subdir2/database-db1_28112009.tar
./dir2/subdir3/database-db2_28112009.tar... (2 Replies)
I have in directory /media/AUDIO/WAVE many .mp3 files with names like:
my filename_01of02.mp3
my filename_02of02.mp3
Your File_01of06.mp3
Your File_02of06.mp3
etc....
In the same directory, /media/AUDIO/WAVE, I have many folders with names like
9780743579490
9780743579491
etc..
Inside... (7 Replies)
Hi,
I am new in unix.
I have below requirement:
I have two files at the same directory location
File1.txt and File2.txt (just an example, real scenario we might have File2 and File3 OR File6 and File7....)
File1.txt has :
header1
record1
trailer1
File2.txt has:
header2
record2... (4 Replies)
Dear Gurus,
I have 57 tab-delimited different text files, each one containing entries in 3 columns. The first column in each file contains names of objects. Some names are present in more than one file. I would like to find those names and store them in a separate text file, preferably with a... (6 Replies)
I have two files like this:
fileA.net
A
B
C
fileA.dat
1
2
3
and I want the output
output_expected
A 1
B 2
C 3
I know that the easier way is to do a paste fileA.net fileA.dat, but the problem is that I have 10,000 couple of files (fileB.net with fileB.dat; fileC.net with... (3 Replies)
Hi,
I have a file1 like this:
ABAT
ABCA1
ABCC1
ABCC5
ABCC8
ABCE1
ABHD2
ABL1
CAMTA1
ACBD3
ACCN1
And I have a second file like this:
chr19 46118590 46119564 MACS_peak_1499 3100.00 chr19 46122009 46148405 CYP2B7P1 -2445
chr1 7430312 7430990... (7 Replies)
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
LEARN ABOUT DEBIAN
cam::pdf::decrypt
CAM::PDF::Decrypt(3pm) User Contributed Perl Documentation CAM::PDF::Decrypt(3pm)NAME
CAM::PDF::Decrypt - PDF security helper
LICENSE
See CAM::PDF.
SYNOPSIS
use CAM::PDF;
my $pdf = CAM::PDF->new($filename);
DESCRIPTION
This class is used invisibly by CAM::PDF whenever it detects that a document is encrypted. See new(), getPrefs() and setPrefs() in that
module.
FUNCTIONS
$pkg->new($pdf, $ownerpass, $userpass, $prompt)
Create and validate a new decryption object. If this fails, it will set $CAM::PDF::errstr and return undef.
$prompt is a boolean that says whether the user should be prompted for a password on the command line.
$self->decode_permissions($field)
Given a binary encoded permissions string from a PDF document, return the four individual boolean fields as an array:
print boolean
modify boolean
copy boolean
add boolean
$self->encode_permissions($print, $modify, $copy, $add)
Given four booleans, pack them into a single field in the PDF style that decode_permissions can understand. Returns that scalar.
$self->set_passwords($doc, $ownerpass, $userpass)
$self->set_passwords($doc, $ownerpass, $userpass, $permissions)
Change the PDF passwords to the specified values. When the PDF is output, it will be encrypted with the new passwords.
PERMISSIONS is an optional scalar of the form that decode_permissions can understand. If not specified, the existing values will be
retained.
Note: we only support writing using encryption version 1, even though we can read encryption version 2 as well.
$self->encrypt($doc, $string)
Encrypt the scalar using the passwords previously specified.
$self->decrypt($doc, $string)
Decrypt the scalar using the passwords previously specified.
AUTHOR
See CAM::PDF
perl v5.14.2 2012-07-08 CAM::PDF::Decrypt(3pm)