bash translation

Joined
May 12, 2022
Messages
50
Reaction score
16
Credits
733
Greetings. . I need to convert a normal bash file, which in this case it's a "dockerfile" or docker build file from Arch to Debian. Is there any lazy script hanging around on github that fellow users are aware of ? Any app that converts these commands from a distro-specific to another ?
(there r tools to for example run .rpm on deb or .deb on fedora I'm not looking for that. I just need to convert some scripts.)
 


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
8,348
Reaction score
7,252
Credits
33,130
Moving this to Command Line, where scripting inquiries are handled.

Wizard
 

CrazedNerd

Well-Known Member
Joined
Mar 31, 2021
Messages
1,144
Reaction score
523
Credits
9,864
in terms of changing specific text in the script, this works pretty easily:

Code:
sed 's/<old-text>/<new-text>/g' <file>

use that to see if the text is being changed the way you want it to, then put the "-i" option after "sed" in order to change the file instead of send the text to your output. If you want to go back on your changes, just run the command again with the old and new text reversed. However, you are not being specific at all in terms of what you want to change.
 

osprey

Well-Known Member
Joined
Apr 15, 2022
Messages
541
Reaction score
450
Credits
4,997
Hello pedro ... this may be helpful:
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Staff online

Members online


Top