12-19-2008
Thanks a lot. It works wonderfully. However, i need to add something to this.
Desired Output:
want to display the output as:
Deleting from the <directory>
<<file1>>
<<file2>>
<<file3>>
;
;
;
<<filen>>
Looking forward...
Thanks in advance,
venkat
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have the following problem:
use shell script:
Two directories have to be searched for files havin the same name.
then delete these files from one of these directories.
the directory names have to be accepted as command line arguments.
what i have done till now is:
1. run a loop... (1 Reply)
Discussion started by: onlyc
1 Replies
2. Shell Programming and Scripting
Hi,
Can anyone provide me with the Code Review Checklist for Shell scripts ??
Thanks in advance. (2 Replies)
Discussion started by: Shivdatta
2 Replies
3. Shell Programming and Scripting
I am trying to create a Korn Shell script to be run every 5-10 minute from a crontab. This script needs to look for log files (transaction_<date>.log). If there are more than 5 such files, it needs to delete all but the most current 5. How often these files are create varies - can be every minute... (2 Replies)
Discussion started by: WmShaw
2 Replies
4. Shell Programming and Scripting
Task:
Short Description: To find the files in a particular directory for the previous day, sort them by date and time and e-mail it across to a particular id.
And the time is divided into eight fields and based on the time the respective field should be updated with the flag 1.
Eight... (7 Replies)
Discussion started by: venkatesht
7 Replies
5. Shell Programming and Scripting
Hi,
I am using the command find /apps/qualdb/gpcn/scripts/cab_outbound/archive -name 'z*' -mtime +28 -exec rm {} \;
in unix command prompt
for deleting the files in my unix system under the specfied folder. It was succesfull.
But when i running this command inside a shell script name... (2 Replies)
Discussion started by: Jayaram.Nambura
2 Replies
6. Shell Programming and Scripting
Hi,
I need someone's help in writing a shell script. Since am very new i am stuck .
I have 2 files in the same dir.
==============================================
FileA
Table1~07/07/2009 00:00:00~4
Table1~07/06/2009 00:00:00~41
Table1~07/08/2009 00:00:00~4
... (8 Replies)
Discussion started by: vijayarajvp
8 Replies
7. Shell Programming and Scripting
Hi.
I need help with a little script that will be used to move some files to their parent directory, delete the directory, rename one file in the parent directory and delete another, then continue to the next.
Here's an example:
/var/media/Music/Genesis/1970 album - Trespass (2008 Box -... (4 Replies)
Discussion started by: aflower
4 Replies
8. Shell Programming and Scripting
Hi guys,
I am new to shell scripting and I need urgent assistance.
I have an xml like :
<AgreementNumberFull>13-WY-84252</AgreementNumberFull>
<AgreementNumberAbbr>WY84252</AgreementNumberAbbr>
<LineOfBusiness>F</LineOfBusiness>
<CompanyCode>0005</CompanyCode>
<UniqDigit/>
<StateCode/>
... (9 Replies)
Discussion started by: puneetkanchi
9 Replies
9. Shell Programming and Scripting
I have 4 files in a directory and want to delete only first 2 files only..
$ ls -ltr
total 640
-rw-r--r-- 1 user other 148779 Oct 12 10:50 file1.xls
-rw-r--r-- 1 user other 148779 Oct 12 10:50 file2.xls
-rw-r--r-- 1 user other 148779 Oct 12 10:50 file3.xls... (4 Replies)
Discussion started by: giridhar276
4 Replies
10. Shell Programming and Scripting
#!/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
LEARN ABOUT SUSE
tk_geometryrequest
Tk_GeometryRequest(3) Tk Library Procedures Tk_GeometryRequest(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tk_GeometryRequest, Tk_SetMinimumRequestSize, Tk_SetInternalBorder, Tk_SetInternalBorderEx - specify desired geometry or internal border
for a window
SYNOPSIS
#include <tk.h>
Tk_GeometryRequest(tkwin, reqWidth, reqHeight)
Tk_SetMinimumRequestSize(tkwin, minWidth, minHeight)
Tk_SetInternalBorder(tkwin, width)
Tk_SetInternalBorderEx(tkwin, left, right, top, bottom)
ARGUMENTS
Tk_Window tkwin (in) Window for which geometry is being requested.
int reqWidth (in) Desired width for tkwin, in pixel units.
int reqHeight (in) Desired height for tkwin, in pixel units.
int minWidth (in) Desired minimum requested width for tkwin, in pixel units.
int minHeight (in) Desired minimum requested height for tkwin, in pixel units.
int width (in) Space to leave for internal border for tkwin, in pixel units.
int left (in) Space to leave for left side of internal border for tkwin, in pixel units.
int right (in) Space to leave for right side of internal border for tkwin, in pixel units.
int top (in) Space to leave for top side of internal border for tkwin, in pixel units.
int bottom (in) Space to leave for bottom side of internal border for tkwin, in pixel units.
_________________________________________________________________
DESCRIPTION
Tk_GeometryRequest is called by widget code to indicate its preference for the dimensions of a particular window. The arguments to
Tk_GeometryRequest are made available to the geometry manager for the window, which then decides on the actual geometry for the window.
Although geometry managers generally try to satisfy requests made to Tk_GeometryRequest, there is no guarantee that this will always be
possible. Widget code should not assume that a geometry request will be satisfied until it receives a ConfigureNotify event indicating
that the geometry change has occurred. Widget code should never call procedures like Tk_ResizeWindow directly. Instead, it should invoke
Tk_GeometryRequest and leave the final geometry decisions to the geometry manager.
If tkwin is a top-level window, then the geometry information will be passed to the window manager using the standard ICCCM protocol.
Tk_SetInternalBorder is called by widget code to indicate that the widget has an internal border. This means that the widget draws a deco-
rative border inside the window instead of using the standard X borders, which are external to the window's area. For example, internal
borders are used to draw 3-D effects. Width specifies the width of the border in pixels. Geometry managers will use this information to
avoid placing any children of tkwin overlapping the outermost width pixels of tkwin's area.
Tk_SetInternalBorderEx works like Tk_SetInternalBorder but lets you specify different widths for different sides of the window.
Tk_SetMinimumRequestSize is called by widget code to indicate that a geometry manager should request at least this size for the widget.
This allows a widget to have some control over its size when a propagating geometry manager is used inside it.
The information specified in calls to Tk_GeometryRequest, Tk_SetMinimumRequestSize, Tk_SetInternalBorder and Tk_SetInternalBorderEx can be
retrieved using the macros Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_MinReqWidth, Tk_InternalBorderLeft, Tk_Internal-
BorderRight, Tk_InternalBorderTop and Tk_InternalBorderBottom. See the Tk_WindowId manual entry for details.
KEYWORDS
geometry, request
Tk 8.4 Tk_GeometryRequest(3)