bash translation

Joined
May 12, 2022
Messages
49
Reaction score
16
Credits
723
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,124
Reaction score
7,000
Credits
31,303
Moving this to Command Line, where scripting inquiries are handled.

Wizard
 

CrazedNerd

Well-Known Member
Joined
Mar 31, 2021
Messages
941
Reaction score
416
Credits
8,142
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
414
Reaction score
333
Credits
3,819
Hello pedro ... this may be helpful:
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation


Top