10-13-2011
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hey all,
I've been trying to learn Perl on my BSD box. When it came to printing the files out, it bothered me that the lines weren't numbered. So here's my little *crap* claim to some-form-of-fame Perl script which numbers files:
... (9 Replies)
Discussion started by: WIntellect
9 Replies
2. Linux
Hi
I am having a file with 243 lines..
The file format s given below
eg
P25787 hsa03050 1 P20618 hsa03050 1
P25786 hsa03050 1 P49721 hsa03050 1
P54132 hsa03440 1 Q13472 hsa03470 1
Q05513 hsa04530 hsa04910 hsa04930 3 Q04759 ... (0 Replies)
Discussion started by: binnybio
0 Replies
3. Shell Programming and Scripting
I wish to write a Perl program that will provide a listing of files in a directory. The files must be listed in sorted order by the file name.
• By default, the program displays only file names.
• By default, the program lists the files in the current directory.
• The program must provide the... (2 Replies)
Discussion started by: livewire06
2 Replies
4. Shell Programming and Scripting
could i get any help with how to link this program together. i dont know what to put where the X's are
print `flush`;
thank(); #print thank header
use Getopt::Std; # use declaration with the options function
getopts("ld:") or usage() and exit; ... (3 Replies)
Discussion started by: livewire06
3 Replies
5. Homework & Coursework Questions
Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Discussion started by: jdkirby
1 Replies
6. Shell Programming and Scripting
how would you exit out of a programm correctly, without having for the program to crash?
for example
print "Enter quit";
$input = <STDIN>;
if ($input eq "quit")
{
{QUIT THE PROGRAM}
}
else
{
print "invalid input";
}
one more thing, how do u exit a program "correctly", if... (3 Replies)
Discussion started by: bshell_1214
3 Replies
7. Shell Programming and Scripting
I want to traverse a durectory for a particular file. Situataion is like this. Path is ABC/a/c/g. it has around 100 folders in it.
Search a directory which has word "*latest*" in its path.
and then from the latest go through z/x/c to file final.html.
In total, i want it to go through... (4 Replies)
Discussion started by: hemasid
4 Replies
8. Shell Programming and Scripting
hi,
i have posted the same kind of the question in some other forum of the same site. but realized that it is supposed to be here so i am reposting it .this is the perl script written to check for particular pattern.
my file 1 would look like this
hwk:678:9878:asd:09: abc cfgb 12 nmjk ......... (3 Replies)
Discussion started by: anurupa777
3 Replies
9. Shell Programming and Scripting
can anyone help me out to write a code by connecting to the sql database and I need to print the list of tables present in the databse.
any ideas please. (1 Reply)
Discussion started by: ramkumar15
1 Replies
10. Shell Programming and Scripting
I created a program, so a kid can practice there math on it. It dispenses varies math problems and the kid must input an answer. I also want it to grade the work they have done, but I can't find the best place for it to print out the grade.
I have:
if ( $response =~ m/^/ ) {
$user_wants_to_quit... (1 Reply)
Discussion started by: germany1517
1 Replies
LEARN ABOUT DEBIAN
expack
expack(1) General Commands Manual expack(1)
NAME
expack - manipulate Flex files
SYNOPSIS
expack -a FLEXFILE FILE...
expack -c FLEXFILE FILE...
expack -x FLEXFILE [INDEX]
expack -i MANIFEST
expack -l FLEXFILE
DESCRIPTION
expack is a command-line utility that lets you extract and create Flex files. Flex files are archives (which means that they act as con-
tainers for other files, somewhat like directories) used by Ultima 7 to store most of its data. Note that the names of the original files
are not stored in the Flex -- files are only retrievable by their index.
Modes of operation
-a Add --NOT IMPLEMENTED YET. FUTURE ENHANCEMENT-- This command adds one or more FILEs to the end of FLEXFILE.
-c Create
This command takes one or more FILEs and bundles them into FLEXFILE, overwriting it in the process.
-x Extract
Lets you extract the files contained within FLEXFILE. If INDEX is given only the file at this position will be unpacked, otherwise
all files are extracted. The created files will be named index.u7o.
-i Input
Similar to "Create", this command creates FLEXFILE from a number of input files. However, "Input" takes the names of the input files
from MANIFEST instead of the command line.
MANIFEST must be a list of file names, one per line. The first name is that of the Flex file that is to be created, the rest are the
input files used in building it.
-l List
This command lists the contents of a FLEXFILE. It gives you the number of files contained within the Flex file, as well as the
length of each file.
EXAMPLES
expack -a animals.flx bee.wav
Adds bee.wav to the Flex file animals.flx.
expack -a animals.flx hamster.wav snake.wav donkey.wav
Adds hamster.wav, snake.wav, and donkey.wav to the Flex file animals.flx.
expack -c animals.flx duck.wav cat.wav cow.wav dog.wav
Creates a new Flex file animals.flx containing duck.wav, cat.wav, cow.wav, and dog.wav.
expack -x text.flx 17
Extracts the file at position 17fromtext.flxinto17.u7o.
expack -x text.flx
Extracts all files from text.flx into files named 0.u7o, 1.u7o, 2.u7o, etc.
expack -i wavlist
With wavlist reading:
jmsfx.flx
ant.wav
bee.wav
cat.wav
will create a new Flex file jmsfx.flx consisting of ant.wav, bee.wav, andcat.wav.
expack -l text.flx
Lists the number and lenghts of files contained in text.flx.
BUGS
The "Add" command (-a) does not work yet.
AUTHOR
This manpage was written by Robert Bihlmeyer based on a text by Marc Winterrowd. It may be freely redistributed and modified under the
terms of the GNU General Public License version 2 or higher.
Exult 2002-03-23 expack(1)