Sponsored Content
Top Forums Shell Programming and Scripting Removing all characters up to initial '{' Post 302964202 by hcclnoodles on Tuesday 12th of January 2016 06:55:20 AM
Old 01-12-2016
ah, the square brackets is where I went wrong , thanks RudiC
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with removing characters like ^M

I have few files in unix which are in dos format. While I am copying these files, ^M, ^@, etc characters are being generated. I tried dos2unix command in Linux and it doesn't work. I tried sed to remove these characters but they won't go. I came to about this 'tr' command and tried to use it... (16 Replies)
Discussion started by: chiru_h
16 Replies

2. HP-UX

Removing ^D and ^H characters

Hi, I have a very huge file and it contains some unprintable characters like ^H and ^D. If I try to remove using cat test1.ser| tr -d '\136 110'>newfile1 it is only removing ^and all spaces in the file. How can I remove these characters (^D ^H) and keep my spaces as it is? Thanks &... (1 Reply)
Discussion started by: arsheshadri
1 Replies

3. UNIX for Dummies Questions & Answers

removing characters

Hi all, Any help on how to do the following? :eek: I have an infile as follows: _thisishowyouwritehelloworld _thisisalsohowyouwritehelloworld2 I want to delete the characters from "_" to "how" and be left with: youwritehelloworld youwritehelloworld2 I am able to do delete from a... (2 Replies)
Discussion started by: dr_sabz
2 Replies

4. UNIX for Advanced & Expert Users

Removing ^M characters

hi I have a perl script conv.pl. when i execute this file and direct i to log file I see lots of ^M characters in the log file. There is no ^M in conv.pl file. Log file is generated only after conv.pl is executed. Please help as how to get rid of these. This conv.pl is going to get schduled... (0 Replies)
Discussion started by: infyanurag
0 Replies

5. UNIX for Dummies Questions & Answers

Removing ^M characters

hi I have a perl script conv.pl. when i execute this file and direct i to log file I see lots of ^M characters in the log file. There is no ^M in conv.pl file. Log file is generated only after conv.pl is executed. Please help as how to get rid of these. This conv.pl is going to get schduled... (5 Replies)
Discussion started by: infyanurag
5 Replies

6. Shell Programming and Scripting

Removing special characters

Dear Friends, I want to remove text between two patters. Problem is, it has random special characters like \ / | * ` ~ ! $ etc. These random special characters has no fixed length. But these special characters are appearing between a fixed pattern e.g. DM&^%#|#!\/?CT Expected output... (14 Replies)
Discussion started by: anushree.a
14 Replies

7. UNIX for Dummies Questions & Answers

removing non printable characters

Hi, in a file, i have records as below: 123|62|absnb|267629 123|267|28728|uiuip 123|567|26761|2676 i want to remove the non printable characters after the end of each record. I guess there are certain charcters but not visible. i don't know what character that is exactly. I used... (2 Replies)
Discussion started by: pandeesh
2 Replies

8. UNIX for Dummies Questions & Answers

Removing trailing characters

I have been given a shell script that I need to amend. To do the following extract the filename from the flag file by removing the .flag extension. # Local variables # Find if the flag files exists MASK=coda_mil2*.flag # Are there any files? bookmark="40" fileFound=0 ls -1... (3 Replies)
Discussion started by: andymay
3 Replies

9. UNIX for Dummies Questions & Answers

Removing trailing x'0A' characters.

I am trying to remove trailing carriage return (x'0a') from a source program. What is a good way to do this for the whole file? TIA (4 Replies)
Discussion started by: wbport
4 Replies

10. Shell Programming and Scripting

Removing characters and some output

Hi guys, So I am using an awk command to return a specific column in a file. I also need to remove some extra characters. What I have is :: (http-/0.0.0.0:8091-9)|23:00:41 And what I want is : http-/0.0.0.0:8091-9 I tried using the td command but it is only removing the ( ,... (5 Replies)
Discussion started by: Junaid Subhani
5 Replies
aephea-ref(7)							  MISCELLANEOUS 						     aephea-ref(7)

  NAME
      aephea-ref - A description of the Aephea definitions for referencing

  DESCRIPTION
      The  following  definitions  are	used  by  the  Aephea simpledocument class as well as the Portable Unix Documentation (pud) manual and faq
      classes (see pud-man(7) and pud-faq(7)).

  MACROS
      
efload#2
      
efloadx#2
	Both macros take as first argument a label that uniquely defines the reference.  The second argument  is  a  vararg  containing  key-value
	pairs.

	These macros are usually not needed in Aephea classes; they are lower level facilities.

      
ef#2
	The first argument is a label. The second argument should be a key associated with that label. The result is the value associated with the
	label/key pair.

	These macros are usually not needed in Aephea classes; they are lower level  facilities  used  by  high  level	Aephea	definitions  (e.g.
	iref#2, and secref#1).

      
efcaption#1
      
efnumber#1
      
eflevel#1
	The argument is a label. The result is respectively the caption, number, or level associated with that label.

      
eference#1
      
efer#1
	The  first associates a number with the label that is in the first argument, and prints it inbeween square brackets. The label is anchored
	to this location. The second outputs the associated number inbetween brackets, and makes it carry a link to the anchor. For example, I	am
	about to create a link [1] and another link [2] to the items appearing below.

	[1] The first reference.

	[2] The second reference.

	If you prefer another bibliography style, find the macros and adapt them according to your needs - they are very simple.

	
eference#2  currently  writes  data  to  the file \__fnbase__.zmr, to be read back in using a load{\__fnbase__.zmr} statement.  This is
	automatically done when using any of the Aephea classes.

  aephea-ref 1.002, 10-008					      8 Jan 2010						       aephea-ref(7)
All times are GMT -4. The time now is 10:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy