05-05-2009
Hi Everyone,
I thank you all for your timely help. I have used %s/^Z//g and ^Z Character is removed from the file.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am attempting to remove all the ^M characters in a file in VI.
The command I am using is
:1,$s/^V^M//g
but it doesn't work, saying 'substitute pattern match failed'.
Any ideas why?
Jules (2 Replies)
Discussion started by: julesinbath
2 Replies
2. UNIX for Dummies Questions & Answers
HI i am having a file this
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1234567890
1234567890
1234567890
1234567890
I want to make this file as
(sys19:pnlfct:/pfact/temp>) cat temp_sand
1456789023
1456789023
1456789023
1456789023
just take the 2nd and 3rd position and put it... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies
3. Shell Programming and Scripting
How can I remove the last character from each line of a file?
This must be done without "funny" characters, as I want to transfer the code to/from Windows.
Any ideas? (17 Replies)
Discussion started by: cjhancock
17 Replies
4. UNIX for Dummies Questions & Answers
Dear Members,
Problem is suppose i have 50 lines in a file, 40 lines last character is "\" and the remaining 10 lines are good(i mean these 10 lines do not have "\" character)
How can i remove this character from the file.
Thanks (1 Reply)
Discussion started by: sandeep_1105
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a Linux file which has content as sh (0 Replies)
Discussion started by: bhuvanas
0 Replies
6. Shell Programming and Scripting
Hi,
My file has this special character "^M"
I would like to remove this characters.
eg:
abc,abc,^M
i tried using sed but doesnt work.
i used octal dump command to see special character it returns following:
015
\r
Appreciate your reply. (6 Replies)
Discussion started by: pinnacle
6 Replies
7. Shell Programming and Scripting
I have a file like this:
DDD_ABCDE2AB2_1104081408.104480
I need to remove the 1 after the . in the file name so that it reads:
DDD_ABCDE2AB2_1104081408.04480
Having some difficulty getting the command to work. I tried using
cut -d 26
but that just doesn't work. (3 Replies)
Discussion started by: bbbngowc
3 Replies
8. UNIX for Dummies Questions & Answers
I need help removing the last character of every line if it is a certain character. For example I need to get rid of a % character if it is in the last position.
Input:
aaa%
%bbb
ccc
d%dd%
Output should be:
aaa
%bbb
ccc
d%dd
I tried this but it gets rid of all of the % characters.... (5 Replies)
Discussion started by: raptor25
5 Replies
9. Shell Programming and Scripting
Hi below is my file.
cat input.dat
101,abhilash,1000
102,prave
en,2000
103,partha,4
000
10
4,naresh,5000
(its just a example file)
and my output should be:
101,abhilash,1000
102,praveen,2000
103,partha,4000
104,naresh,5000
below is my code
cat input.dat |tr -d '\n' >... (6 Replies)
Discussion started by: abhilash_nakka
6 Replies
10. Shell Programming and Scripting
Hello guys,
I would need to remove the last character ")" of a specific line. This can be from any line. Your help is appreciated. Below is the line.
HOSTNAME=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP))
Please help. (6 Replies)
Discussion started by: sang8g
6 Replies
LEARN ABOUT DEBIAN
xfreeextensionlist
XQueryExtension(3) X FUNCTIONS XQueryExtension(3)
NAME
XQueryExtension, XListExtensions, XFreeExtensionList - list available extensions
SYNTAX
Bool XQueryExtension(display, name, major_opcode_return, first_event_return, first_error_return)
char **XListExtensions(display, nextensions_return)
XFreeExtensionList(list)
ARGUMENTS
display Specifies the connection to the X server.
name Specifies the extension name.
major_opcode_return
Returns the major opcode.
first_event_return
Returns the first event code, if any.
first_error_return
Returns the first error code, if any.
nextensions_return
Returns the number of extensions listed.
list Specifies the list of extension names.
DESCRIPTION
The XQueryExtension function determines if the named extension is present. If the extension is not present, XQueryExtension returns False;
otherwise, it returns True. If the extension is present, XQueryExtension returns the major opcode for the extension to
major_opcode_return; otherwise, it returns zero. Any minor opcode and the request formats are specific to the extension. If the extension
involves additional event types, XQueryExtension returns the base event type code to first_event_return; otherwise, it returns zero. The
format of the events is specific to the extension. If the extension involves additional error codes, XQueryExtension returns the base
error code to first_error_return; otherwise, it returns zero. The format of additional data in the errors is specific to the extension.
If the extension name is not in the Host Portable Character Encoding the result is implementation-dependent. Uppercase and lowercase mat-
ter; the strings ``thing'', ``Thing'', and ``thinG'' are all considered different names.
The XListExtensions function returns a list of all extensions supported by the server. If the data returned by the server is in the Latin
Portable Character Encoding, then the returned strings are in the Host Portable Character Encoding. Otherwise, the result is implementa-
tion-dependent.
The XFreeExtensionList function frees the memory allocated by XListExtensions.
X Version 11 libX11 1.5.0 XQueryExtension(3)