1439 links
  • linx
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
  • ► Play Videos
Links per page: 20 50 100
page 1 / 1
2 results tagged newline x
  • thumbnail
    Emacs query-replace with newlines - Stack Overflow

    Try query-replace enter [ space ] enter M-j enter ! enter

    October 30, 2017 at 4:44:06 PM UTC * - permalink -
    QRCode
    - https://stackoverflow.com/questions/4861774/emacs-query-replace-with-newlines
    carriage-return emacs line newline query-replace space
  • Replacing returns with a comma with tr

    It's an interesting dilemma. There are two obstacles to doing this in sed. One is that sed operates line by line and never sees the newline endings. Second, sed's regular expressions don't provide a way to exactly match a newline character.

    If you really want to do this, don't use sed; use tr.
    cat file | tr '\n' ','

    January 5, 2016 at 10:31:43 AM UTC - permalink -
    QRCode
    - http://funarg.nfshost.com/r2/notes/sed-return-comma.html
    newline regex replace sed
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation