01-26-2009
Tools for writing a simple syntax checker?
I'm trying to write a small utility for syntax checking. I've tried using Flex/Bison, but these seem too advanced for my task. A simpler tool would be appreciated.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to write a simple unix script that will delete files after 30 days of being created. I've never done this before but conceptually it sounds easy. Here is what I'm trying to do:
Get System Date
Get File Date
If (sysdate-filedate>30days)
rm file
All of these files are contained... (1 Reply)
Discussion started by: tamdoankc
1 Replies
2. Shell Programming and Scripting
I have a rather big script that i have written in ksh and it is falling over in two places with a 'test argument' error. I know this usually means that the if statement is not correct, but it is fine. I have looked through the rest of the script for any odd brackets or ` marks, but can't see... (2 Replies)
Discussion started by: handak9
2 Replies
3. UNIX for Dummies Questions & Answers
how would i write a shell script to show the number of lines in which int variable appears in a c++ program. (3 Replies)
Discussion started by: deadleg
3 Replies
4. Shell Programming and Scripting
Dear all,
I am a complete newbie to (perl) programming and I am completely stuck in a project. I have the following arrays
@array_1
@array_2
@array_A
@array_B
@array_C
Each element pair of array_1 and array_2 is linked to all elements of a third array (e.g. array_A, array_B or... (3 Replies)
Discussion started by: docdudetheman
3 Replies
5. Red Hat
Building software in most languages is a pain. Remember ant build.xml, maven2 pom files, and multi-level makefiles?
Python has a simple solution for building modules, applications, and extensions called distutils. Disutils comes as part of the Python distribution so there are no other packages... (0 Replies)
Discussion started by: Linux Bot
0 Replies
6. Shell Programming and Scripting
I'd like a shell-script syntax checker that can detect at least the following errors, and more:
1. Variable $VAR used but VAR has not been defined.
2. Variable VAR defined but never used.
3. Use of unquoted variables which might break external commands e.g. SOMETHING in: value=`grep $SOMETHING... (5 Replies)
Discussion started by: garethr
5 Replies
7. Shell Programming and Scripting
I want to write a bash script to:
1. Send an email from localhost to an external gmail account. (gmail then automatically forwards the message back to a pop account on the same server.
2. Script waits 3 minutes then checks to see if the email arrived, and if not, it sends an email to... (9 Replies)
Discussion started by: sallyanne
9 Replies
8. Shell Programming and Scripting
Simple Http Proxy Server Checker Script with curl
mirror proxies-scripts/proxc at master * Anoncheg1/proxies-scripts * GitHub
output in terminal
HTTP, HTTP Connect (HTTPS not supported)
command line:
proxc filename
where filename is file like
119.110.69.185:8080
119.235.16.41:8080... (4 Replies)
Discussion started by: 654321
4 Replies
9. Shell Programming and Scripting
I'm fairly new to bash scripts, and all things unix in general. But I was in desperate need of this script, so I took matters into my own hands and built it!
The first script uses a password generator that creates 4 letter domain names and outputs only the ones that are available. Currently its... (0 Replies)
Discussion started by: Files
0 Replies
LEARN ABOUT DEBIAN
textpack
textpack(1) General Commands Manual textpack(1)
NAME
textpack - Pack and unpack Flex files containing text
SYNOPSIS
textpack -c FLEXFILE [TEXTFILE]
textpack -x FLEXFILE [TEXTFILE]
DESCRIPTION
Text Flex files are used for the storage of strings by the games Exult supports. While expack(1) can operate on such files, using textpack
to pack and unpack them is more comfortable.
The first parameter determines the mode of operation, -c stands for creation, -x for extraction.
Creation
TEXTFILE (or stdin if it is missing) is read and must conform to the file format (see below). FLEXFILE will be created containing the
strings from this input.
Extraction
The strings contained in FLEXFILE are extracted and written to TEXTFILE (if given, stdout otherwise) in the file format documented below.
File Format
Empty lines, and lines starting with a pound sign (#) are ignored. Other lines must begin with a number, followed by a colon (:). The num-
ber is the index of the string and may be given either in decimal, in octal prefixed with 0; or in hexadecimal prefixed with 0x. Anything
following the colon belongs to the string and gets stored in the Flex verbatim. Lines are limited in length to 1024 characters.
EXAMPLES
textpack -x text.flx
Writes all the strings contained in text.flx to stdout in the format discussed above.
textpack -c text.flx strings.list
Reads strings.list and puts its contents into the Flex file text.flx
Example text file
# An example
0:the zeroth string
# strings may be empty
1:
# holes are allowed, strings 2 to 16 will be empty
17:string seventeen
# 13 hexadecimal == 19 decimal, 24 octal == 20 decimal
0x13:nineteen
024:twenty
# numbers need not go up
18:eighteen
# this will overwrite the definition from above
19:overwritten
AUTHOR
This manpage was written by Robert Bihlmeyer. It may be freely redistributed and modified under the terms of the GNU General Public License
version 2 or higher.
SEE ALSO
expack(1), exult(6)
Exult 2002-03-24 textpack(1)