Why can't we use $$# to get the last argument passed to a shell script?

Subscribers:
4,140
Published on ● Video Link: https://www.youtube.com/watch?v=F_C7GzOsCqs



Duration: 2:19
0 views
0


Why can't we use $$# to get the last argument passed to a shell script?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!

(stackoverflow.com/users/6999649/ratbiscuit225)ratbiscuit225
(stackoverflow.com/users/9072753/kamilcuk)KamilCuk
A special thanks goes out to the (https://stackoverflow.com/questions/77774284/why-cant-we-use-to-get-the-last-argument-passed-to-a-shell-script)Stackexchange community

I wish you all a wonderful day! Stay safe :)

bash linux shell




Other Videos By Peter Schneider


2024-01-09Security: ThreatFox alert on Cloudflare IP
2024-01-09Dba: What are system_seeks in sys.dm_db_index_usage_stats?
2024-01-09Best way to execute a statement in every if-else case
2024-01-09why does "int" come before "input"? I would like to understand the logic of this code closed
2024-01-09Codereview: Number Guessing Game in C++
2024-01-09NFS mapping a disabled account
2024-01-09Tex: Weird error in custom package instead of the error I tried to throw?
2024-01-09Unix: Installing Qt 6 on CentOS 7
2024-01-09Fill N/A with previous day data
2024-01-09Rust equivalent of C++ namespace?
2024-01-09Why can't we use $$# to get the last argument passed to a shell script?
2024-01-09Feature flag __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ is not explicitly defined. Where do I define...
2024-01-08regex: matching an entire line with an exact number of repeating tokens
2024-01-08Apache LogFormat: what does %f mean?
2024-01-08How to export local service to server with a public domain?
2024-01-08Retrocomputing: Why didn't the CD come with a caddy by default?
2024-01-08Codereview: (C++) Template code for adding tagging types to add additional context
2024-01-08Mathematica: Wolfram Alpha and Wolfram Engine produce different Laplace transforms
2024-01-08Security: What does a "?" mean in Common Product Enumeration (CPE)?
2024-01-08Unix: Why do Browsers crash on my machine with Nvidia Drivers?
2024-01-08Codereview: Reading a date from the start of a text webpage from github to determine if the progr...



Tags:
bash
linux
shell