• We did not send an email asking for donations - please read this post.

bash translation

Joined
May 12, 2022
Messages
44
Reaction score
14
Credits
644
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
7,783
Reaction score
6,608
Credits
28,627
Moving this to Command Line, where scripting inquiries are handled.

Wizard
 

CrazedNerd

Well-Known Member
Joined
Mar 31, 2021
Messages
774
Reaction score
305
Credits
6,606
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

Active Member
Joined
Apr 15, 2022
Messages
242
Reaction score
140
Credits
2,216
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

Members online


Top