LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-01-2005, 03:31 AM   #1
manjushp
LQ Newbie
 
Registered: Oct 2004
Posts: 20

Rep: Reputation: 0
conditonal moving of files


How to " move all files from folder1 to folder 2 who size is less than 250 Kb, which were created after october 25 and which were created by user 1" in shell script
 
Old 11-01-2005, 04:59 AM   #2
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
You typically start out by reading the "find" manual page, then construct a find command to find al the files that need moving, and then move them using xargs or a for loop or backticks or whatever.

Groetjes,

Kees-Jan
 
Old 11-01-2005, 05:04 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
this sounds an awful lot like homework, as have a number of other posts. look at the find manpage and you'll see it's pretty easy anyway.
 
  


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
Moving files Pyrophorus Slackware 5 11-09-2005 10:47 AM
Moving files UmneyDurak Fedora 4 08-28-2005 05:52 PM
moving files pantera Programming 2 08-23-2005 05:58 AM
Moving Files arockia Linare 3 09-08-2004 08:14 AM
Moving Files jhotchkiss Linux - Newbie 5 09-16-2003 03:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:43 PM.

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