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

Резултати

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

Пребарај: #icts

当前筛选 #icts清除筛选
Russian Mission to ASEAN

@aseanrussia · Post #1033 · 24.05.2024 г., 13:32

🗓 On May 23-24, Moscow hosted the 3rd ASEAN Regional Forum (#ARF) Workshop on Countering the Use of ICTs for Criminal Purposes, co-chaired by Russia 🇷🇺, Thailand 🇹🇭 and China 🇨🇳. 🔹️The agenda of the workshop covered such issues as criminalization and crime prevention, international cooperation on countering the use of #ICTs for criminal, terrorist and extremist purposes, as well as international legal aspects of countering the use of ICTs for criminal purposes and the practice of national and cross-border investigations. 🔹️The participants shared their approaches to the topical issues related to countering the use of ICTs for criminal purposes. The discussion highlighted the need to enhance practical cooperation in this field and to early elaborate under the UN auspices the comprehensive international convention on countering the use of ICTs for criminal purposes.

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #492 · 21.06.2023 г., 11:15

🗓 On June 21, Russia 🇷🇺 and Cambodia 🇰🇭 co-chaired 2nd ASEAN Regional Forum (#ARF) Workshop on Terminology in the Field of Security of and in the Use of ICTs in the Context of Confidence Building. More than 17 ARF Members took part in the meeting. 🔹️Representatives of specialized government agencies and academia discussed topical issues related to using specific terminology, shared their national experience and approaches in developing terminology in the field of security of and in the use of #ICTs. The participants also touched upon terminological aspects in the context of the work on universal #UN convention on countering the use of ICTs for criminal purposes. #ARF#ICT