LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2010, 01:15 PM   #1
sridhar.bodike
LQ Newbie
 
Registered: May 2010
Location: Hyderabad
Distribution: RHEL
Posts: 12

Rep: Reputation: 0
Smile delete files which have no extensions


how to delete only files which have no extensions in the directories. but other files should exist.
 
Old 05-30-2010, 01:18 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Why...? I mean its easy enough, but are you sure?
 
1 members found this post helpful.
Old 05-30-2010, 01:22 PM   #3
sridhar.bodike
LQ Newbie
 
Registered: May 2010
Location: Hyderabad
Distribution: RHEL
Posts: 12

Original Poster
Rep: Reputation: 0
if it is easy for u dude then wat abt me its not easy for me thats d reason i asked the question if u know plz answer me.
 
0 members found this post helpful.
Old 05-30-2010, 01:29 PM   #4
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Code:
man rm
or even

Code:
man find
will tell you. But I'm standing by it... are you absolutely sure thats what you want to do? Also, please don't use text talk on these forums; its often hard enough to understand what people mean without having to decipher further.
 
1 members found this post helpful.
Old 05-30-2010, 01:56 PM   #5
fruttenboel
Member
 
Registered: Jul 2008
Location: Tilburg NL
Distribution: Slackware 14.2 ciurrent, kernel 3.18.11
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by sridhar.bodike View Post
how to delete only files which have no extensions in the directories. but other files should exist.
Use the midnight commander (mc) from a terminal window.
 
Old 05-30-2010, 02:10 PM   #6
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Quote:
Originally Posted by fruttenboel View Post
Use the midnight commander (mc) from a terminal window.
Not quite; OP wants a single line script. He/She could do it any number of ways without needing to ask if this were the case.

Not to mention that this requires mc, or installing it.
 
0 members found this post helpful.
Old 05-30-2010, 02:54 PM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
how to delete only files which have no extensions in the directories. but other files should exist.
It's a "homework" Q.
 
1 members found this post helpful.
Old 05-30-2010, 09:09 PM   #8
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
find . -type f ! -name "*.*" -exec rm '{}' \;
 
Old 05-31-2010, 05:24 AM   #9
fruttenboel
Member
 
Registered: Jul 2008
Location: Tilburg NL
Distribution: Slackware 14.2 ciurrent, kernel 3.18.11
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by jamescondron View Post
Not quite; OP wants a single line script. He/She could do it any number of ways without needing to ask if this were the case.

Not to mention that this requires mc, or installing it.
In the original post is no reference to a single line of script. mc is installed always (afaik). mc is intuitive and failsafe. mc asks you if you are sure. mc is a fine program, also for experienced linuxers.
 
Old 05-31-2010, 05:27 AM   #10
fruttenboel
Member
 
Registered: Jul 2008
Location: Tilburg NL
Distribution: Slackware 14.2 ciurrent, kernel 3.18.11
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by tredegar View Post
It's a "homework" Q.
yeah and we're fixing it so he can get an 'A' so he can steal our job in a few years.... :0(
 
Old 05-31-2010, 07:41 AM   #11
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Quote:
Originally Posted by fruttenboel View Post
he can steal our job in a few years.... :0(
I don't think that will be an issue.
 
Old 05-31-2010, 09:04 AM   #12
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
Quote:
Originally Posted by Bratmon View Post
I don't think that will be an issue.
It won't. 'Cause if he/she ever stoles your job, the first thing he/she will do is post to LQ asking for help Just point his/her boss in the "right" direction (or hyperlink for that matter)
 
1 members found this post helpful.
Old 06-01-2010, 04:58 AM   #13
fruttenboel
Member
 
Registered: Jul 2008
Location: Tilburg NL
Distribution: Slackware 14.2 ciurrent, kernel 3.18.11
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by HasC View Post
It won't. 'Cause if he/she ever stoles your job, the first thing he/she will do is post to LQ asking for help Just point his/her boss in the "right" direction (or hyperlink for that matter)
Well, me and my friends (we publish about microcontroller programming) got sick and tired from the requests from India and Pakistan for help with their projects. The arrogance drips from these mails. They wanted it for free, immediate delivery, with full documentations and source code (tested to run of course).

We don't even look at these 'requests for help' anymore. Especially since an indian engineer, studying in UK, told us that many IED roadside explosives were based on simple microcontrollers like PIC and AVR8. Helping such a poor engineer might as well kill one of our own soldiers..

Lots of dutch companies have their research done in India. For the money. What they produce in results is aweful. Still, these guys are cheap and if you spawn 6 teams, one might come up with a sensible solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need to rsync only selected files (--files-from) also need to delete files on dest. ? BrianK Linux - General 5 10-22-2009 09:52 PM
Can I delete files in /mnt/tmp? and Files in the trash can will not delete? M$ISBS Slackware 15 10-02-2009 11:56 PM
Finding multiple files with ascending numerical files extensions unim21 Linux - Newbie 3 04-23-2009 07:50 PM
files extensions BillyF General 4 02-17-2007 05:17 PM
files with extensions ;type=i santoshraju Linux - General 2 12-11-2004 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration