Please my job depends on this ....


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Please my job depends on this ....
# 1  
Old 03-07-2005
Move Files by specific owner

I need to write a script that will move files from a direcory to another directory, but only the files that are owned by a specific owner.

e.g. if seven files in a dir are owner by a user called 'budd' then move to a direcory called \budd. If not then leave alone.

Many Thanks

Last edited by Budd; 03-08-2005 at 04:33 AM..
# 2  
Old 03-07-2005
man find

find . -type f -user budd -exec mv {} path2BUDDdirectory \;
# 3  
Old 03-07-2005
Budd, please read our rules and note:
(3) Refrain from idle chatter that does not contribute to the knowledge base.

"idle chatter" includes autobiographical data intended to imply that your particular problem is more deserving of an answer than someone else's. Please, in the future, simply pose your question.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Result of nmap depends of mac address

Hi guys, i am having some mine bash script which print only ip addresses echo "Interfaces IP addresses:" ip -o addr | awk '!/^*: ?lo|link\/ether/ {print $2" "$4}' echo -n "enter range of IPs(192.168.0.1-254): " read range nmap -oG - $range >/home/test/Desktop/SCAN cat... (0 Replies)
Discussion started by: tomislav91
0 Replies

2. Shell Programming and Scripting

While loop depends on variable

The variable N is set upon start of script so while loop runs and keeps running because N is not being updated when loop is running: N becomes less than 9 but it still runs (should be "done").... Any ideas? Thanks! N=`wc -l /home/count.txt | awk '{print $1}'` while test "$N" -gt "10"... (10 Replies)
Discussion started by: holyearth
10 Replies

3. Programming

Valgrind Error : Conditional jump or move depends on uninitialised value(s)

Hi Friends, I am using valgrind, to check errors, there are no errors in my code but this the output put i get, i need to suppress these errors, please help me do so... Conditional jump or move depends on uninitialised value(s) ==2350== at 0x400AF0F: (within /lib/ld-2.11.1.so)... (0 Replies)
Discussion started by: niranjanvg
0 Replies

4. UNIX for Dummies Questions & Answers

valgrind Conditional jump or move depends on uninitialised value(s)

Hi, I know similar questions appeared here already, still i didnt find answer to my problem yet. Im getting the following message from valgrind (version 2): ==15414== 1 errors in context 1 of 6: ==15414== Conditional jump or move depends on uninitialised value(s) ==15414== at... (2 Replies)
Discussion started by: evasz
2 Replies

5. Programming

valgrind (Conditional jump or move depends on uninitialised value(s))

Hi everybody, I wrote a small subroutine 'GetStringDelim()' to return a substring from a string enclosed by a string 'Limit1' and a char 'Limit2'. It works perfectly and I don't get an error message together with valgrind, if I set the 3rd parameter in GetStringDelim() to NULL (see below). ... (3 Replies)
Discussion started by: MIB_Maik
3 Replies

6. UNIX for Dummies Questions & Answers

Please Help:Need to Split the file into mutliple files depends on the KEY field value

Hi Gurus, I am new to UNIX(HP). my requirmnet is File needs to needs to be split into multiple files dependa on one key value. example 1 abc 333 us 2 bbc 444 ch 5 nnn 333 kk 7 hhh 555 ll 3 hhh 333 hh now the requirment is line with 333 should be copied into test1.txt and... (14 Replies)
Discussion started by: arund_01
14 Replies

7. Shell Programming and Scripting

Depends on Machine?

I am trying to learn PERL programming. I copied this example from a book just to try it on my machine. It worked out fine but when I tried it on another machine, an error appears: syntax error near unexpected token ';'. I tried it on a third machine but a new error appears: command not found. ... (4 Replies)
Discussion started by: Slick
4 Replies

8. Solaris

killing a unix job after the job process gets completed

Hi, Thanks in advance. i need to kill a unix background running job after that job process completes. i can kill a job by giving the following unix command kill -9 processid how to kill the job after the current process run gets completed ? Appreciate your valuable help. Thanks... (7 Replies)
Discussion started by: dtazv
7 Replies

9. Shell Programming and Scripting

killing unix job after the job process completes

Hi, Thanks in advance. i need to kill a unix background running job after that job process completes. i can kill a job by giving the following unix command kill -9 processid how to kill the job after the current process run gets completed ? Appreciate your valuable help. ... (1 Reply)
Discussion started by: dtazv
1 Replies
Login or Register to Ask a Question