ok guys and gals at the moment i am perplexed (prolly cuz i been looking at it to long) but here it is.
OS: sol8
perlver: 5.8.0
shell: ksh
answer must be in perl!!
issue:
when i use pack() it packs the data at the front of the requested field space. normally it wouldnt be a problem if people followed the standard for EDI but nooooo so now this is my problem. heh
I need it to pack the data from the back.
Here is an example.
i have a number $a=12
I have to manually add ".00" onto it and pack it with spaces to fit in a 12 char field which is then assiged to a variable so i can use it later on.
so:
$a=12
$b="${a}.00"
$c="xxxxxxx12.00" (x represents a space) BUT I CANT FIGURE IT OUT.
Last edited by Optimus_P; 10-02-2002 at 11:04 AM..
ok this is my problem.
I have a variable that is very specific in spaceing but when ever i try to use the variable i only get 1 empty space vs 3 for example.
$ list="list me"
$ echo $list
list me
$ list2="one two three"
$ echo $list2
one two three
i have tried... (7 Replies)
Hello everyone.
I wrote a perl script to get the two answers from a value: x.
By this, I want to do sqrt($x) in different precision.
#!/usr/bin/perl
print "Input the initial value x:\n";
chomp($x=<STDIN>);
$comp=sqrt($x);
$float_value=pack("f", $comp);
$double_value=pack("d", $comp);... (2 Replies)
How do I pack (using tar zcvf ?) the current folder inluding all files and folders ??
I need to be sure to get all files and folders/subfolders...
Later I will unpack into a new folder on a new server..
Appreciate any help.. (3 Replies)
I have a file that contains user id and corresponding password.
Lets say password is "help". The below command will create a hex value for string "help".
perl -e 'print unpack "H*","help"'
So now password is in encoded format.
Then I decoded it in the script where am fetching the... (1 Reply)
I wondering if anybody tried already or know about the performance to process some Oracle staff from Perl.
I see it could be done by the DBI pachage (so, I guess, it is interface to the OCI, but who know how sufficiant it is..,) with all gemicks around (define, open, parce, bind,.. ), or it can... (8 Replies)
Hello,
I found some code on line.
Is a python function that bring up an Internet interface, here the code:
# Get existing device flags
ifreq = struct.pack('16sh', 'wlan0', 0)
flags = struct.unpack('16sh', fcntl.ioctl(sockfd, SIOCGIFFLAGS, ifreq))
I'm starting... (1 Reply)
Hi ALL,
I am running weblogic portal(9.2.2) on solaris and i wanted to apply maintenance pack and upgrade it to 9.2.3. Without using
x-windows system how can i apply maintenance pack.? (0 Replies)
Hi I have a code like this:
sub WriteEbcdicHeader
{
my $Htimestamp=localtime();#i need to pack and unpack this
my $eheaderline = $Htimestamp;
#packing has to be done here
#unpacking has to be done after packing
print $EOUTFILE
return $eheaderline;
}
sub WriteEbcdicTrailer
{
... (5 Replies)
Discussion started by: rbathena
5 Replies
LEARN ABOUT SUSE
git-verify-pack
GIT-VERIFY-PACK(1) Git Manual GIT-VERIFY-PACK(1)NAME
git-verify-pack - Validate packed git archive files
SYNOPSIS
git verify-pack [-v|--verbose] [--] <pack>.idx ...
DESCRIPTION
Reads given idx file for packed git archive created with the git pack-objects command and verifies idx file and the corresponding pack
file.
OPTIONS
<pack>.idx ...
The idx files to verify.
-v, --verbose
After verifying the pack, show list of objects contained in the pack and a histogram of delta chain length.
-s, --stat-only
Do not verify the pack contents; only show the histogram of delta chain length. With --verbose, list of objects is also shown.
--
Do not interpret any more arguments as options.
OUTPUT FORMAT
When specifying the -v option the format used is:
SHA1 type size size-in-pack-file offset-in-packfile
for objects that are not deltified in the pack, and
SHA1 type size size-in-packfile offset-in-packfile depth base-SHA1
for objects that are deltified.
AUTHOR
Written by Junio C Hamano <gitster@pobox.com[1]>
DOCUMENTATION
Documentation by Junio C Hamano
GIT
Part of the git(1) suite
NOTES
1. gitster@pobox.com
mailto:gitster@pobox.com
Git 1.7.1 07/05/2010 GIT-VERIFY-PACK(1)