Sponsored Content
Full Discussion: $$ and $#: what do they mean
Top Forums UNIX for Dummies Questions & Answers $$ and $#: what do they mean Post 302547134 by yazu on Sunday 14th of August 2011 08:07:27 AM
Old 08-14-2011
Code:
% echo $$
32558

% ps
  PID TTY          TIME CMD
32558 pts/0    00:00:00 zsh
32642 pts/0    00:00:00 ps

% cat >script
echo $#

% sh script a b c d
4

% sh script xxx 'yyy zzz'
2

This User Gave Thanks to yazu For This Post:
 
All times are GMT -4. The time now is 02:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy