Assign x with value "1". Then goes through the file.
If it is within "DEFINE SCHEMA" and ");", it would be true (highlighted in red).
The if statement below looks for lines with 2 fields (highlighted in blue) and replaces $1 (field 1 which is cntnt_id) as "tX as filler" where X is then number "1". This would then be incremented by 1 using x++ after. X shall be "2" which will be used for later if we find the next match.
Hi all,
I need to extract the Particular string from the whole word,the input file is :
123,345,aaaa,555,....,....
I need all the record from 345 so i need to eliminate the first record.
Output:
345,aaa,5555,....,.....,.....
Thanks in advance. (3 Replies)
{Hello All,
Here is what I am trying to do:
I have an archive file: AppName.ear
jar -tvf AppName.ear
60459 Thu May 01 09:29:36 EDT 2008 /SharedResources/Application/App.dat
67542 Thu May 01 09:29:36 EDT 2008 JDBCConn/Application/App.dat
14488 Thu May 01 09:29:36 EDT 2008 config.xml
... (0 Replies)
Hi all,
I wanted to replace one word with another word pl help me to solve the same.
example:-
I wanted to replace RXOTX with RXOTRX in a perticuler file with hole.
Regards,
Ramesh (2 Replies)
Hi I'm having difficulty in writing a script with searching a specified word using sed and replaces that word with numbers that is incremented
I tried this:
#!/bin/sh
awk '{ for (i=2010; i<=NF; i++) sed 's/TBA/$i; }' filename.txt > outputfile.txt
but it doesn't work. here is my desired... (1 Reply)
I have a File with the below contents
File1
I have no prior experience in unix. I have just started to work in unix.
My experience in unix is 0. My Total It exp is 3 yrs.
I need to replace the first word in each line with the last word for example
unix have no prior experience in... (2 Replies)
Dear Friends,
I am facing some problem with some hundred files. Hence to use these file I have to make a small change in each file. But its not possible to open each file and make changes manually. Hence I need guidance frm you to automate it.
Example File name is "Queue_11.txt"
reload sec=F... (6 Replies)
Hi Guys,
Need you quick assistance on the below, trying to extract a word from a variable
i.e. acmi101acmi102acmi103acmi104
When i use the following code awk '{gsub(/cmi102/,"")};1' it leaves a space in the variable, need to get rid of the space that it leaves. Any ideas.
the above... (3 Replies)
Hi Folks,
Could you please advise what will be the SED command to replace a word in all xml's under a particular directory
for example let say I rite now at the following below location
$ cd /ter/rap/config
now under config directory there will be lots of xml file , now my objective is to... (1 Reply)
Dear ALL,
I have sample file :
IDcentos-forum,bash,linuxCentOS,GNome
IEfedora-milis,cli,linuxRedhat,KDE
IRfreebsd-milis,aix,unixbsd,pyton
required output:
centos,bash,linuxCentOS,GNome
fedora,cli,linuxRedhat,KDE
freebsd,aix,unixbsd,pyton
Can you help me pls.. (1 Reply)
Discussion started by: gnulyn
1 Replies
LEARN ABOUT DEBIAN
pyntor-selfrun
pyntor-selfrun(1) Pyntor pyntor-selfrun(1)NAME
pyntor-selfrun - creation of self-extracting presentation archives
SYNOPSIS
pyntor-selfrun [OPTIONS] presentation-archive|presentation-directory
DESCRIPTION
Pyntor is a presentation tool which can display slides and effects of various formats. The tool pyntor-selfrun allows one to create self-
extracting archives containing both the presentation and Pyntor itself, so that it can be run on computers where Pyntor itself is not
installed. It also ensures independence of the corresponding Pyntor version, as future changes of the application do not affect the previ-
ously created presentations. The way pyntor-selfrun works is that it takes the presentation-archive in question, packed as a tarball
(which might be named *.pyntor), and the release tarball of Pyntor which must be present somewhere. Using a template file, it then creates
the self-running and self-extracting script for distribution.
In case the presentation-archive does not exist yet, pyntor-selfrun can create it automatically from a presentation-directory. This is use-
ful even when not creating self-extracting archives, see the -a option.
OPTIONS -t, --template=templatefile
Uses a template different from that one which is shipped with Pyntor and used by default. The template is a script in Python or
another scripting language, which contains the variables %PYNTOR% and %ARCHIVE% which are replaced with the base64-encoded contents
of the two files given as arguments to pyntor-selfrun. This option is not recommended for most cases.
-a, --archive
Creates a pyntor presentation-archive from a directory which contains a script file, local data files and optionally some local com-
ponents. This is a convenience operation, since presentation archives are just tarballs, but in the future some checks might be
done here.
-r, --release=sourcetarball
Specifies where to find Pyntor itself to include it into the self-extracting archive. The source tarball should be a released pyn-
tor-*.tar.gz file.
-h, --help
Displays a summary of all available command line options.
BUGS
In a future version, pyntor-selfrun should allow to create *.pyntor archives automatically by examining a script file, including only those
files of Pyntor which it really needs.
AUTHORS
Josef Spillner <josef@coolprojects.org>
SEE ALSO pyntor(1), pyntor-components(1)Cool Projects 0.6 pyntor-selfrun(1)