Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Replace and increment in xemacs 21.4 Post 302889452 by Franklin52 on Thursday 20th of February 2014 04:30:30 PM
Old 02-20-2014
Code:
awk -F_ '/TEST TEST/ {if(f){f=0;$NF=c;print;next}f=1;$NF=++c}1' OFS=_ file

 

10 More Discussions You Might Find Interesting

1. Programming

xemacs

Hi Folks, Would like to download the xemacs editor for C. I searched the xemacs site but i donno the exact place of download. Can any one pass the URL or way to go thru and download the editor? Thanks in Advance, Nisha (4 Replies)
Discussion started by: Nisha
4 Replies

2. UNIX for Dummies Questions & Answers

Xemacs and emacs

Hi guys What is the difference between Xemacs and emacs. I assumed Xemacs runs only in X11. What about in Linux on KDE? Am I running Xemacs or emacs. Well it says emacs though. What is the advantage of one over other? What can I run on OS X ? SS (5 Replies)
Discussion started by: saurya_s
5 Replies

3. UNIX for Dummies Questions & Answers

xemacs colors for C files

xemacs uses default colors for coloring C files how can I change those colors. I could only manage the default background and foreground colors and that too using .Xdefaults file changes. (2 Replies)
Discussion started by: spotnis
2 Replies

4. UNIX for Dummies Questions & Answers

display ^M in xemacs

Sorry, this has probably been posted before, but my searches turn up nothing, and I have tried. using a cygwin distro of xemacs The default is NOT to display CR characters (I expect to see them as ^M). I want to change this so they do show up. Can you tell me please, what command to issue?... (0 Replies)
Discussion started by: scott1256ca
0 Replies

5. Shell Programming and Scripting

Need help with make file for etags to use it with xemacs

I am trying to generate tags for .cpp & .h source code. Here is the structure of the codes Root/X/src/ Root/X/include/ Root/Y/src/ Root/Y/include/ How do I generate TAGs from ROOT directory such that, when I am working on code under X/src I can access function defined in Y/src/ area? ... (0 Replies)
Discussion started by: sofiandros
0 Replies

6. Red Hat

enable xemacs buffer tabs

I need some help configuring xemacs to enable buffer tabs. please, anybody, could walk me through on how to configure xemacs for this. Thank You. (1 Reply)
Discussion started by: etcpasswd
1 Replies

7. UNIX for Dummies Questions & Answers

xemacs bindings help

Hi all , I would like to have a new binding so that if im having the cursur on a word, one shortcut click (say f3) whould find the next occurrence of the word in the text and so one. what is the right bind for it ? I tried but its wrong. thanks ! Zvika (1 Reply)
Discussion started by: zismad
1 Replies

8. UNIX for Advanced & Expert Users

About to give up on XEmacs 21.5.29

Folks, I am hoping someone out there can help me. I have been writing code for in-excess of 10 years. Throughout all this time I have used Xemacs. I have picked up bits of customizations here and there over the years, but would not profess to be anything of an expert in Lisp (or have a heavily... (3 Replies)
Discussion started by: petermc
3 Replies

9. UNIX for Dummies Questions & Answers

XEmacs compilation errors not understandable

Hi all! I am new to this forum. I have recently installed Cygwin and XEmacs on my laptop running Windows Vista. I am studing at the moment and the code I am creating is mainly for that purpose. I am trying to create the algorithm of Insertion sort. When I compile my code in XEmacs i get some... (1 Reply)
Discussion started by: BlueTower
1 Replies

10. Shell Programming and Scripting

Replace and Increment a value in the fixed length file

Hi Everyone, I need to increment a value in the fixed length file. The file has almost a million rows. Is there any easy way to accomplish this. Ex input file ASDSD ADSD 00000 X AAASD ADSD 00000 X SDDDD ADSD 00000 X Ouput ASDSD ADSD 00001 X AAASD ADSD 00002 X SDDDD ADSD 00003 X ... (7 Replies)
Discussion started by: saratha14
7 Replies
DEFINED(3)								 1								DEFINED(3)

defined - Checks whether a given named constant exists

SYNOPSIS
bool defined (string $name) DESCRIPTION
Checks whether the given constant exists and is defined. Note If you want to see if a variable exists, use isset(3) as defined(3) only applies to constants. If you want to see if a function exists, use function_exists(3). PARAMETERS
o $name - The constant name. RETURN VALUES
Returns TRUE if the named constant given by $name has been defined, FALSE otherwise. EXAMPLES
Example #1 Checking Constants <?php /* Note the use of quotes, this is important. This example is checking * if the string 'TEST' is the name of a constant named TEST */ if (defined('TEST')) { echo TEST; } ?> SEE ALSO
define(3), constant(3), get_defined_constants(3), function_exists(3), The section on Constants. PHP Documentation Group DEFINED(3)
All times are GMT -4. The time now is 11:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy