Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by BharathKumarRaju DasaraRaju
at 2024-11-30 06:12:04
Point:200 Replies:6 POST_ID:828849USER_ID:11540
Topic:
Linux;Linux Distributions;Unix Operating Systems
Could anyone give a clear picture between $0 and $_
root@localhost ~]# echo $0
-bash
[root@localhost ~]# echo $_
-bash
[root@localhost ~]# greet
enter nameIllegal variable name.
[root@localhost ~]# echo $_
greet
[root@localhost ~]# echo $0
-bash
[root@localhost ~]#
root@localhost ~]# echo $0
-bash
[root@localhost ~]# echo $_
-bash
[root@localhost ~]# greet
enter nameIllegal variable name.
[root@localhost ~]# echo $_
greet
[root@localhost ~]# echo $0
-bash
[root@localhost ~]#
Expert: duncanb7 replied at 2024-11-30 06:53:45
Thanks for your pt and insoftservice provided a good article for us
Have a nice day
Duncan
Have a nice day
Duncan
Author: BharathKumarRaju DasaraRaju replied at 2024-11-30 06:50:50
Thank you all
Accepted Solution
Expert: insoftservice replied at 2024-11-30 06:41:37
100 points EXCELLENT
Its called bash special parameters .
If you could google it you would get more info.
I can't past the link as its violating EE rules
http://www.gnu.org/software/bash/manual/html_node/Special-Parameters.html
If you could google it you would get more info.
I can't past the link as its violating EE rules
http://www.gnu.org/software/bash/manual/html_node/Special-Parameters.html
Assisted Solution
Expert: duncanb7 replied at 2024-11-30 06:39:56
100 points EXCELLENT
$0 is the first argument, "echo" or script file name or script type depend on your system
$_ is Last argument of the previous command.
Hope it help
DUncan
$_ is Last argument of the previous command.
Hope it help
DUncan
Author: BharathKumarRaju DasaraRaju replied at 2024-11-30 06:25:46
@insoftservice.....yes iam learning.....but i dont get clear difference b/w $_ and $0 could you brief it in a simple way please
Expert: insoftservice replied at 2024-11-30 06:23:17
I hope you are trying to learn about bash and about shell.
If you could google for some nice tutorials would give you more clear idea about the same.
If you could google for some nice tutorials would give you more clear idea about the same.