Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Whats is the user of $ and # in UNIX ??? Post 302133105 by namishtiwari on Wednesday 22nd of August 2007 03:30:56 AM
Old 08-22-2007
MySQL

Quote:
Originally Posted by Paynemax
Whats is the user of $ and # in UNIX ???
The uses are--

1.. :$ Position cursor at end of file

2.. $ matches end of line
3.. $ is used to retrieve the value of a variable.
4.. $$ tels you the PID of the current shell.

1.. # is used to comment a line in shells cript.

There can be many uses.They are a few.

Thanks
Namish
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Whats the dif between AIX and UNIX?

Hi, sorry to ask and exceedingly dumb question, but as far as UNIX goes I really am the newbiest of the newbies. I've been posed a question by one of my bosses, I'll break it down. He says "We have a big AIX box and I'd like to use Notes to handle the SMTP side of things." I say, "Okay I... (2 Replies)
Discussion started by: SlyClone2k
2 Replies

2. Shell Programming and Scripting

Whats the Vhost Command for the Unix Shell

anyone know? would be greatly thankful. (4 Replies)
Discussion started by: shellnewbie
4 Replies

3. UNIX for Dummies Questions & Answers

Unix? Whats that

Hi, I am curently running Windows. Don't laugh. Unix is a OS right? I am thinking about getting it but am not sure about geting Unix or Linux. I could use all the help I can get, Thanks! (6 Replies)
Discussion started by: DamienVryce
6 Replies

4. Programming

whats the command in unix

what is the command to print the text in a specifed location eg i have text ("i am here"); i have to print it on location 20,20 wat is the command and which header file it uses i am currentlr working in solaris 5.8 using unix (1 Reply)
Discussion started by: ramneek
1 Replies

5. UNIX for Dummies Questions & Answers

Linux OR Unix Whats The Difference!

What is the difference bettween linux and unix? Sorry but I am really new to this! :confused: Also are they BOTH free :-D (1 Reply)
Discussion started by: jamesthemagicia
1 Replies

6. UNIX for Dummies Questions & Answers

Whats the latest verson of Unix?

Also can unix be downloaded? Thank you, Nic (2 Replies)
Discussion started by: nicjr3
2 Replies

7. UNIX for Dummies Questions & Answers

whats setenv in unix

Hi whats the setenv command in unix..?? i have set the oracle_home path as aa.ii.1 in kron_settings and mentioned setenv oracle_path as aa.ii.2 in user settings. Does this make any changes made to the path name of the oracle_home when i run a scripts in unix..???:( (1 Reply)
Discussion started by: abhi_123
1 Replies

8. UNIX for Advanced & Expert Users

Whats the fastest UNIX compression utility you know of.

Hi everyone, Just interested to know everyones opinions on the fastest unix compression utility with okejish compression (doesnt have to have awsome compression). I know of gzip bzip2 (sucks lol) and a couple of others but what is a great one for compression large amounts of data that wont eat... (8 Replies)
Discussion started by: aleks001
8 Replies

9. UNIX for Dummies Questions & Answers

whats happen when we create new user

hi frndz I wanna knw exatly what happen when we create new user... which directories are created ?? which files are modified ?? thanx.... (2 Replies)
Discussion started by: luckypower
2 Replies

10. Programming

Whats the most in-demand programming language UNIX

I am interested in learning Programming Language to complement my UNIX. What language should I concentrate on to enhance my UNIX. What companies are seeking with UNIX. What languages are used with UNIX as for as there application. Are there any one here from DC (6 Replies)
Discussion started by: zbest1966
6 Replies
atuser(3)						       AtFS Toolkit Library							 atuser(3)

NAME
atUserValid, atScanUser, atUserName, atUserUid - user handling SYNOPSIS
#include <atfs.h> #include <atfstk.h> void atScanUser (char *userName; Af_user *resultUser); char* atUserName (Af_user *user); Uid_t atUserUid (Af_user *user); int atUserValid (Af_user *user); DESCRIPTION
atScanUser scans the given string userName and tries to derive an AtFS user identification (resultUser) from it. It does not verify the existence of a corresponding UNIX (/etc/passwd) user entry. Use atUserUid to test that. atScanUser understands the following formats: user When the string does not contain an at sign, it is considered to be a plain user name from the current host and domain. user@host In the case that the part after the at sign doe not contain a period, it is assumed to be a hostname. Domain is the current domain. user@host.domain This format can only be recognized, when the given domain is equal to the current domain, and the hostname remains as rest between the at sign and domain name. user@domain An user identification string with a domain name different to the local domain is treated as user@domain, although this might be wrong. atUserName returns a string of the form user@domain generated from the given user structure. If no domain name is given in the structure, it returns user@host instead. With no host and no domain name, just user is returned. The result string resides in static memory and will be overwritten on subsequent calls. atUserUid tries to map the given user structure to a UNIX user identification. It returns the uid on success, -1 otherwise. atUserValid checks the given user structure for plausibility. It returns FALSE on fauilure, a non null value on success. AtFStk-1.12 Fri Jun 25 16:39:50 1993 atuser(3)
All times are GMT -4. The time now is 08:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy