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... (1 Reply)
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)
hi all....
I'm a newbie to Shell scripting and am trying to make a simple script that can unpack a variety of .tgz , .zip, .tar or .tar.gz archives to the a current directory
i want the script to create a folder equivalent to the base name of the archive and then move the archive to a... (18 Replies)
I understand that in order to run basic unix commands I would normally type at the prompt, I would have to use the following format
system(ls -l);
or
exec(ls -l);
But when I actually try to use the command, the script fails to compile and keeps telling me there is an error with this line. ... (1 Reply)
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)
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)
Are the above commands does the same job ?
same functionaliy ?
If so, why do we have three utilities for the same functinality. (1 Reply)
Discussion started by: frintocf
1 Replies
LEARN ABOUT LINUX
git-unpack-objects
GIT-UNPACK-OBJECTS(1) Git Manual GIT-UNPACK-OBJECTS(1)NAME
git-unpack-objects - Unpack objects from a packed archive
SYNOPSIS
git unpack-objects [-n] [-q] [-r] [--strict] < <pack-file>
DESCRIPTION
Read a packed archive (.pack) from the standard input, expanding the objects contained within and writing them into the repository in
"loose" (one object per file) format.
Objects that already exist in the repository will not be unpacked from the pack-file. Therefore, nothing will be unpacked if you use this
command on a pack-file that exists within the target repository.
See git-repack(1) for options to generate new packs and replace existing ones.
OPTIONS -n
Dry run. Check the pack file without actually unpacking the objects.
-q
The command usually shows percentage progress. This flag suppresses it.
-r
When unpacking a corrupt packfile, the command dies at the first corruption. This flag tells it to keep going and make the best effort
to recover as many objects as possible.
--strict
Don't write objects with broken content or links.
GIT
Part of the git(1) suite
Git 1.8.5.3 01/14/2014 GIT-UNPACK-OBJECTS(1)