I just discovered, to my dismay, the following part of the cut man page:
-f, --fields=LIST
select only these fields;
also print any line that contains no delimiter character, unless the -s option is specified
The -s option toggles the printing of lines with no delimiters.
In most... (3 Replies)
Hi,
I have a file which have set of rows and has to create separate files based on the id.
Eg:
001_AHaris020
001_ATony030
002_AChris090
002_ASmit060
003_AJhon001
Output: I want three files like 001_A.txt, 002_A.txt and 003_A.txt.
001_A.txt should have
... (1 Reply)
Hello,
I have data where words are separated by a delimiter. In this case "="
The number of delimiters in a line can vary from 4to 8. The norm is 4.
Is it possible to have a script where the file could be separated starting with highest number of delimiters and ending with the lowest
An... (8 Replies)
Hi,
I have a problem to concatenate the lines based on number of delimiters (if the delimiter count is 9 then concatenate all the fields & remove the new line char bw delimiters and then write the following data into second line) in a file.
my input file content is
Title| ID| Owner|... (4 Replies)
Hi I have some data where each line will look something like this:
Time, name, i.d number, RB: 0.9949; RMQA: 0.0005; RB: 0.9951; RRA: 0.3; RA: 0.995; RA: 0.996; EA: 0.99105
etc.
I want to cut out all the RB: and RA:'s with the numbers after.
so in the above example i'd be left... (3 Replies)
here below is sample string
null pointer dereference of 'resourceList' where null is returned from a method/opt/bld/fetch/ds/interzone/notification/LocalLineStatusNotificationListener.java:79
null pointer dereference of 'reList' where null is returned from a... (3 Replies)
I'm having bother getting both lines contained in a file to output as the same value.
A simple example:
john:123456:123:456:doe
john:123456:123:doe
cut -d: -f1,4 input file
john:456
john:doe ^ first line should be same as second.
trick one for me, i know why it's because of the... (4 Replies)
Hi,
I have a requirement where in I need to insert delimiters before the last column of the total delimiters is less than a specified number.
Say if the delimiters is less than 139, I need to insert 2 columns ( with blanks) before the last field
awk -F 'Ç' '{ if (NF-1 < 139)} END { "Insert 2... (5 Replies)
When cut encounters consecutive delimiters it seems to count each instance as a field, at least with spaces. Is this typical behavior for any delimiter?
#:~$ ifconfig eth0 | grep HWaddr
eth0 Link encap:Ethernet HWaddr 94:de:80:a7:6d:e1
#:~$ ifconfig eth0 | grep HWaddr | cut -d " " -f... (6 Replies)
BASH : I have a very long list I am parsing through:
10/10/19... (5 Replies)
Discussion started by: jeffs42885
5 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)