Tricky. Most large-scale architectures separate data and code.
What you might be able to find is the value of the pointer.
Compile and run that and you'll be given a hexadecimal value. Search for that value in the code segment and you won't find the text itself, but you'll find something which uses it.
I have written a code to extract comma seperated values from a file and assign them to a variable inside awk code.i want to use one of these variable to be used in wget function i.e to pass the siteurl.How i can implement the shell command wget inside the awk for loop.code snippet is shown below. ... (8 Replies)
hello everyone,
i am not well-versed with unix programming, but could you help me on how to embed an image(maybe a bitmap) to the output file?
how about animations(avi, etc)? can this also be embeded to the output?
thanks (0 Replies)
I'm looking to have a embed code for people be as short as possible. I'm trying to figure out how to do this. So something like...
<EMBED SRC="http://www.website.com/myembedscript.php?id=1"
HEIGHT=60 WIDTH=144>
I'm looking to figure out what "myembedscript.php" should do. I have it... (0 Replies)
Hey everyone,
I am just trying to figure out how to embed a function in an if statement.
I have the following test script so far:
PRIMARY=192.168.1.2
SECONDARY=192.168.1.1
function checkAlive {
ping -c 1 -q $1
}
if
then
echo "equaled 0"
fi
This... (1 Reply)
Folks,
can anyone throw a code snippet here to insert a comma " , " after each word in a line when doing a file read and output the delimited text to a file.
Appreciate your help
Venu (9 Replies)
Hello;
When I try:
awk '/$(date "+%y\/%m\/%d")/,0'
It errors with:
awk: There is a regular expression error.
Invalid pattern.
Is there anyway to make this work ??
Thank you (2 Replies)
Hello everyone,
I am trying to embed some tcl code inside a ksh93 script but I am not having any success.
I even tried the simplest of code, something like this:
.
.
jk=$(echo $(tcl << |
write_file junkme "test"'
|
))
just to see if a file gets written. When I run there are no errors, but ... (3 Replies)
Hi I would like to embed a sql query in my shell script.
Also, before any the sql query is executed, i would like to validate username and password. (1 Reply)
hi,
trying to embed an image to the html file to send out as an email.
img src="data:image/jpeg;base64,$(base64 /home/test/abc.jpg
but getting error as file not found after it aplies base64 on the file. (8 Replies)
Discussion started by: ATWC
8 Replies
LEARN ABOUT DEBIAN
strip_stx
strip_stx(1) General Commands Manual strip_stx(1)NAME
strip_stx - a simple literate programming tool
SYNOPSIS
strip_stx [ -c commentchars ] [ -B open close ] [ file file ... ]
DESCRIPTION
strip_stx takes all structured text (Stx) markup away from the listed files, leaving only text in preformatted blocks. If no files are
listed, standard input is read instead. The result is written to standard output.
This is intended as a simple literate programming tool: programmers may write their programs as documents, processing them with stx2any for
documentation and publication but with strip_stx for compilation / running the code.
More information about Stx is on the manpage of stx2any.
OPTIONS -c commentchars
comment out the non-code portions (text outside preformatted blocks) with the given commentchars at the beginning of every line.
If this option (or the next one) is not given, non-code portions are simply deleted.
-B open close
surround the non-code portions with (comment-)opening and closing markers open and close respectively. This option can be used
together with the -c option.
--version, -V
Just show version information and exit.
--help, -?
Just show a short help message and exit.
EXAMPLES
strip_stx parse.py.stx > parse.py
Strip documentation away from the source file parse.py.stx, supposedly only leaving python code there.
strip_stx -B '/*' ' */' -c ' * ' my.c.stx > my.c
Make a literate C code document into proper C source file, leaving the documentation in neatly-formatted comments.
strip_stx -B 'cat < < EOT' 'EOT' embshell.stx > embshell.sh
Turn the document embshell.stx into an "embedded shell" script, where all non-program portions are printed to the standard output when exe-
cution reaches them. This is akin to PHP or eperl; but strip_stx is not really meant for this. There are other options for making embed-
ded scripts, such as defining your own markup for the code portions or handling the program logic with m4 within stx2any.
SEE ALSO
stx2any (1)
AUTHOR
This page is written by Panu A. Kalliokoski.
Panu A. Kalliokoskistrip_stx(1)