Hi Vladimir,
I was just reading strings.nix, removeSuffix seems indeed the best
candidate, thanks for confirming this!
Kind regards,
Erik aka 4levels
On Thu, Jun 9, 2016 at 4:32 PM Vladimír Čunát wrote:
> On 06/09/2016 04:24 PM, 4levels wrote:
> > 'd like to know if there's an easy way to str
On 06/09/2016 04:24 PM, 4levels wrote:
> 'd like to know if there's an easy way to strip off the trailing newline
> from a file read with builtins.readFile.
lib.removeSuffix "\n"
--Vladimir
smime.p7s
Description: S/MIME Cryptographic Signature
___
n
Hi Nix Devs,
In a related question to have my sensitive info separated from the normal
NixOps configuration files, I am reading the passwords, keys, ciphers, ...
from separate files (which are encrypted with git-crypt).
My IDE (webstorm) keeps adding a trailing newline when saving these files.
I