9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I have an inherited an old ugly script I'm trying to clean up a bit.
What I am currently working on is a line like the following:
Complication=" and ta.secID = 011222 and upper(ta.proc_ctrl_no) != 'IMPACT'";;
I just want to combine a search for lines that begin with... (5 Replies)
Discussion started by: blip42
5 Replies
2. What is on Your Mind?
My new magic wand just came. It looks great. Looking at it, it looks like it is carved by hand from a solid piece of wood. It could easily serve as a prop in a Harry Potter film. But it is actually a high tech appliance.
A built-in accelerometer can detect how you are moving the wand. ... (2 Replies)
Discussion started by: Perderabo
2 Replies
3. Shell Programming and Scripting
I want to become an expert @ using sed, but i do not have enough time...
Atm I have a repository in my apt/sources.list but it is commented out since i do not want to install packages from it (backtrack repository) except the exploitdb package.
I would like make a command, lets say... (5 Replies)
Discussion started by: redsolja
5 Replies
4. UNIX for Dummies Questions & Answers
when i use this code for the script of the magic 8ball, i get an error message and it always displays the sam answer. What am i doing wrong or what am i missing thanks
#!/bin/sh
#< Magic eight ball!
# KW 26/11/04
# Requires "rand"
echo "Enter \"q\" followed by return to quit"
function... (6 Replies)
Discussion started by: JamieMurry
6 Replies
5. Shell Programming and Scripting
Hi,
I have this line in my script, and works perfect!
tran= "$(sed = "$fname" | sed "/./N; s/\n/: /" | sed -n "${beg},${end}p")"
$fname its a file, and gets multilines between beg and end.:
Something like this:
1: line a
2: line b
3: line c
But now, I want insert in the end of each... (9 Replies)
Discussion started by: vibra
9 Replies
6. UNIX for Advanced & Expert Users
Where can I find #defines for filetypes like the ELF etc and the magic.h file?
CAn anyone advice.
Thanks in advance. (1 Reply)
Discussion started by: vijlak
1 Replies
7. Filesystems, Disks and Memory
Dear All,
i have a SCSI hard disk drive i'm installing on it solaris 5 and the workstation is sun sparc, i made an image of this H.D using Norton Ghost 6, so i took off the SCSI H.D from the sun workstation and put it on a Compaq server then i booted the server from the Norton Ghost floppy disk... (0 Replies)
Discussion started by: wesweshahaha
0 Replies
8. UNIX for Advanced & Expert Users
i am working under this sysytem SunOS sparc SUNW,UltraAX-i2
Some system on this server creates a file named like this.
Elem_ee.xml.gz
Elem_ee.xml.gz.magic
In order to look into Elem_ee.xml.gz.magic, i first renamed Elem_ee.xml.gz.magic
to Elem_ee.xml.gz and tried to unzip it. but returns... (3 Replies)
Discussion started by: oppai
3 Replies
9. UNIX for Dummies Questions & Answers
For a multi-boot setup (win2K, XP & SuSE) over 3 drives, where should Boot Magic be installed to? And does it matter which o/s installs it? (3 Replies)
Discussion started by: onestepto
3 Replies
fileutil::magic::cfront(n) file utilities fileutil::magic::cfront(n)
__________________________________________________________________________________________________________________________________________________
NAME
fileutil::magic::cfront - Generator core for compiler of magic(5) files
SYNOPSIS
package require Tcl 8.4
package require fileutil::magic::cfront ?1.0?
package require fileutil::magic::cgen ?1.0?
package require fileutil::magic::rt ?1.0?
package require struct::list
package require fileutil
::fileutil::magic::cfront::compile path...
::fileutil::magic::cfront::procdef procname path...
::fileutil::magic::cfront::install path...
_________________________________________________________________
DESCRIPTION
This package provides the frontend of a compiler of magic(5) files into recognizers based on the fileutil::magic::rt recognizer runtime
package. For the generator backed used by this compiler see the package fileutil::magic::cgen.
COMMANDS
::fileutil::magic::cfront::compile path...
This command takes the paths of one or more files and directories and compiles all the files, and the files in all the directories
into a single recognizer for all the file types specified in these files.
All the files have to be in the format specified by magic(5).
The result of the command is a Tcl script containing the generated recognizer.
::fileutil::magic::cfront::procdef procname path...
This command behaves like ::fileutil::magic::cfront::compile with regard to the specified path arguments, then wraps the resulting
recognizer script into a procedure named procname, puts code setting up the namespace of procname in front, and returns the result-
ing script.
::fileutil::magic::cfront::install path...
This command uses ::fileutil::magic::cfront::procdef to compile each of the paths into a recognizer procedure and installs the
result in the current interpreter.
The name of each new procedure is derived from the name of the file/directory used in its creation, with file/directory "FOO" caus-
ing the creation of procedure ::fileutil::magic::/FOO::run.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category fileutil
:: magic of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may
have for either package and/or documentation.
SEE ALSO
file(1), fileutil, magic(5)
KEYWORDS
file recognition, file type, file utilities, mime, type
CATEGORY
Programming tools
fumagic 1.0 fileutil::magic::cfront(n)