Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I’m struggling to write a script to do the following,
-will go through each line in the file
-in a specific character positions, changes
the value to a new value
-----------------------
e.g.: file1.sh will have the following 3 lines,line1 aaaa
line2 bbbb
line3 ccccAfter executing the script, content of file1.sh should be,
line1 a1aa
line2 b1bb
line3 ccc1
-----------------------Guru's, thanks a ton in advance
Vini

Hi,
When i ment "specific character positions", the fields that need to be changed are fixed position.
Eg: It will be always 2nd and 7th character postion throughout the lines in the file.Thanks again
Vini

![]() |
new to java
|
remember user inputs
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |