TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #169 · 21 окт.

А знаете ли вы, что в Bash есть особая переменная "$_" ? Из описания можно узнать, что в переменную "$_" помещается последний аргумент последней команды. Что-то знакомое? Конечно, в Python есть примерно тоже самое. Мы знаем, что дата первого релиза Bash (8 июня 1989) несколько раньше чем первый релиз Python (20 февраля 1991). Если учесть, что по задумке автора Python это агрегация самых успешных практик отовсюду, можно ли сказать что именно эта фишка к нему пришла из Bash? Ни подтверждения ни опровержения я пока не нашел. Давайте просто считать это совпадением 😉 А как это может быть полезно в Bash? Приведу простой пример, который оценят те, кто часто работает в терминале. Допустим, нам надо создать директорию и зайти в неё. Что обычно делаем? :~$ mkdir foldername :~$ cd foldername :~/foldername$ Как это сделать в одну команду? :~$ mkdir foldername && cd foldername :~/foldername$ Уже лучше, но хочется короче, без повторов. Вот тут и пригодится наша переменная. Напомню, что в неё сохраняется последний аргумент предыдущей команды. :~$ mkdir foldername && cd $_ :~/foldername$ _________________ PS. Символы "&&"" разделяют команды и означают, что требуется выполнить вторую команду только если первая завершилась успешно. #linux#tricks

Резултати

Пронајдени 1 слични објави

Пребарај: #dotnetfoundation

当前筛选 #dotnetfoundation清除筛选
MDC Uzbekistan

@mdcuzbekistan · Post #901 · 25.10.2024 г., 09:33

JetBrains has officially joined the .NET Foundation as a sponsor JetBrains, a leading name in the software development industry, has officially joined the .NET Foundation as a sponsor. For over 20 years, JetBrains has been at the forefront of creating innovative tools for .NET developers. Their commitment to supporting developers and fostering a thriving ecosystem is truly commendable. This partnership highlights the importance of a vibrant and active developer community. With JetBrains providing complimentary licenses for open-source contributors and launching the OSS Power-Ups initiative, .NET developers now have even greater opportunities to enhance their projects and build a stronger, more connected open-source future. We at MDC Uzbekistan are excited to follow this new chapter and look forward to seeing the incredible innovations that will emerge from this collaboration. Kudos to both JetBrains and the .NET Foundation for paving the way for an even brighter future for the .NET community! Don’t forget to follow JetBrains and .NET Foundation for more updates on this remarkable journey! #DotNETFoundation#JetBrains#Partnership#Innovation#SoftwareDevelopment#OpenSource#Community @mdcuzbekistan