10-30-2008
do you have command called tac installed??
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
How can I use ls command to Delete all files with zero length in a given path using ls command (I guess awk is required!)?
Thanks. (6 Replies)
Discussion started by: GNMIKE
6 Replies
2. Shell Programming and Scripting
Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same.
Thanks in advance.
Regards
Jatin Jain (10 Replies)
Discussion started by: jatin.jain
10 Replies
3. Shell Programming and Scripting
Hello,
Can anyone pls. provide me with the command for deleting files older then 15 days with a restriction to keep at least 5 files in a directory even if they are older then 15 days.
Any help will be highly appreciated.
Thanks,
Pulkit (4 Replies)
Discussion started by: pulkit
4 Replies
4. 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
5. Shell Programming and Scripting
Hello Friends,
Im trying to delete empty files in subdirectories with a command. I can find them checking only one directory in each step and then show them with my command like below moreover i could not add removing part:
ls -l */* | awk '{if ($5==0) printf "%3s %2d %s... (5 Replies)
Discussion started by: EAGL€
5 Replies
6. Shell Programming and Scripting
what is the find to command to find the files created last 30 days (5 Replies)
Discussion started by: rajkumar_g
5 Replies
7. Red Hat
i want to remove *.req files from directory
/opt/FFCL8001/oracle/inst/apps/FFCL8001_lhrho/logs/appl/conc/log
i executed command find . -name '*.req' -mtime +2 -exec rm {} \;
but it is running since hours and free space in /opt is same as old 7.4 GB .
why it is not removing files ? (5 Replies)
Discussion started by: rehantayyab82
5 Replies
8. UNIX for Dummies Questions & Answers
Hello out there,
Our system has a pdf generator that creates pdf files. We dont need them pas 120 days.
So I have this command in my crontab. I currently set it to "0" for testing. But normally have it set to -mtime 120 to remove files out of the folders from PDF out to several other potential... (7 Replies)
Discussion started by: vsekvsek
7 Replies
9. Shell Programming and Scripting
Hi,
I have a script similar to this
#!/bin/ksh
cd /orcl/bir/eod_badfiles
find ./ -type f -name "*.csv" -mtime +6 -exec rm -f {} \;
find ./ -type f -name "*.bad" -mtime +6 -exec rm -f {} \;
cd /orcl/bir
find ./ -type f -name "*.log" -mtime +6 -exec rm -f {} \;
This was working fine in one... (5 Replies)
Discussion started by: Gangadhar Reddy
5 Replies
10. Shell Programming and Scripting
I need to find a word '% Retail by State' in the folder /usr/sas/reports/RetailSalesTaxallocation.
When I tried like below,
-bash-4.1$ cd /usr/sas/reports/RetailSalesTaxallocation
-bash-4.1$ find ./ -name % Retail by State
find: paths must precede expression: Retail
Usage: find ... (10 Replies)
Discussion started by: Ram Kumar_BE
10 Replies
LEARN ABOUT HPUX
xuninstallcolormap
XUninstallColormap() XUninstallColormap()
Name
XUninstallColormap - uninstall a colormap; install default if not already installed.
Synopsis
XUninstallColormap(display, colormap)
Display *display;
Colormap colormap;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
colormap Specifies the colormap to be uninstalled.
Description
If colormap is an installed map for its screen, it is uninstalled. If the screen's default colormap is not installed, it is installed.
If colormap is an installed map, a ColormapNotify event is generated on every window having this colormap as an attribute. If a colormap
is installed as a result of the uninstall, a ColormapNotify event is generated on every window having that colormap as an attribute.
At any time, there is a subset of the installed colormaps, viewed as an ordered list, called the required list. The length of the required
list is at most the min_maps specified for each screen in the Display structure. When a colormap is installed with XInstallColormap() it
is added to the head of the required list and the last colormap in the list is removed if necessary to keep the length of the list at
min_maps. When a colormap is uninstalled with XUninstallColormap() and it is in the required list, it is removed from the list. No other
actions by the server or the client change the required list. It is important to realize that on all but high-performance workstations,
min_maps is likely to be one.
For more information on installing and uninstalling colormaps, see Volume One, Chapter 7, Color.
Errors
BadColor Invalid colormap.
See Also
XDefaultColormap(), XDisplayCells(), XCopyColormapAndFree(), XCreateColormap(), XFreeColormap(), XGetStandardColormap(), XInstallCol-
ormap(), XListInstalledColormaps(), XSetStandardColormap(), XSetWindowColormap().
Xlib - Colormaps XUninstallColormap()