02-02-2009
I have no clue of Pascal - can you please show an example of the desired output?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
im having trouble doing this:
i have a variable with 2 characters repeating e.g. aababbbaaaababaabbaabbba
is there a way i can search the variable for a's and b's and then change a's to b's and b's to a's?
im guessing its like getting the 1's compliment of the string
im doing this in... (2 Replies)
Discussion started by: vipervenom25
2 Replies
2. Shell Programming and Scripting
Hi,
I want, if a line is more than 80 characters length then put a new line with 4 space after each 80 characters to indent the data at same position.
Input:
200 Geoid and gravity anomaly data of conjugate regions of Bay of Bengal and Enderby Basin: New constraints on breakup and early... (3 Replies)
Discussion started by: srsahu75
3 Replies
3. Shell Programming and Scripting
Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies
4. Shell Programming and Scripting
Hi All,
I have a big log file i want to delete all characters (between 350th to 450th characters) starting at 350th character position to 450th character position.
please advice or sample code. (6 Replies)
Discussion started by: rajeshorpu
6 Replies
5. Shell Programming and Scripting
I have a huge file and I want to select first 10 charcters and last 2 characters of everyline and than will filter the unique line.
I know, it must be easy bt I am new to unix scripting:)
Ex.
I have file as below and need to e3kbaird and last 2 characters. and than unique records.
... (3 Replies)
Discussion started by: Sanjeev Yadav
3 Replies
6. Shell Programming and Scripting
Hi Experts,
How to sepearate the list digit with letters : with a space from where the letters begins, or other words from where the digits ended.
file
52087mo(enbatl)
52049mo(enbatl)
52085mo(enbatl)
25051mo(enbatl)
The output should be looks like:
52087 mo(enbatl)
52049... (10 Replies)
Discussion started by: rveri
10 Replies
7. Shell Programming and Scripting
Hello,
I do have folders containing having funny strings in their names and one space.
First, I do remove the funny strings and replace the space by an underscore.
find . -name '* *' | while read file;
do
target=`echo "$file" | sed 's/... (2 Replies)
Discussion started by: tempestas
2 Replies
8. Shell Programming and Scripting
Hi,
I have a string wherein i need to replace special characters with backslash and that character.
Ex:
If my string is a=qwerty123@!,
then the new string should be a_new=qwerty123\@\!\,
Thanks (3 Replies)
Discussion started by: temp_user
3 Replies
9. Shell Programming and Scripting
Hi Gurus,
my current code like below:
nawk '{f1 = (NF>1)?$1:""}{print f1, $NF}'|sed -e 's/s(/,/g;s/)//g;s/ *,/,/'|nawk -F"," '{ab}END{for (i in b) if (!(i in a))print i}'
I have file like below. (this is autosys job dependencies)
the job with s() is dependencies, the job without s() is... (10 Replies)
Discussion started by: ken6503
10 Replies
PXP(1) General Commands Manual PXP(1)
NAME
pxp - Pascal execution profiler
SYNOPSIS
pxp [ -acdefjnstuw_ ] [ -23456789 ] [ -z [ name ... ] ] name.p
DESCRIPTION
Pxp can be used to obtain execution profiles of Pascal programs or as a pretty-printer. To produce an execution profile all that is neces-
sary is to translate the program specifying the z option to pi or pix, to execute the program, and to then issue the command
pxp -z name.p
A reformatted listing is output if none of the c, t, or z options are specified; thus
pxp old.p > new.p
places a pretty-printed version of the program in `old.p' in the file `new.p'.
The use of the following options of pxp is discussed in sections 2.6, 5.4, 5.5 and 5.10 of the Berkeley Pascal User's Manual.
-a Print the bodies of all procedures and functions in the profile; even those which were never executed.
-c Extract profile data from the file core.
-d Include declaration parts in a profile.
-e Eliminate include directives when reformatting a file; the include is replaced by the reformatted contents of the specified file.
-f Fully parenthesize expressions.
-j Left justify all procedures and functions.
-n Eject a new page as each file is included; in profiles, print a blank line at the top of the page.
-s Strip comments from the input text.
-t Print a table summarizing procedure and function call counts.
-u Card image mode; only the first 72 characters of input lines are used.
-w Suppress warning diagnostics.
-z Generate an execution profile. If no names, are given the profile is of the entire program. If a list of names is given, then only
any specified procedures or functions and the contents of any specified include files will appear in the profile.
-_ Underline keywords.
-d With d a digit, 2 <= d <= 9, causes pxp to use d spaces as the basic indenting unit. The default is 4.
FILES
name.p input file
name.i include file(s)
pmon.out profile data
core profile data source with -c
/usr/share/pascal/how_pxpinformation on basic usage
SEE ALSO
Berkeley Pascal User's Manual
pi(1), px(1)
DIAGNOSTICS
For a basic explanation do
pxp
Error diagnostics include `No profile data in file' with the c option if the z option was not enabled to pi; `Not a Pascal system core
file' if the core is not from a px execution; `Program and count data do not correspond' if the program was changed after compilation,
before profiling; or if the wrong program is specified.
AUTHOR
William N. Joy
BUGS
Does not place multiple statements per line.
3rd Berkeley Distribution PXP(1)