Skip to content

Infinite Logins

  • Home
  • Enumeration Cheatsheets
  • Tips & Tricks
  • Hacking Tutorials
  • Hack The Box Write-Ups
  • WebApp Pentesting 101
  • General Blog

Find specific topics

Skip to content

Infinite Logins

Tag: Vi

Tips & Tricks

Using Text Editors to Replace New Lines w/ Comma

Posted on September 29, 2020September 30, 2020 by Harley

Using Vi

  1. Open the file in Vi editor
  2. Switch to command mode.
  3. To replace all newline characters with comma use
    :1,$s/\n/, /g
  4. Press Enter

Using NotePad++

  1. Open a NotePad++ window.
  2. Insert Find and Replace mode.
  3. Within the Find What field, enter the following:
    \r\n
  4. Within the Replace with field, enter a comma.

0
Powered by WordPress.com.
  • Subscribe Subscribed
    Infinite Logins
    Join 79 other subscribers

    Have a WordPress.com account? Log in now.

  • Infinite Logins
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar