How to execute a multiple string command non-interactively?
by slac from LinuxQuestions.org on (#53VW5)
By executing this command...
Code:sed -n '8,24p' isolinux/README.TXT... I get the following multiple-line command:
Code:xorriso -as mkisofs \
-iso-level 3 \
-full-iso9660-filenames \
-R -J -A "Slackware Install" \
-hide-rr-moved \
-v -d -N \
-eltorito-boot isolinux/isolinux.bin \
-eltorito-catalog isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-isohybrid-mbr /usr/share/syslinux/isohdpfx.bin \
-eltorito-alt-boot \
-e isolinux/efiboot.img \
-no-emul-boot -isohybrid-gpt-basdat \
-m 'source' \
-volid "SlackDVD" \
-output /tmp/slackware-dvd.iso \
.Copying and pasting such command in terminal is not a problem, it works just fine but I want to execute this without copy-pasting.
I want to execute the xorriso command after getting it with the sed command. Maybe, that is done using pipes or something like that but I do not know how.


Code:sed -n '8,24p' isolinux/README.TXT... I get the following multiple-line command:
Code:xorriso -as mkisofs \
-iso-level 3 \
-full-iso9660-filenames \
-R -J -A "Slackware Install" \
-hide-rr-moved \
-v -d -N \
-eltorito-boot isolinux/isolinux.bin \
-eltorito-catalog isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-isohybrid-mbr /usr/share/syslinux/isohdpfx.bin \
-eltorito-alt-boot \
-e isolinux/efiboot.img \
-no-emul-boot -isohybrid-gpt-basdat \
-m 'source' \
-volid "SlackDVD" \
-output /tmp/slackware-dvd.iso \
.Copying and pasting such command in terminal is not a problem, it works just fine but I want to execute this without copy-pasting.
I want to execute the xorriso command after getting it with the sed command. Maybe, that is done using pipes or something like that but I do not know how.