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: Text Tricks

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.
  • Follow Following
    • Infinite Logins
    • Join 100 other followers
    • Already have a WordPress.com account? Log in now.
    • Infinite Logins
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar