Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Substitue 'Special Characters' in VI Post 302328567 by ScKaSx on Wednesday 24th of June 2009 03:52:14 PM
Old 06-24-2009
Substitue 'Special Characters' in VI

Hi All,

I am using LATEX and need to delete all the lines in a file matching:
\begin{work}

I know there are several ways to do this, but I am trying to do it with the substitute command in VI. The problem is I can't get substitute to recognize the character '\'!

How do I do it?

Currently I am trying
Code:
:%s/\([\begin{work}]\)/ /g

Thanks in advance, cheers.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

special characters

I have one file which is named ^? ( the DEL character ) I'd like to know how to rename or copy the file by using its i-node number TYIA (2 Replies)
Discussion started by: nawnaw
2 Replies

2. UNIX for Dummies Questions & Answers

Quoting of special characters

Hello, I am getting very confused as to where should i quote special/metacharacters in shell. Sometimes i write * directly and it works, othertimes i have to do "*". Same is the case with other special characters like /,\,.,$,etc. Can somebody give me link to somewhere where i can found... (1 Reply)
Discussion started by: vibhor_agarwali
1 Replies

3. UNIX for Dummies Questions & Answers

how to see special characters in a file using vi

Hi, I have a file which has special characters. I can't see them when I "vi" the file. But I am sure there are some special un seen characters. How can I see them? Please help. Thx (6 Replies)
Discussion started by: jingi1234
6 Replies

4. Shell Programming and Scripting

sed with special characters

Hi, I am reading a file (GC_JAR.log) which has entries like: 511725.629, 0.1122672 secs] 525268.975, 0.1240036 secs] 527181.835, 0.2068215 secs] 527914.287, 0.2884801 secs] 528457.134, 0.2548725 secs] I want to replace all the entries of "secs]" with just "secs" Thus, the output... (4 Replies)
Discussion started by: itzz.me
4 Replies

5. Shell Programming and Scripting

Special characters

When I open a file in vi, I see the following characters: \302\240 Can someone explain what these characters mean. Is it ASCII format? I need to trim those characters from a file. I am doing the following: tr -d '\302\240' ---------- Post updated at 08:35 PM ---------- Previous... (1 Reply)
Discussion started by: sid1982
1 Replies

6. UNIX for Dummies Questions & Answers

How to see special characters?

Hi all, I was wondering how can i see the special characters like \t, \n or anything else in a file by using Nano or any other linux command like less, more etc (6 Replies)
Discussion started by: gvj
6 Replies

7. Shell Programming and Scripting

special characters

Hey guys, I'm trying to replace "]Facebook" from the text but sed 's/]Facebook/Johan/g' is not working could you please help me with that? (6 Replies)
Discussion started by: Johanni
6 Replies

8. Shell Programming and Scripting

Replace special characters with Escape characters?

i need to replace the any special characters with escape characters like below. test!=123-> test\!\=123 !@#$%^&*()-= to be replaced by \!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
Discussion started by: laknar
8 Replies

9. Shell Programming and Scripting

How to convert special characters?

Hi All, I have some text including Turkish characters and the 3rd party application that reads my file does not supporting this character set (at least, I have no control on it). So, I used below conversion for maximum character support but still have problems with "İ" and "Ş". Application... (5 Replies)
Discussion started by: mrcrowley
5 Replies

10. Shell Programming and Scripting

sed substitue whole file + 1 substitue with variables on one sed line?.

I'm trying to remove '--X' from the whole file and using variables replace $oldvar with $newvar. I have tried with double quotes but it doesn't seem to work. $newvar is set to /usr/bin/bash. Would appreciate some guidance. newvar=$(which bash) oldvar=/bin/bash sed... (1 Reply)
Discussion started by: itman73
1 Replies
LATEX(1)						      General Commands Manual							  LATEX(1)

NAME
latex, elatex, lambda, pdflatex - structured text formatting and typesetting SYNOPSIS
latex [ first line ] DESCRIPTION
This manual page is not meant to be exhaustive. The complete documentation for this version of TeX can be found in the info file or manual Web2C: A TeX implementation. The LaTeX language is described in the book LaTeX - A Document Preparation System. LaTeX is a TeX macro package, not a modification to the TeX source program, so all the capabilities described in tex(1) are present. The LaTeX macros encourage writers to think about the content of their documents, rather than the form. The ideal, very difficult to real- ize, is to have no formatting commands (like ``switch to italic'' or ``skip 2 picas'') in the document at all; instead, everything is done by specific markup instructions: ``emphasize'', ``start a section''. The primary source of documentation for LaTeX is the LaTeX manual referenced below, and the local guide in the file local-guide.tex or local.tex or some such. elatex is the e-TX extended mode version of LaTeX format. lambda is the Omega version of the LaTeX format. pdflatex is the pdfTeX version of the LaTeX format. On some systems latex209 and slitex are available for compatibility with older versions of LaTeX. These should not be used for new texts. SEE ALSO
amslatex(1), amstex(1), tex(1), Leslie Lamport, LaTeX - A Document Preparation System, Addison-Wesley, 1985, ISBN 0-201-15790-X. Web2C 7.3.1 29 March 1999 LATEX(1)
All times are GMT -4. The time now is 01:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy