Timeline for How can two files in one of my folders have the same name?
Current License: CC BY-SA 4.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 1, 2024 at 16:03 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
edited body
|
| May 24, 2020 at 14:38 | comment | added | Ting Yi Shih |
The command ls | LC_ALL=C sed -n l helps me find out that my other filename has a space behind!
|
|
| Mar 16, 2020 at 1:06 | comment | added | Elijah Lynn |
Damn, TIL that you can have spaces at the end of a file name and it looks like there are two identically names files on the filesystem.! Great answer, ls | LC_ALL=C sed -n l really was a big time saver just now, thanks!
|
|
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot |
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
|
|
| Aug 16, 2014 at 7:11 | comment | added | Stéphane Chazelas | @vinc17, good point, that's also better than sed to spot files with newline characters, but not always to spot trailing space. I've added it to the answer. | |
| Aug 16, 2014 at 7:10 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 |
added 529 characters in body
|
| Aug 16, 2014 at 0:11 | comment | added | vinc17 |
@StéphaneChazelas You can also use: LC_ALL=C ls -b
|
|
| Aug 15, 2014 at 23:48 | vote | accept | somethingSomething | ||
| Aug 15, 2014 at 22:26 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 |
copy-paste had re-composed the é into é
|
| Aug 15, 2014 at 22:14 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 |
added 416 characters in body
|
| Aug 15, 2014 at 22:07 | comment | added | Stéphane Chazelas |
sed's l command displays the input in visually unambiguous form. With LC_ALL=C, we make sure it uses only ASCII characters for that (though at least with GNU sed, it is not necessary).
|
|
| Aug 15, 2014 at 21:59 | comment | added | ryekayo |
If you don't mind me asking Stephane, what does the piped command LC_ALL=C sed -n 1 do?
|
|
| Aug 15, 2014 at 21:57 | history | answered | Stéphane Chazelas | CC BY-SA 3.0 |