git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [SCRIPT] chomp: trim trailing whitespace

From
KOKeith Owens <kaos@ocs.com.au>
Date
May 28, 2006, 08:33 UTC
Message-ID
<8694.1148805194@ocs3.ocs.com.au>
In-Reply-To
<Pine.LNX.4.61.0605271441080.4857@yvahk01.tjqt.qr>
Jan Engelhardt (on Sat, 27 May 2006 14:42:02 +0200 (MEST)) wrote:
>And the CL form is
>  perl -i -pe '...'
>Somehow, you can't group it to -ipe, but who cares.

-i takes an optional extension which is used to optionally create backup files. As such, -i must be followed by space if you want no extension (and no backup).

Previous: Jan EngelhardtNext: Martin Langhoff
Message 8 of 11 in “[SCRIPT] chomp: trim trailing whitespace”
  1. Jeff GarzikMay 27, 2006
  2. Jan EngelhardtMay 27, 2006
  3. Thomas GlanzmannMay 27, 2006
  4. Neil BrownMay 27, 2006
  5. Jeff GarzikMay 27, 2006
  6. Dmitry FedorovMay 27, 2006
  7. Jan EngelhardtMay 27, 2006
  8. Keith OwensMay 28, 2006
  9. Martin LanghoffMay 27, 2006
  10. Linus TorvaldsMay 27, 2006
  11. Johannes SchindelinMay 28, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.