10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
with in my files i have the data like this, starting with a pipe and ending the line with a pipe.
all i want is to replace the first and last pipe , remove those
trying to use following sed command, but it is only showing on the screen the entire data of the file as if it removed, but when i... (4 Replies)
Discussion started by: cplusplus1
4 Replies
2. Shell Programming and Scripting
Hello All
I am struck in the issue which I want to share with all of you.
What I am trying to do is For every line in a file I have to replace a particular character from the given character in a file
For Example
Suppose the data is
1111x2222
1111x2222
2222y3333
1111x2222
I... (4 Replies)
Discussion started by: adisky123
4 Replies
3. Shell Programming and Scripting
Hi,
I am trying to remove the caret symbol from a bash variable. This is the variable:
var="GOTAN^TOK^B"and this is the code I am trying to use to remove the caret symbol:
nocarrot=`echo $var | sed -e 's/^/_/g'`This is the output intended (but not acheived with the above function):... (3 Replies)
Discussion started by: goodbenito
3 Replies
4. UNIX for Dummies Questions & Answers
I am trying to replace '(' and ')' symbol with nul text using tr command. But i am not able to get the expected output . Please help
# cat test.txt
155170816-(75767Mb)
# tr '(' '' < test.txt
155170816-(75767Mb)
# tr ')' '' < test.txt
155170816-(75767Mb)
#
I want the o/p as
... (8 Replies)
Discussion started by: thomasraj87
8 Replies
5. UNIX for Advanced & Expert Users
I have TXT files to process but they contain the degree symbols in them due to which the processing program fails on these files. I want a unix command that will remove the degree symbols from these files.
I tried using the sed command: sed 's///g' filename but it did not work. This issue... (14 Replies)
Discussion started by: khedu
14 Replies
6. Shell Programming and Scripting
I want to remove the commented lines in a file identified by ' symbol at the start of each ine. A sample example will be like:
Input
-----
'IFerr_flag=0THEN
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
iferr_flag=0then
Output
-------... (3 Replies)
Discussion started by: joyan321
3 Replies
7. Shell Programming and Scripting
hi guys i have 6000 rows column
the text in the column has the symbol vertical bar |.
i tried some of the commands to remove it but none of the commands are reconzng this symbol. would u plz help to remove this symbol from the text with any kind of unix command
u r help would be appreciated
... (9 Replies)
Discussion started by: bogu0001
9 Replies
8. Shell Programming and Scripting
i have file in which i want to replace a char with new line
please help me out (1 Reply)
Discussion started by: RahulJoshi
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a file with large number of records. Sample below:
123456789QWERT2U 2 erter
987123678ZXCVB6Y 5 7689
934567123GHJKUI4O 7
-
--
--
I want the 16th character in each record to be replaced with the below as follows;so 2 will become K, 6 will become O and 4 will become... (3 Replies)
Discussion started by: er_ashu
3 Replies
10. UNIX for Advanced & Expert Users
Hi,
I want to know about the characters that are available in the Symbol.pfa font file. I am using freetype library to render the fonts in Windows. What encoding should I provide to get all the symbols in the Symbol font file?
It would be very helpful if i get all the characters in this... (0 Replies)
Discussion started by: pushpagiri
0 Replies