09-25-2008
Please suggest me if there is any alternative to achieve the above and also please advise if my way of using "find" is correct or there is anything I need to change?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to tar the files I get from the 'find' command result. However I can't make it run successfuly? This is for our archiving process.
Here is my script:
find /mnt/LOGS -mtime -10 -name "TUXLOG.*" -exec tar -cvf /mnt/LOGS/combine.tar {} \;
Im not sure why it is not working or it is... (2 Replies)
Discussion started by: kharen11
2 Replies
2. UNIX for Dummies Questions & Answers
Dear all,
I have to calculate sum of record count of files of the specified directory.
First I tried the following way which prints one or more outputs.
How can I sum of this output?
find /home/work/tmp/1/O/ -type f -print0 | xargs -0 wc -l | grep total
1666288 total
1073908 total
... (4 Replies)
Discussion started by: mr_bold
4 Replies
3. UNIX for Dummies Questions & Answers
Dear all,
I have tried the following 2 lines
xargs -t -i -exec grep -i -w {} file_1 >>test < file_2
cat -s file_2| xargs -t -i -exec grep -i -w {} file_1 >> test
They were meant to search for the contents of file_2 in file_1 and write the respective lines of file_1 into file "test" .... (15 Replies)
Discussion started by: Bruno
15 Replies
4. Shell Programming and Scripting
I have been reading for a few hours trying to educate myself enough to accomplish this task, so please know I have performed some research. Unfortunately, I am not a *NIX scripting expert, or a coder. I come from a network background instead.
SO, here is my desired outcome. I have some Cisco... (5 Replies)
Discussion started by: abbzer0
5 Replies
5. Shell Programming and Scripting
I have a file and need to only select users that have a shell of “/bin/bash” in the line using awk or sed please help (4 Replies)
Discussion started by: boyboy1212
4 Replies
6. UNIX for Dummies Questions & Answers
I have a file called 'test.txt' that contains alphanumeric charecters.
The file contains the word 'SBE' followed by other alphabets many times. For example, the file will contain: SBE334GH and also will have SBE77Y8I.
When i do grep 'SBE*' test.txt - it outputs the entire file.
Can you... (5 Replies)
Discussion started by: DallasT
5 Replies
7. Shell Programming and Scripting
Hi all ,
I'm new to unix
I have a checked project , there exists a file called xxx.config .
now my task is to find all the files in the checked out project which references to this xxx.config file.
how do i use grep or find command . (2 Replies)
Discussion started by: Gangam
2 Replies
8. Shell Programming and Scripting
test.txt is the dynamic file but some of combination are fix
like below are the lines
;wonder_off =
;wonder_off = disabled
wonder_off =
wonder_off = disabled
the test.txt can content them in any order
#cat test.xt
;wonder_off =
;wonder_off = disabled
wonder_off =
wonder_off =... (5 Replies)
Discussion started by: SilvesterJ
5 Replies
9. 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
10. Shell Programming and Scripting
Hi,
I'm trying to use find in kshell (AIX) to find all files with perms of
write for other
AND
any execute bit set.
e.g:
r--r-x-w- would qualify
and rw-rw--wx would qualify
but ---rwxr-xr-x wouldn't qualify
So far, I've been trying something like this:
find . -type f -perm... (4 Replies)
Discussion started by: alanp36
4 Replies
LGAMMA(3M) LGAMMA(3M)
NAME
lgamma - log gamma function
SYNOPSIS
#include <math.h>
double lgamma(x)
double x;
DESCRIPTION
_
Lgamma returns ln|| (x)|.
_
The external integer signgam returns the sign of | (x) .
IDIOSYNCRASIES
_
Do not use the expression signgam*exp(lgamma(x)) to compute g := | (x). Instead use a program like this (in C):
lg = lgamma(x); g = signgam*exp(lg);
_
Only after lgamma has returned can signgam be correct. Note too that | (x) must overflow when x is large enough, underflow when -x is
large enough, and spawn a division by zero when x is a nonpositive integer.
_
Only in the UNIX m_th library for C was the na_e gamma ever attached to ln| . Elsewhere, for instance in IBM's FORTRAN library, the name
GAMMA belongs to | and the name ALGAMA to ln| in single precision; in double the names are DGAMMA and DLGAMA. Why should C be different?
_
Archaeological records suggest that C's gamma originally delivered ln(| (|x|)). Later, the program gamma was changed to cope with negative
arguments x in a more conventional way, but the documentation did _ot reflect that change correctly. The most recent change corrects inac-
curate values when x is almost a negative integer, and lets | (x) be computed without conditional expressions. Programmers should not
assume that lgamma has settled down.
At some time in the future, the name gamma will be rehabilitated and used for the gamma function, just as is done in FORTRAN. The reason
for this is not so much compatibility with FORTRAN as a desire to achieve greater speed for smaller values of |x| and greater accuracy for
larger values.
Meanwhile, programmers who have to use the name gamma in its former sense, for what is now lgamma, have two choices:
1) Use the old math library, libom.
2) Add the following program to your others:
#include <math.h>
double gamma(x)
double x;
{
return (lgamma(x));
}
DIAGNOSTICS
The reserved operand is returned on a VAX for negative integer arguments, errno is set to ERANGE; for very large arguments over/underflows
will occur inside the lgamma routine.
SEE ALSO
math(3M), infnan(3M)
4.3 Berkeley Distribution May 12, 1986 LGAMMA(3M)