The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
exit status of command in a pipe line topcat8 UNIX for Dummies Questions & Answers 10 10-19-2007 04:39 AM
Pipe out ftp command to a file lweegp UNIX for Dummies Questions & Answers 2 10-10-2005 05:40 AM
pipe command zomboo UNIX for Dummies Questions & Answers 1 10-31-2004 06:04 PM
ret val of a command in a pipe which is NOT the last one latze Shell Programming and Scripting 5 11-01-2002 10:32 AM
How to pipe command anonymous.nico UNIX for Advanced & Expert Users 4 03-20-2002 03:06 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-08-2007
bintaleb bintaleb is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 24
How can I use pipe command ?

Hi My friends

I have used this command to find files are modified within the past 24 hours

and then many files are shown but I want transfer all these files to special directory by using pipe .

can any one tell me what is the next step ?
  #2 (permalink)  
Old 04-08-2007
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
xargs is the easiest way to handle this...
Code:
find_command_here | xargs -I{} mv {} /target/dir
Cheers
ZB
  #3 (permalink)  
Old 04-08-2007
bintaleb bintaleb is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 24
so my command will be like this :
find_command_here | xargs -I{} mv {} [/target/dir] --->[is this my directory that will be transferred to it all that files]

and what is meant by -I{} and mv{}?

mv :to move files but mv{}

thanks
  #4 (permalink)  
Old 04-10-2007
bintaleb bintaleb is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 24
thank you my friend

that command it is working finally after many trying but how can I let that command to work in specific time automatically?

thanks
  #5 (permalink)  
Old 04-10-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
What do you mean by specific time? Does it mean that it has to run at a specific time of the day or something? To do any sort of scheduling on unix, you can use cron. Check the man pages of cron and crontab for details on how the job can be scheduled.
  #6 (permalink)  
Old 04-10-2007
bintaleb bintaleb is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 24
yes that is my mean, how can I run that command in specific time ? let me try my brother

my regards
  #7 (permalink)  
Old 04-10-2007
kingdbag kingdbag is offline
Registered User
  
 

Join Date: Jun 2006
Location: Las Vegas, NV
Posts: 104
Put it in as a cron job.

http://www.scrounge.org/linux/cron.html
Sponsored Links
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0