vim global find / replace
:%s/search-pat/replace-val/g
vim global find / replace
:%s/search-pat/replace-val/g
Мудрая Савишна
поиск файла по имени
find ~/ -name 'myfile_*.csv'
Мудрая Савишна
python -m pdb
...
sys.path.append(<path to module>)
b(reak) [[filename:]lineno
Show all breakpoints: b
Clear breakpoint: cl {num}
Show stack trace: w
Fabricati Diem PVNC
Повышайте свой интеллект и вы станете монстр (С) Островский
В скрине можно сделать так:
Ctrl-a :
resize -10
Эта команда сузит каррентовую панель на 10 строк
Fabricati Diem PVNC
Повышайте свой интеллект и вы станете монстр (С) Островский
в баше можно сделать так ИФ оператор:
Code:a='BLIN' b='YOMMA' if [[$a='BLIN']] then echo $a $b '!' fi
Мудрая Савишна
дэбильные отличиа баша от корна
local variable in bash: \local BWA
BWA=YOMMA
local variable in korn: typeset BWA="YOMMA"
Мудрая Савишна
bash and ksh if operators can use single and square brackets.
there is a big difference between single and square brackets.
square brackets work only in bash and ksh, and is NOT posix compatible (e.g. its a bash/ksh extension).
square brackets differ from single brackets in the way expansion of variables works.
search for more details on a freakin internet, specifically stack overflow has a bunch of highly confused people bullshitting about it.
Мудрая Савишна
Хорошая тема!
Виртуальный шыбанг:
#!var python
Мудрая Савишна
There are currently 2 users browsing this thread. (0 members and 2 guests)
Terms of Service | Privacy Policy |