10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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.
Thanks in advance. (6 Replies)
Discussion started by: ken6503
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
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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
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
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
8. Shell Programming and Scripting
I have a file in which i want to replace the charaters from position 3-5 with a particular string for the first line.
The file contains
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
9. UNIX for Dummies Questions & Answers
I have a data like this in a file,
I need to replace those special char to some other char like # or $
Is there any ways to do it…
I tried commands tr,sed and many but it was not able to replace because... (1 Reply)
Discussion started by: solai
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