Похожие чаты

How to write just a char or string with dd?

10 ответов

10 просмотров

write it to where?

the same way you'd write anything else?

Пользователь-61654 Автор вопроса
Kiyo 💜
write it to where?

python 2 is removed from my distro and i used 2to3 python module to convert some scripts but it is lame about first line of them #!... so i need to just write '3' at a fixed offset of some files.

Пользователь-61654 Автор вопроса
Kiyo 💜
sed is better for that

just tried it, it can't write to an offset(? or i don't know how) tried to change first line with this py="#!/usr/bin/env python" sed -i "1s/.*/$py/" file but i see this error "unknown option to s" don't know what is wrong.

Пользователь-61654 Автор вопроса
Kiyo 💜
remove the 1 before s

that is the line number

Пользователь 61654
just tried it, it can't write to an offset(? or i ...

post the first line of the file as it is now, and how you'd want it to be

Пользователь-61654 Автор вопроса
Kiyo 💜
post the first line of the file as it is now, and ...

first line is #!/usr/bin/env python2 i want #!/usr/bin/env python or #!/usr/bin/env python3

Похожие вопросы

Обсуждают сегодня

Is Kadena onto something special? No one really knows. Good luck!
Bright Uncle Stephen EqualBet
40
А кто-то пробовал, уезжая из Эстонии получить э-рез и продолжить вести предпринимательскую деятельность внутри Эстонии, используя свой OÜ?
Lalalashechki Lalala
62
Гайз, кто-нибудь пробовал запустить probe-rs под камень, которого нет в probe-rs? Мб есть какой-нибудь пример у кого... Через target-gen попробовал сгенерировать chip-descript...
Максим Смирнов
1
Всем привет. Ребят подскажите пожалуйста. Вопрос по дизасемблировани. Начну с начала. У меня есть скомпилированная программа на ГО (я разработчик) - в ней есть защита лицензии...
Zloy
11
isn't utxo commitements pretty close though if someone wanted to get it over the finish line? my understanding is that most of the ground work was already down by verde
Luke High - Rabbi Of Bcash High Rabbi Of Bcash
23
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
@MrMiscipitlick А можешь макрос написать, который будет вычислять смещение относительно переданных меток? Просто .label1-.label2, и вернуть значение.
КТ315
35
пришел с работы, там тоже гента, ставил одинаково, но дома kernel-dist-bin обновляеться без проблем, на работе ядро при установки не попадает в папку /boot .Приходится вручную...
РDV
10
is the buyback program live and at what prices are the purchases fixed? excuse me for the bland PA question, sophisticated defi people keke
Imnothere
20
А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
Карта сайта