Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

374.Advanced search and replace -- How to remove the first 10 characters of each line in text file?

User: editor -- 2009-12-24          << 373  375 >>
Hits: 612
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to remove the first 10 characters of each line?
Input Sample:
a123456789Line one
b123456789Line two
c123456789Line three
d123456789Line four
Output Sample:
Line one
Line two
Line three
Line four
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'Replace' window
* set "Replace Unit" to "Line"
* enter "Replace with Pattern" like:

3. click 'Replace', the first 10 characters of each line will be removed.
4. ctrl-s save to file.

Alternative procedure:
1. ctrl-o open source text file
2. ctrl-h open replace dialog
* set "Replace Unit" to "Chars"
* set "Replace Scope" to "Line"
* enter "Unit Number filter" like:

3. click 'Replace', done.
Download Script:  scripts/374.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to reverse the order of characters in each line of text? (80%)
How to remove every other characters on each line of text? (79%)
How to delete the first word in each line in a text file? (75%)
How to remove all letters before "=" in each line of text file? (72%)
How to replace the second character of every line to 4 in a text file? (71%)
How to extract the first 10 and last 10 characters from each line? (70%)
How to remove the sequence number before each line of text file? (70%)
How to remove/delete all multi-byte characters in a text file? (68%)

Check Demo of Advanced search and replace
Keywords:
first 10  unit number filter  number filter  replace scope  scope  filter  characters  unit number  chars  first  remove first 10 characters in text file  remove the first 10 characters in  replace 10 first characters  remove first characters  remove the first line  remove first line  remove first line file  remove line first