Sponsored Content
Top Forums Shell Programming and Scripting deleting all files with 0 size Post 302453123 by mnmonu on Tuesday 14th of September 2010 06:28:05 AM
Old 09-14-2010
try this

Code:
find . -type f -size 0 | xargs rm -f


Last edited by radoulov; 09-14-2010 at 07:36 AM.. Reason: Code tags, please!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

bash script working for small size files but not for big size files.

Hi, I have one file stat. Stat file contents are as follows: for example. H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000 H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000 Now i... (1 Reply)
Discussion started by: davidpreml
1 Replies

2. Shell Programming and Scripting

Checking files size and deleting if bigger than x

Hello , I have to write a crontab line make a check on a file and, if bigger than 2Gb, to stop apache daemon, delete the file and restart apache . Someone have suggestions ? Thanks (2 Replies)
Discussion started by: gogol_bordello
2 Replies

3. Shell Programming and Scripting

Merge files of differrent size with one field common in both files using awk

hi, i am facing a problem in merging two files using awk, the problem is as stated below, file1: A|B|C|D|E|F|G|H|I|1 M|N|O|P|Q|R|S|T|U|2 AA|BB|CC|DD|EE|FF|GG|HH|II|1 .... .... .... file2 : 1|Mn|op|qr (2 Replies)
Discussion started by: shashi1982
2 Replies

4. Shell Programming and Scripting

Deleting files

hellooo..... script is: To remove a file from a directory if a starting letter and a file size is given by the user. My code is: echo "Enter a letter" read l echo "Enter Size" read size for i in `ls $l*` do s=`stat -c %s $i` if then rm $i ... (1 Reply)
Discussion started by: Priyanka Bhati
1 Replies

5. Shell Programming and Scripting

Deleting files based on their size

I have several files in a folder and I would like to delete the ones that do not contain all the required information (size) let say 1kb. Any ideas? (4 Replies)
Discussion started by: Xterra
4 Replies

6. Shell Programming and Scripting

Need help comparing two files and deleting some things in those files!

So I have two files: File1 pictures.txt 1.1 1.3 dance.txt 1.2 1.4 treehouse.txt 1.3 1.5 File2 pictures.txt 1.5 ref2313 1.4 ref2345 1.3 ref5432 1.2 ref4244 dance.txt 1.6 ref2342 1.5 ref2352 1.4 ref0695 1.3 ref5738 1.2 ref4948 1.1 treehouse.txt 1.6 ref8573 1.5 ref3284 1.4 ref5838... (24 Replies)
Discussion started by: linuxkid
24 Replies

7. Shell Programming and Scripting

AIX system.... deleting files in remote directory after retrieving files

Hi Friends, I am new to this , I am working on AIX system and my scenario is to retrive the files from remote system and remove the files from the remote system after retreving files. I can able to retrieve the files but Can't remove files in remote system. Please check my code and help me out... (3 Replies)
Discussion started by: vinayparakala
3 Replies

8. Shell Programming and Scripting

Deleting files

Hi all, I have developed a shell script to copy the files from source to destination and simultaneously to delete the copied files in source. I can copy the files but the files cannot be deleted in source side. (3 Replies)
Discussion started by: Venkatesan
3 Replies

9. Shell Programming and Scripting

How to delete some of the files in the directory, if the directory size limits the specified size

To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies

10. Shell Programming and Scripting

Bash script deleting my files, and editing files in subdirectories question

#!/bin/bash # name=$1 type=$2 number=1 for file in ./** do if then filenumber=00$number elif then filenumber=0$number fi tempname="$name""$filenumber"."$type" if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies
DwtScrollBarSetSlider(3Dwt)											       DwtScrollBarSetSlider(3Dwt)

Name
       DwtScrollBarSetSlider - Sets or changes the current size/position parameters of the slider in the scroll bar widget.

Syntax
       void DwtScrollBarSetSlider(widget, value, shown, inc,
				  page_inc, notify)
	    Widget widget;
	    int value;
	    int shown;
	    int inc, page_inc;
	    Boolean notify;

Arguments
       widget	 Specifies the scroll bar widget ID.

       value	 Specifies the scroll bar's top thumb (slider) position between DwtNminValue and DwtNmaxValue.	The attribute name associated with
		 this argument is DwtNvalue.

       shown	 Specifies the size of the slider as a value between zero and the absolute value of DwtNmaxValue minus DwtNminValue.  The size	of
		 the  slider  varies,  depending  on how much of the slider scroll area it represents.	This argument sets the DwtNshown attribute
		 associated with DwtScrollBarCreate.

       inc	 Specifies the amount of button increment and decrement.  If this argument is nonzero, the scroll bar widget automatically adjusts
		 the  slider when an increment or decrement action occurs.  This argument sets the DwtNinc attribute associated with DwtScrollBar-
		 Create.

       page_inc  Specifies the amount of page increment and decrement.	If this argument is nonzero, the scroll bar widget  automatically  adjusts
		 the slider when an increment or decrement action occurs.  This argument sets the DwtNpageInc attribute associated with DwtScroll-
		 BarCreate.

       notify	 Specifies a boolean value that, when True, indicates a change in the scroll bar value and that the scroll  bar  widget  automati-
		 cally	activates the DwtNvalueChangedCallback with the recent change.	If False, no change in the scroll bar's value has occurred
		 and DwtNvalueChangedCallback is not activated.

Description
       The DwtScrollBarSetSlider function sets or changes the currently displayed scroll bar widget slider for the application.  The scroll region
       is overlaid with a slider bar that is adjusted in size and position using the main scroll bar or set slider function attributes.  The step-
       ping arrows and the slider are the scroll activator objects providing the user interface syntax ``feel.''

See Also
       DwtScrollBarGetSlider(3Dwt)
       Guide to the XUI Toolkit: C Language Binding
       Guide to the XUI Toolkit Intrinsics: C Language Binding

														       DwtScrollBarSetSlider(3Dwt)
All times are GMT -4. The time now is 11:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy