10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Gurus,
I need replace some charactors in a file.
in following example. I need replace from 4th charactor to 6th charactor with x in each line.
abcdefghijklmn
123456789011
excepted result:
abcxxxghijklmn
123xxx789011
Thanks in advance. (6 Replies)
Discussion started by: ken6503
6 Replies
2. Shell Programming and Scripting
I want to read a constantly changing file and do some operation on text found in that file.
Actually that is log file of linux system and whenever i find a matching string in that file i want to create a text file with timestamp. is it possible to read that file?
here is sample output of log... (7 Replies)
Discussion started by: kashif.live
7 Replies
3. Shell Programming and Scripting
Hi guys.
I have file named output.txt containing file names. one per line. I use this command to convert all characters to capital letters and write to the same file.
cat output.txt | tr 'a-z' 'A-Z' > output.txtBut at the end output.txt is emtpy. Could anyone help?? (6 Replies)
Discussion started by: majid.merkava
6 Replies
4. Shell Programming and Scripting
Hi,
I need to replace 10 characters string (21-30) in a file with another string.
I tried using cut command, i am able get these 10 charaters, but do not know how to replace them inside the file.
for example file content(these are alphanumeric characters):... (3 Replies)
Discussion started by: Johny001
3 Replies
5. Shell Programming and Scripting
Hello Freinds,
I have a file with name ABC123456. and I need to change this to X123456.
Please tell me how can I do this?
Thank you. (5 Replies)
Discussion started by: smarty86
5 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
I have a requirement where i have to read from a .sh file a text lying bet characters like 'SELECT' & ';'...Please help me out in this. I am new to shell scripting. (2 Replies)
Discussion started by: goutam_igate
2 Replies
8. Shell Programming and Scripting
Hi,
I have a file in which i want to replace the charaters from position 3-5 with a particular string for the first line.
For ex
The file contains
abcdefghij
jkdsflsfkdk
908090900
i want to replace the characters 3-5 for the first line as 678
so, the file should look like
... (7 Replies)
Discussion started by: dnat
7 Replies
9. Shell Programming and Scripting
Hi all,
I have a file with multiple lines. I want to replace characters 7 through 14 of every line with 0000000
Input:
12345678901234567890
23456789012345678901
Output
12345600000004567890
23456700000005678901
Please help.
JaK (9 Replies)
Discussion started by: jakSun8
9 Replies
10. Shell Programming and Scripting
I have a tab delimited file which has 27 character fields. The file needs to be loaded into an Oracle table. But the challenge is that everytime the file comes it may or may not have values in all 27 fields.
Column Definition of the 27 fields:
TYPE: Char (1)
NAME: Char (30)
CUSTOM_VAL: Char... (8 Replies)
Discussion started by: madhunk
8 Replies