Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Simple script
dom9360
post Jul 14 2008, 11:17 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 14-July 08
Member No.: 13,559



What am I doing wrong here?

Just trying to locate all files named Spam and make them blank (not deleting them).


find /home/virtual -type f -name "Spam" -exec echo $blank > {} \;
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
michaelk
post Jul 15 2008, 08:59 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,797
Joined: 23-January 03
Member No.: 360



What are you trying to accomplish?
Go to the top of the page
 
+Quote Post
dom9360
post Jul 16 2008, 01:50 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 14-July 08
Member No.: 13,559



QUOTE (michaelk @ Jul 15 2008, 08:59 PM) *
What are you trying to accomplish?


Try to search for files called 'Spam'.

Next, nullify the file.

This is a spam file on people's email boxes. They don't empty them out. However, they periodically need to check it just in case something good goes over there.

Thanks,D
Go to the top of the page
 
+Quote Post
markjr
post Jul 17 2008, 12:35 PM
Post #4


./configure
***

Group: Admin
Posts: 62
Joined: 9-February 06
Member No.: 6,054



QUOTE (dom9360 @ Jul 16 2008, 01:50 PM) *
Try to search for files called 'Spam'.

Next, nullify the file.

This is a spam file on people's email boxes. They don't empty them out. However, they periodically need to check it just in case something good goes over there.

Thanks,D



I would just cp /dev/null onto them. You probably need to use -f

CODE
find /home/virtual -type f -name "Spam" -exec "cp -f /dev/null {}" \;
Go to the top of the page
 
+Quote Post

Posts in this topic
- dom9360   Simple script   Jul 14 2008, 11:17 AM
- - dom9360   Any one???   Jul 15 2008, 08:54 AM
- - michaelk   What are you trying to accomplish?   Jul 15 2008, 08:59 PM
- - dom9360   QUOTE (michaelk @ Jul 15 2008, 08:59 PM) ...   Jul 16 2008, 01:50 PM
- - markjr   QUOTE (dom9360 @ Jul 16 2008, 01:50 PM) T...   Jul 17 2008, 12:35 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th October 2017 - 01:03 AM