Tcl_Backslash(3) Tcl Library Procedures Tcl_Backslash(3)__________________________________________________________________________________________________________________________________________________NAME
Tcl_Backslash - parse a backslash sequence
SYNOPSIS
#include <tcl.h>
char
Tcl_Backslash(src, countPtr)
ARGUMENTS
char *src (in) Pointer to a string starting with a backslash.
int *countPtr (out) If countPtr isn't NULL, *countPtr gets filled in with number of characters in the backslash sequence, includ-
ing the backslash character.
_________________________________________________________________DESCRIPTION
The use of Tcl_Backslash is deprecated in favor of Tcl_UtfBackslash. |
This is a utility procedure provided for backwards compatibility with non-internationalized Tcl extensions. It parses a backslash sequence |
and returns the low byte of the Unicode character corresponding to the sequence. Tcl_Backslash modifies *countPtr to contain the number of
characters in the backslash sequence.
See the Tcl manual entry for information on the valid backslash sequences. All of the sequences described in the Tcl manual entry are sup-
ported by Tcl_Backslash.
SEE ALSO |
Tcl(n), Tcl_UtfBackslash(3)KEYWORDS
backslash, parse
Tcl 8.1 Tcl_Backslash(3)
Check Out this Related Man Page
Tcl_Backslash(3) Tcl Library Procedures Tcl_Backslash(3)__________________________________________________________________________________________________________________________________________________NAME
Tcl_Backslash - parse a backslash sequence
SYNOPSIS
#include <tcl.h>
char
Tcl_Backslash(src, countPtr)
ARGUMENTS
char *src (in) Pointer to a string starting with a backslash.
int *countPtr (out) If countPtr is not NULL, *countPtr gets filled in with number of characters in the backslash sequence, includ-
ing the backslash character.
_________________________________________________________________DESCRIPTION
The use of Tcl_Backslash is deprecated in favor of Tcl_UtfBackslash.
This is a utility procedure provided for backwards compatibility with non-internationalized Tcl extensions. It parses a backslash sequence
and returns the low byte of the Unicode character corresponding to the sequence. Tcl_Backslash modifies *countPtr to contain the number of
characters in the backslash sequence.
See the Tcl manual entry for information on the valid backslash sequences. All of the sequences described in the Tcl manual entry are sup-
ported by Tcl_Backslash.
SEE ALSO
Tcl(n), Tcl_UtfBackslash(3)KEYWORDS
backslash, parse
Tcl 8.1 Tcl_Backslash(3)
Hi,
I need to convert user-input from '(this)' to '\(this\)' before passing it to egrep. I've tried using TR, SED and NAWK to add the backslash, but the most I ever get is a backslash without a '(' or ')'.
Any ideas?
Thanks! (13 Replies)
How do I remove a backslash character \ from a file?
I have used
sed -e "s|\||g" filename > newfile
I have done several permutations on this to no avail such as:
sed -e "s|`\`||g" filename > newfile
sed -e "s|""\""||g" filename > newfile
What am I doing wrong?:confused:
... (2 Replies)
In unix when I run rm command, it asks for file removal confirmation e.g.
rm netmail_log.csv
rm: remove netmail_log.csv (yes/no)? n
But if i prefix backslash to rm it does not ask for confirmation. Does anyone know what backslash does to command or shell ?
e.g.
\rm netmail_log.csv (1 Reply)
Hi All,
I have a requirement to read a line from a file with some search string, replace any backslash characters in that line and store in a variable.
Shell script: replace.ksh
#!/bin/bash
file2=input.rtf
line=`grep "Invoice Number" ${file2} | head -1 | sed 's/\\//g'`
echo "start... (6 Replies)
Hi,
I'm trying to make a script that copy a file that has a backslash in the filename.
What I'm doing wrong?
The flename is: 1300212744.H786972P30819.ns1.cybernet.com.br,S\=6313:2,
My script
ParteA="1300212970.H27173P31627.ns1.cybernet.com.br,S"
ParteB=\\
ParteC="="
ParteZ=":2,"... (15 Replies)
Hello everyone,
My main objective is to search for text within a file, namely a block of text where each line ends with a backslash "\".
However, the block must begin with a keyword, like "loginstring".
Here is an example of a file that contains a block:
###############
loginstring \... (2 Replies)
Hi there,
I found something very weird!
Should I report that as a bug or is it me misusing the command?
I've got a file with a backslash in its name.
I know it's a horrible policy but it's not me.
The file came from a mac computer because this is a backup server.
Anyway, when using... (8 Replies)
Hi Forum:
I have struggle with it and decide to use my eye ball to accomplish this.
Basically I am looking for sequence of date inside a file.
If one of the sequence repeat 2-3 time or skip once; it's still consider a match.
input text file:
Sep 6 A
Sep 6 A
Sep 10 A
Sep 7 B
Sep 8... (7 Replies)
Hi
I have a number of sequences and a string occurs a number of times in that sequence.
How can I select and replace only those strings which are followed by \tab.
for eg :
my sequence looks like :
string0 positive cd parent=string0 id =121 string0
string0 negative ef parent=... (2 Replies)
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)