For a programming challenge I need a filesystem which supports newline characters in filenames, so a file can be named something like:
A
filename
with
newlines
I can't find any. Can anyone help me?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityFor a programming challenge I need a filesystem which supports newline characters in filenames, so a file can be named something like:
A
filename
with
newlines
I can't find any. Can anyone help me?
Most Unix file systems allow for this. But you will often run into trouble with various programs and scripts that won't know how to handle it. If you do
date > 'test-
ing'
ls -lbd test*
Then you will see a \n
in the file name which is a newline.
A\nfilename...
? Icky! – Phoshi Apr 10 '10 at 13:56⁄
symbol (0xe28184) instead of the ASCII/
(0x2f). – WhiteWinterWolf Mar 22 '17 at 9:40ls
– phuclv Dec 24 '17 at 12:49