LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-26-2003, 01:48 PM   #16
sn9ke_eyes
Member
 
Registered: Feb 2003
Location: Texas
Distribution: slackware 11
Posts: 90

Rep: Reputation: 15

Quote:
Originally posted by nxny
No offense, but the find command has been suggested in a previous post in this thread. I'd suggest reading the entire thread ( especially when it comes to threads small as this one ) before posting just so your post wouldn't appear redundant.
no offense, but I realize the find command has been suggested in a previous post in this thread. I'd suggest reading the entire thread so that you realize I am suggesting he use the -exec option for find instead of piping through xargs.

I'm not saying one way is better than the other, I'm just trying to provide the guy with more options.
 
Old 02-26-2003, 02:33 PM   #17
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by sn9ke_eyes
I'm not saying one way is better than the other, I'm just trying to provide the guy with more options. [/B]
Yup. But I was saying is that the find command ( with the exec rm {}\; ) will generate the very same error ( Arguments too long ) and hence is not an option.

xargs is the ONLY way out. Apart from splitting the search pattern and matching fewer files each time.
 
Old 02-27-2003, 10:46 PM   #18
georgew
LQ Newbie
 
Registered: Feb 2002
Location: Alaska
Distribution: Fedora 5, Solaris 10, true64bit unix
Posts: 21

Rep: Reputation: 15
mv To move anything to /dev/null is a total process, and is completed, leaving a file of 0 bytes. Also cat /dev/null <file.name> cleans out the file, but the empty file remains with all of its previous permissions, useful for cleaning up cookies, browser droppings and log files. Its been far to long ago to remember, but was educated to believe that it was preferable to mv /dev/null rather than rm -rf
 
Old 02-28-2003, 07:11 PM   #19
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by georgew
Its been far to long ago to remember, but was educated to believe that it was preferable to mv /dev/null rather than rm -rf
Interesting. I would've never known.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
large data trasfer problem mos definitely General 2 12-27-2004 05:23 PM
ncpfs and samba / problems with large data jraute Linux - Software 0 09-27-2004 03:30 AM
need help on processing large data files eph Programming 3 03-11-2004 04:56 AM
perl->large data structures->copying lackluster Programming 0 08-20-2003 10:27 AM
Large data files on CD dema Linux - Newbie 1 01-26-2002 10:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:19 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