How to remove first line from text file?

May 1, 2013 at 11:10 PM
Edited May 1, 2013 at 11:29 PM
I've got it working to remove the TAB chars from the whole file here:
 (?<stringa>.*[^\t])\t(?<stringb>.*[^\t])\t(?<stringc>.*\t)
Next problem is I want to erase the first line.

If I change it to this:
\A.*(?<stringa>.*[^\t])\t(?<stringb>.*[^\t])\t(?<stringc>.*\t)
...it finds the first line but only the second line. How can it find the rest of the lines?

BTW... Thank you for making this utility.

Chris
Coordinator
Jun 26, 2013 at 10:43 AM
Hi Chris,

Can you explain what you mean by:
".it finds the first line but only the second line. How can it find the rest of the lines?"

Please provide a sample file and command line that you use. What should the file look like after replacement works correctly.

Some scenarios you mentioned can be done as follows:

To delete all TABs: [\t]
Command line: ... --useRegEx --find "[\t]" --replace ""

To delete first line: \A.*
Command line: ... --useRegEx --find "\A.*" --replace ""


Eric
Jun 26, 2013 at 6:58 PM
Hey Eric,

Thanks for responding.

I meant that it erases the first line as wanted but as far as erasing the tabs, it erases them on the first line only.

Since it has been awhile since my OP, it believe I worked that out. However, I have another problem. Should I open a new post or can I use this thread?
Coordinator
Jun 27, 2013 at 5:12 AM
Hi Chris,

If the problem is not related to original issue, please start another discussion.

Eric