LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-05-2009, 09:33 AM   #16
nemajan
LQ Newbie
 
Registered: May 2009
Posts: 9

Original Poster
Rep: Reputation: 0

Thx, i'll think a bit.

Last edited by nemajan; 05-05-2009 at 09:36 AM.
 
Old 05-05-2009, 09:35 AM   #17
nemajan
LQ Newbie
 
Registered: May 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Oh, i almost forgot +...

This is it, am i right? (I'll test it asap)

n=$(($1 * 7))
m=$2
find . -mtime +${n} -size +${m}G -print
 
Old 05-05-2009, 09:52 AM   #18
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
It looks correct, now.
 
Old 05-10-2009, 01:35 PM   #19
nemajan
LQ Newbie
 
Registered: May 2009
Posts: 9

Original Poster
Rep: Reputation: 0
How can i solve that it won't matter from where it runs? Because this way it will only search in its directory (and subdir-s).
 
Old 05-10-2009, 02:13 PM   #20
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
The find command accepts the starting point of the search as argument. In your solution you used "." (dot) as search point. Can you guess the solution?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell scripting exercise siawash Linux - Certification 5 04-11-2009 06:06 PM
I need some help for a Linux exercise kromer12345 Programming 1 06-27-2007 01:25 PM
Exercise Logging Software Jonititan Linux - Software 3 03-17-2007 12:20 AM
Exercise: Life Without Oil rvijay General 61 08-13-2005 02:01 PM
help with this exercise njeri Programming 1 04-26-2005 08:35 AM


All times are GMT -5. The time now is 04:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration