NewDisplayName Posted July 23, 2018 Share Posted July 23, 2018 Hi, how i can delete files without extention? Link to comment
JonathanM Posted July 23, 2018 Share Posted July 23, 2018 Same as ones with an extension? Â Please restate with more detail on what you are trying to accomplish, because I am not aware of any limitations for deletion that are caused simply by a file with no characters after the period. Link to comment
ken-ji Posted July 23, 2018 Share Posted July 23, 2018 Unless I read this wrong, the OP wants to run the deletion from a terminal in which case its probably going to be find . -maxdepth 1 ! -name "*.*" -delete Please do not add -delete until you are ready. Link to comment
NewDisplayName Posted July 23, 2018 Author Share Posted July 23, 2018 Thats a clever way, thanks. Exactly what im looking for. Link to comment
NewDisplayName Posted July 23, 2018 Author Share Posted July 23, 2018 Oh no, it also finds directorys.. how to exclude dirs?  Good i tried frist without delete   edit: Ok, i foudn it: find /mnt/user/downloads/completed/ -type f ! -name "*.*" Thanks! Link to comment
ken-ji Posted July 23, 2018 Share Posted July 23, 2018 Good that there was no accident. You may want to be more precise with the request next time  Link to comment
NewDisplayName Posted July 23, 2018 Author Share Posted July 23, 2018 Would have been only some empty directorys, but... better safe then sorry lol  yeah i thought its self explinatory, but i guess, if you dont into it, you cant know whats meant... lol its hard to descripe what you mean in a different language then you speak.   Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.