02-16-2009
try placing a back slash before it.
ie: \*
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to figure out how to build a small shell script that will find old .shtml files in every /tgp/ directory on the server and delete them if they are older than 10 days...
The structure of the paths are like this:
/home/domains/www.domain2.com/tgp/
/home/domains/www.domain3.com/tgp/... (1 Reply)
Discussion started by: Neko
1 Replies
2. Shell Programming and Scripting
I'm using Imagemagick to create thumbnails for a large directory tree. The only thing I can't see is how to get it to write the thumbnails to a "thumbs" subdirectory!
Either of these two commands from the Imagemagick site does most of the job:
find -name '*.jpg' | xargs -n1 sh -c 'convert $0... (5 Replies)
Discussion started by: quixote
5 Replies
3. AIX
Hi,
On AIX 5200-07-00 I have a find command as following to delete files from a certain location that are more than 7 days old. I am being told that I cannot use -exec option to delete files from these directories.
Having said that I am more curious to know how this can be done.
an sample... (3 Replies)
Discussion started by: jerardfjay
3 Replies
4. UNIX for Dummies Questions & Answers
I am trying to delete files older than 60 days from a folder:
find /myfolder/*.dat -mtime +60 -exec rm {} \;
ERROR - argument list too long: find
I can't just give the folder name, as there are some files that I don't want to delete. So i need to give with the pattern (*.dat). I can... (3 Replies)
Discussion started by: risshanth
3 Replies
5. Shell Programming and Scripting
hi,
i've been trying to figure this weird error but I cannot seem to know why. I am using below find command:
find . \( ! -name . -prune \) -type f -mtime +365 -print
The above code returns no file because no files are really more then 365 days old. However, when I use xargs, its... (9 Replies)
Discussion started by: The One
9 Replies
6. Shell Programming and Scripting
Guys i want to run a command to list all directories that havn't been modified in over 548 days ( 1.5 yrs ).
Id like to run a script to first print what the command finds ( so i get a list of the files pre move ... i have a script set for this :
find /Path/Of\ Target/Directory/ -type d -mtime... (4 Replies)
Discussion started by: modulartention
4 Replies
7. UNIX for Dummies Questions & Answers
How can I recursively find all files in a directory and print out the file and first line number of any text blocks that match the below cases?
This would seem to involve find, xargs, *grep, regex, etc.
In summary, I want to find so-called empty "try-catch blocks" that do not contain code... (0 Replies)
Discussion started by: lifechamp
0 Replies
8. Shell Programming and Scripting
Hello All,
I have to write a shell logic inside my ANT Script , the data from my ANT is in the string like
string a = "test1.props,test2.props,*,test3.props,?,test4,props"
how do i remove this wild card characters from my string a and assign them to an other string , like i only want to... (9 Replies)
Discussion started by: raokl
9 Replies
9. Shell Programming and Scripting
Hello,
I have some data that looks like the following,
> <SALTDATA> (OVS0199262)
HCl
> <IDNUMBER> (OVS0199262)
OVS0199262
> <SUPPLIER> (OVS0199262)
TimTec
> <EMAIL> (OVS0199262)
info@timtec.net
> <WEBSITE> (OVS0199262)
http://www.timtec.net
I need to remove the data in... (3 Replies)
Discussion started by: LMHmedchem
3 Replies
10. UNIX for Beginners Questions & Answers
HI there,
I am trying to find and replace with wildcard with
data
chr1 69511 69511 A G 1/1:0,34:791,78,0:78:34 0/1:55,60:1130,0,1513:99:116 1/1:0,28:630,63,0:63:28 0/1:0,34:626,57,0:57:34
To this
chr1 69511 69511 A G homo hetero homo hetero
Where I find and replace 0/1 with... (3 Replies)
Discussion started by: daashti
3 Replies
TERMCAP(3X) TERMCAP(3X)
NAME
tgetent, tgetnum, tgetflag, tgetstr, tgoto, tputs - terminal independent operation routines
SYNOPSIS
char PC;
char *BC;
char *UP;
short ospeed;
tgetent(bp, name)
char *bp, *name;
tgetnum(id)
char *id;
tgetflag(id)
char *id;
char *
tgetstr(id, area)
char *id, **area;
char *
tgoto(cm, destcol, destline)
char *cm;
tputs(cp, affcnt, outc)
register char *cp;
int affcnt;
int (*outc)();
DESCRIPTION
These functions extract and use capabilities from the terminal capability data base termcap(5). These are low level routines; see
curses(3X) for a higher level package.
Tgetent extracts the entry for terminal name into the buffer at bp. Bp should be a character buffer of size 1024 and must be retained
through all subsequent calls to tgetnum, tgetflag, and tgetstr. Tgetent returns -1 if it cannot open the termcap file, 0 if the terminal
name given does not have an entry, and 1 if all goes well. It will look in the environment for a TERMCAP variable. If found, and the
value does not begin with a slash, and the terminal type name is the same as the environment string TERM, the TERMCAP string is used
instead of reading the termcap file. If it does begin with a slash, the string is used as a path name rather than /etc/termcap. This can
speed up entry into programs that call tgetent, as well as to help debug new terminal descriptions or to make one for your terminal if you
can't write the file /etc/termcap.
Tgetnum gets the numeric value of capability id, returning -1 if is not given for the terminal. Tgetflag returns 1 if the specified capa-
bility is present in the terminal's entry, 0 if it is not. Tgetstr returns the string value of the capability id, places it in the buffer
at area, and advances the area pointer. It decodes the abbreviations for this field described in termcap(5), except for cursor addressing
and padding information. Tgetstr returns NULL if the capability was not found.
Tgoto returns a cursor addressing string decoded from cm to go to column destcol in line destline. It uses the external variables UP (from
the up capability) and BC (if bc is given rather than bs) if necessary to avoid placing
, ^D or ^@ in the returned string. (Programs
which call tgoto should be sure to turn off the XTABS bit(s), since tgoto may now output a tab. Note that programs using termcap should in
general turn off XTABS anyway since some terminals use control I for other functions, such as nondestructive space.) If a % sequence is
given which is not understood, then tgoto returns "OOPS".
Tputs decodes the leading padding information of the string cp; affcnt gives the number of lines affected by the operation, or 1 if this is
not applicable, outc is a routine which is called with each character in turn. The external variable ospeed should contain the output
speed of the terminal as encoded by stty(3). The external variable PC should contain a pad character to be used (from the pc capability)
if a null (^@) is inappropriate.
FILES
/usr/lib/libtermcap.a -ltermcap library
/etc/termcap data base
SEE ALSO
ex(1), curses(3X), termcap(5)
AUTHOR
William Joy
4th Berkeley Distribution May 15, 1985 TERMCAP(3X)