10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I have a large txt file on my AIX server and I need to replace some text using two other files. So filename1 has about 500 lines similar to:
txtcode SYStem100
I have the string I want to change in string2 and the new stringname in string3. Does anyone know a way of doing this? I have... (1 Reply)
Discussion started by: Grueben
1 Replies
2. Shell Programming and Scripting
Hello,
Can anyone help me?
I need to replace the letters (A, B, C..) of the second column in this file by a number i.e. 1.
current file
0123456 0A123 0003355 Marion
1234567 0B117 0003388 Anthony
1112333 0C345 0459877 Ann
new file
0123456 01123 0003355 Marion
1234567 ... (3 Replies)
Discussion started by: Lilu_CK
3 Replies
3. Shell Programming and Scripting
Greetings UNIX folks,
I am running a tcsh script and trying to replace the last character of a file with the number 0. I know that the last character of the file will always be 1, but I only want to replace the last character.
Example:
78062
26.55
78.77
1
MYGF1
24.89
15.78
1
... (2 Replies)
Discussion started by: TheSMan5
2 Replies
4. Shell Programming and Scripting
hi,
I have a doubt in replacing characters with blank.
My requirement is that, i have one file and looks like below
4:ALTER SYSTEM DISCONNECT SESSION '193,191' IMMEDIATE;
6:ALTER SYSTEM DISCONNECT SESSION '205,7274' IMMEDIATE;
5:ALTER SYSTEM DISCONNECT SESSION '206,34158' IMMEDIATE;... (4 Replies)
Discussion started by: sridhusha
4 Replies
5. Shell Programming and Scripting
Hi,
I need to replace a character in a specific position in only the first line of a
file (actually many files). Change T to a P in position 103.
I'm on solaris and my implementation of sed doesn't have the -r capability.
Thx,
Tim (8 Replies)
Discussion started by: web-guy01
8 Replies
6. Shell Programming and Scripting
Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies
7. Shell Programming and Scripting
Hi All,
I have file contains the following information.
chem00s4.mis.amat.com ] Critical 3/21
chem00s4.mis.amat.com ] Normal 3/22
chem00s4.mis.amat.com ] Normal 3/23
chem00s4.mis.amat.com ] Normal 3/24
chem00s4.mis.amat.com ] Critical 3/25... (2 Replies)
Discussion started by: ntgobinath
2 Replies
8. Shell Programming and Scripting
suppose u have a file
aas P-H 123
gdg O-U 223
hdy I-Y 12
fgd K-O 333
ssa L-P 32
output shud be like that
aas P123H
gdg O223U
hdy I12Y
fgd K333O
ssa L32P
thanks (7 Replies)
Discussion started by: cdfd123
7 Replies
9. Shell Programming and Scripting
Hi,
I want to replace a character in every line in the file
say the file looks like this
SOBO20060830094122140014541834 WENP0414541835 ]
SOBO20060830094121140014541834 WENP0414541835
SOBO20060830094121140014541834 WENP0414541835
I want to replace the blue 00 by TS. (6 Replies)
Discussion started by: preethgideon
6 Replies
10. UNIX for Dummies Questions & Answers
How would you replace the n character in a file with some xyz? (2 Replies)
Discussion started by: JosephGerard
2 Replies