Sponsored Content
Full Discussion: differentiate $@ and $*
Top Forums UNIX for Dummies Questions & Answers differentiate $@ and $* Post 302600754 by pandeesh on Wednesday 22nd of February 2012 03:18:33 AM
Old 02-22-2012
Thanks. It seems there is a difference only if the arguments are single quoted .
In my case I have double quoted arguments and hence no difference.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to Differentiate Between Files and Folders?

Hi All, I'm a rookie using HPUX and I know this is going to sound like a bonehead question, but when I list the contents of a directory, how can I determine which objects are files and which are folders? I'm using the ll and ls commands to lists the contents. So far I've been determining the... (6 Replies)
Discussion started by: dgower2
6 Replies

2. UNIX for Dummies Questions & Answers

differentiate between a file and a device

sorry probably a beginner question but i was just wondering how unix does this as device are treated as files? (6 Replies)
Discussion started by: keith_hampson
6 Replies

3. UNIX for Dummies Questions & Answers

Differentiate Soft and Hard Link

Hi, Can somebody please help me in knowing the difference between soft (Symbolic) link and hard link. Please explain it in as simple terms as possible. Kris (4 Replies)
Discussion started by: balu_solaris
4 Replies

4. Shell Programming and Scripting

How to differentiate two tar files

Hi All, I am new to this unix stuff.I just have one doubt:suppose i have two tar files and sometimes it happens that when we just check these files from outside these two tar files look same "Eg: ls -lrt drw-r--r-- 1 oasis logadmin 37067 Apr 3 05:48 file1.tar drw-r--r-- 1 oasis ... (7 Replies)
Discussion started by: siri_14
7 Replies

5. Shell Programming and Scripting

Differentiate the scripts

Can anyone decribe what would be differnce between the following scripts: #nohup /bin/sh ./job 2>& 1& # ./job > nohup.out & Thanks Alvida (1 Reply)
Discussion started by: alvida
1 Replies

6. Shell Programming and Scripting

differentiate between spaces and new-lines

Hi - Here's the problem I'm encountering......My script logs in to remote FTP through password-less "sftp" and must get the list of sub-directories under a given path. I know many of the unix commands don't work in "sftp" login so I cannot know which one is a "directory" and which one is a... (2 Replies)
Discussion started by: dips_ag
2 Replies

7. Shell Programming and Scripting

How to differentiate between two machine in Unix?

how to differentiate between two machine in Unix,whether it is logged in from local machine or from Server( both may be 2 or more). Please help. (5 Replies)
Discussion started by: kpatel97
5 Replies

8. Shell Programming and Scripting

how to differentiate file and directory name using ls command

how to differentiate file and directory name using ls command. l (3 Replies)
Discussion started by: jhon123
3 Replies

9. Shell Programming and Scripting

Compare and Differentiate Multiple Files

Im using code below comparing and getting the diff of two files. But what about multiple files? can you help me guys diff -u file1 file2|sed -n '/^---/!{/^-/s/-//p}' diff -ui file1 file2| sed -n '/^++/!{/^+/s/+//p}' Example File1: aaa bbb ccc ddd File2: bbb eee (5 Replies)
Discussion started by: kenshinhimura
5 Replies

10. Shell Programming and Scripting

Differentiate 2 files name

Hello All, I have 2 Type of files. 1. MYTEST001_RKP_DORALDO_20150402120000.zip 2. CMP001_STD001_MOGANO_RPSL_20150409_C.zip I can receive these Two type of file at one location. If i receive second type of file CMP001_STD001_MOGANO_RPSL_20150409_C.zip I have to process without... (9 Replies)
Discussion started by: yadavricky
9 Replies
sin(3m) 																   sin(3m)

Name
       sin, cos, tan, asin, acos, atan, atan2 - trigonometric functions and their inverses

Syntax
       #include <math.h>

       double sin(x)
       double x;

       float fsin(x)
       float x;

       double cos(x)
       double x;

       float fcos(x)
       float x;

       double tan(x)
       double x;

       float ftan(x)
       float x;

       double asin(x)
       double x;

       float fasin(x)
       float x;

       double acos(x)
       double x;

       float facos(x)
       float x;

       double atan(x)
       double x;

       float fatan(x)
       float x;

       double atan2(y,x)
       double y,x;

       float fatan2(y,x)
       float y,x;

Description
       The and functions return trigonometric functions of radian arguments x for double data types.

       The and functions return trigonometric functions for float data types.

       The and functions return the arc sine in the range -pi/2 to pi/2 for double and float data types, respectively.

       The and functions return the arc cosine in the range 0 to pi for double and float data types, respectively.

       The and functions return the arc tangent in the range -pi/2 to pi/2 for double and float data types, respectively.

       The  and  functions  return  the  arc tangent of y/x in the range -pi to using the signs of both arguments to determine the quadrant of the
       return value for double and float data types, respectively.

   Error (due to roundoff)
       When P stands for the number stored in the computer in place of pi = 3.14159 26535 89793 23846 26433 ... .  and "trig" stands  for  one	of
       "sin",  "cos"  or  "tan",  then	the  expression  "trig(x)" in a program actually produces an approximation to trig(x*pi/P), and "atrig(x)"
       approximates (P/pi)*atrig(x).  The approximations are close.

       P differs from pi by a fraction of an ulp; the difference is apparent only if the argument x is huge,  and  even  then  the  difference	is
       likely  to  be swamped by the uncertainty in x.	Every trigonometric identity that does not involve pi explicitly is satisfied equally well
       regardless of whether P = pi.  For example, sin(x)**2+cos(x)**2 = 1 and sin(2x) = 2sin(x)cos(x) to within a few ulps regardless of how  big
       x is.  Therefore, the difference between P and pi is unlikely to effect scientific and engineering computations.

Return Values
       All the double functions return NaN if NaN is passed in.

       If |x| > 1 then (x) and (x) will return the default quiet NaN.

       The function defines (0,0) = NaN.

See Also
       hypot(3m), math(3m), sqrt(3m)

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