Skip to main content

Timeline for How to change end of filename

Current License: CC BY-SA 4.0

14 events
when toggle format what by license comment
Aug 13, 2020 at 16:02 answer added Natsfan timeline score: 0
Aug 12, 2020 at 19:03 review Close votes
Aug 27, 2020 at 3:07
Aug 12, 2020 at 16:39 comment added Kusalananda @DominikNovák Please show what the filenames are when viewed in the terminal, e.g. by updating the question and adding the output of ls -d for one of the files. Jesse is totally correct in saying that a filename can't contain a / character, not on any Unix system. If you see a / in a filename, then that is the result of decoding some other combination of characters in a particular application, as user4556274 suggests.
Aug 12, 2020 at 16:24 comment added uday_2294 Did you try using the cut command?
Aug 12, 2020 at 15:20 history edited Jeff Schaller
edited tags
Aug 12, 2020 at 13:55 comment added Dominik Novák Sorry Jesse_b that I tried to convince you.
Aug 12, 2020 at 13:54 comment added Dominik Novák Thank you, that is the problem.
Aug 12, 2020 at 13:38 comment added user4556274 If you see a file ending /2, in the Finder browser, it will end in :2, when viewed in Terminal. cf apple.stackexchange.com/questions/173529/…. If you want to rename in the command line, you'll need to use the filename as visible in shell.
Aug 12, 2020 at 13:37 comment added jesse_b Please show partial output of ls -alp for some of these files.
Aug 12, 2020 at 13:35 comment added Dominik Novák These files are generated from linux server and when I open them in Finder browser I can see them like it. If I delete /2, file is ok. So I guess it can not be directory
Aug 12, 2020 at 13:30 comment added jesse_b it's not possible to have a filename with / in it.
Aug 12, 2020 at 13:29 comment added Dominik Novák Not really I have few hundred files and they look like this.
Aug 12, 2020 at 13:11 comment added jesse_b This is not a valid filename. 1516092009.M432844P7000.camel5,S=14022,W=14295 is a directory and 2, is the file.
Aug 12, 2020 at 13:00 history asked Dominik Novák CC BY-SA 4.0