1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Truncate/Remove Last Characters in NotePad?

Discussion in 'Black Hat SEO Tools' started by kwakuo, Sep 20, 2011.

  1. kwakuo

    kwakuo Junior Member

    Joined:
    Nov 21, 2010
    Messages:
    194
    Likes Received:
    41
    Hey folks,

    I just created some accounts with TAAC and exported them to Notepad but they all have "|" after the passwords. Anyone know of any formula i can use to remove those last "|" characters? I can't go thro' them all removing them one at a time.

    Any help appreciated.
     
  2. AnonArco

    AnonArco Newbie

    Joined:
    Sep 20, 2011
    Messages:
    3
    Likes Received:
    2
    Mind showing me the format of one of those files?
     
    • Thanks Thanks x 1
  3. shadowedsniper

    shadowedsniper Junior Member

    Joined:
    Aug 15, 2008
    Messages:
    168
    Likes Received:
    100
    Download TextPad and use the replace function
     
  4. ooodaveb

    ooodaveb Junior Member

    Joined:
    Mar 13, 2009
    Messages:
    197
    Likes Received:
    61
    Why can't you just replace the pipe with space? Find replace will do the trick. If it's pipe deliminated, take it to excel and export it out. That'll work too.

    If all else fails get textpad and record a macro. Record this:
    Put the cursor at the beginning of the first line, press the END button, click backspace, then down arrow.

    Playback macro till end of file.
     
    • Thanks Thanks x 1
  5. AnonArco

    AnonArco Newbie

    Joined:
    Sep 20, 2011
    Messages:
    3
    Likes Received:
    2
    How about?

    Code:
        class Program
        {
            const string path = "C:/Users/Arco/Desktop/Accounts/";
    
             static string[] fileEntries = Directory.GetFiles(path);
    
            static void Main(string[] args)
            {
                foreach (string fi in fileEntries)
                {
                    string Text = String.Empty;
                    using (StreamReader i = new StreamReader(fi))
                    {
                        
                        Text = i.ReadToEnd().Replace("|", "") ;
                        File.Delete(fi);
                        File.Create(fi);
                        using (StreamWriter s = new StreamWriter(fi))
                        {
                            s.Write(Text);
                            s.Flush();
                            s.Close();
                        }
                    }
                }
                Console.ReadLine();
            }
        }
    
     
    • Thanks Thanks x 1
  6. TheMatrix

    TheMatrix BANNED BANNED

    Joined:
    Dec 20, 2008
    Messages:
    3,444
    Likes Received:
    7,279
    Do this.

    1. Cope the "|"
    2. Go to replace.
    3. In find, put the "|".
    4. In a new notepad doc, make a new line, select all, and copy
    5. Paste in replace with.
    6. Replace all!
     
    • Thanks Thanks x 1
  7. kwakuo

    kwakuo Junior Member

    Joined:
    Nov 21, 2010
    Messages:
    194
    Likes Received:
    41
    It saves it in this format:

    myusername|password|

    So just using notepad to replace "|" with space/nothing will also replace the "|" before the password. Its just only the last "|" (pipes) i want out


    am gona try all the suggestions and see what works easier. Thanks guys.
     
    Last edited: Sep 20, 2011
  8. wannabie

    wannabie Elite Member

    Joined:
    Mar 11, 2009
    Messages:
    3,807
    Likes Received:
    2,954
    Occupation:
    Seo and Marketing Suprisingly
    Location:
    Your bedroom window
    Home Page:
    Why not use text in column with excel?

    Actually I read again

    Use edit on notepad and remove them or download pspad
     
    • Thanks Thanks x 1
  9. shadowedsniper

    shadowedsniper Junior Member

    Joined:
    Aug 15, 2008
    Messages:
    168
    Likes Received:
    100

    Replace "|\n" with "\n". (\n means newline)

    I did something just like that yesterday using TextPad.
     
    • Thanks Thanks x 1
  10. kwakuo

    kwakuo Junior Member

    Joined:
    Nov 21, 2010
    Messages:
    194
    Likes Received:
    41
    That also worked like charm using txtpad.
     
  11. AnonArco

    AnonArco Newbie

    Joined:
    Sep 20, 2011
    Messages:
    3
    Likes Received:
    2
    How about this then?
    Code:
     class Program
        {
            const string path = "C:/Users/Arco/Desktop/Accounts/";
    
            static string[] fileEntries = Directory.GetFiles(path);
    
            static void Main(string[] args)
            {
                foreach (string fi in fileEntries)
                {
                    string Text = String.Empty;
                    using (StreamReader i = new StreamReader(fi))
                    {
    
                        Text = i.ReadToEnd();
                        Text = Text.Remove(Text.Length - 1);
                        File.Delete(fi);
                        File.Create(fi);
                        using (StreamWriter s = new StreamWriter(fi))
                        {
                            s.Write(Text);
                            s.Flush();
                            s.Close();
                        }
                    }
                }
                Console.ReadLine();
            }
        }
     
  12. ctag187

    ctag187 Newbie

    Joined:
    May 25, 2011
    Messages:
    28
    Likes Received:
    0
    Give notepad++ a chance. open source.. just google for it. can't remember exactly but I think that there was a possibility to delete the last character of each line.

    cheers,
    Chris
     
  13. wannabie

    wannabie Elite Member

    Joined:
    Mar 11, 2009
    Messages:
    3,807
    Likes Received:
    2,954
    Occupation:
    Seo and Marketing Suprisingly
    Location:
    Your bedroom window
    Home Page: