Hi,
I'm using AIX version 5.3 currently. I'm trying to create a user id, e.g. andyleong, which the system prompted the length is too long.
1. I would like to know is that the length of user id is limited to maximum 8 characters for AIX.
2. Is it apply to all versions of AIX?
If no... (2 Replies)
Hi,
Could any one please let me know what is the maximum number of characters
that will fit into a single line of a flat file on a unix.
Thanks. (1 Reply)
Hello everyone.
I am trying to set up a monitor based on a "top" command statistic as follows:
top -bc -n1 > output.txt
I've put this command into a small script which is called by a cron... but there is something strange happening: the cron is limiting the output to output.txt to 80... (3 Replies)
I have a script that outputs the weather on two lines.
If possibly I would like to set a character limit on them
Currently it outputs something like
but I would like to limit the lines so appends an ellipsis if nescessary:
This is the script
#! /bin/bash
curl -s --connect-timeout... (2 Replies)
Hey guys and gals,
Working on a script to limit the reoccurrance of characters in a line.
sed "/\(.\).*\1/d" -i file.txt
sed "/\(.\).*\1.*\1/d" -i file.txt
sed "/\(.\).*\1.*\1.*1/d" -i file.txt
..
To limit character reoccurance with 1x, 2x, 3x etc.
However I would like to be able to... (2 Replies)
In my old shop, we only had AIX machines there (all of version 6.1 ). FTP ports were not open for these AIX machines because of some security thing. So, we can't ftp scripts in ASCII mode.
When we wanted to copy huge scripts (shell scripts, sql scripts , ..etc) from our Windows based laptop... (6 Replies)
hi Gurus,
I need separate a file which is one huge line to multiple lines based on certain number of charactors. for example:
abcdefghi high abaddffdd
I want to separate the line to multiple lines for every 4 charactors.
the result should be
abcd
efgh
i hi
gh a
badd
ffdd
Thanks in... (5 Replies)
Hi, I need some help with this:
I'm making a script which does a couple of things with image files. The script is supposed to echo the number of each image it is processing like this:
Processing image1.jpgThe problem is with images with very long filenames, so I want to know how to limit the... (5 Replies)
Discussion started by: Shadow_Reaper
5 Replies
LEARN ABOUT DEBIAN
ebook::tools::msreader
EBook::Tools::MSReader(3pm) User Contributed Perl Documentation EBook::Tools::MSReader(3pm)NAME
EBook::Tools::MSReader - Helper code for working with Microsoft Reader (.lit) e-books.
SYNOPSIS
use EBook::Tools::MSReader qw(find_convertlit find_convertlit_keys
system_convertlit);
$EBook::Tools::MSReader::convertlit_cmd = '/opt/convertlit/clit';
$EBook::Tools::MSReader::convertlit_keys = '/opt/convertlit/keys.txt';
my $convertlit = find_convertlit();
my $keyfile = find_convertlit_keys();
system_convertlit(infile => 'myfile.lit',
dir => 'myfile-unpacked');
PROCEDURES
All procedures are exportable, but none are exported by default.
"find_convertlit()"
Attempts to locate the convertlit executable by making a test execution on predicted locations (including just checking PATH) and looking
in the EBook::Tools user configuration directory (see "userconfigdir()" in EBook::Tools.
Returns the system command used for a successful invocation, or undef if nothing worked.
This will use package variable $convertlit_cmd as its first guess, and set that variable to the return value as well.
"find_convertlit_keys($filename)"
Attempts to locate the convertlit "keys.txt" file by checking predicted filenames, both in the current working directory and in the
EBook::Tools user configuration directory (see "userconfigdir()" in EBook::Tools.
If $filename is provided, the file "basename-keys.txt" will also be checked in both locations.
Returns the name of the first file found, or undef if nothing was found.
This will use package variable $convertlit_keys as its first guess, and set that variable to the return value as well.
"system_convertlit(%args)"
Runs "convertlit" to extract or downconvert a MS Reader .lit file. The procedures find_convertlit() and find_convertlit_keys() are both
called to locate necessary helper files.
Returns the return value from convertlit, or undef if convertlit or the input file could not be found, or neither output file nor directory
is specified.
Arguments
o "infile"
The input filename. If not specified or invalid, the procedure croaks.
o "outfile"
The output filename. If this is specified convertlit will perform a downconversion.
o "dir"
The output directory. If this is specified, and "outfile" is not, convertlit will perform an extraction. If both this and "outfile"
are specified, convertlit will downconvert and place the downconverted file into the specified directory.
o "keyfile"
The location of the "keys.txt" file containing the encryption keys, if available. This is only required if the ".lit" file is DRM-
protected and package variable $convertlit_keys does not point to the correct file.
BUGS AND LIMITATIONS
o All handling happens through ConvertLIT as an external helper. Native Perl code may eventually be written to handle non-DRMed
extraction.
o Unit tests are unwritten
AUTHOR
Zed Pobre <zed@debian.org>
LICENSE AND COPYRIGHT
Copyright 2008 Zed Pobre
Licensed to the public under the terms of the GNU GPL, version 2.
ConvertLIT (not included) is copyright 2002, 2003 Dan A. Jackson, and licensed under the terms of the GNU GPL, version 2 or later.
perl v5.10.1 2012-01-05 EBook::Tools::MSReader(3pm)