SSH Command Variables

vmaster

New Member
I'm sorry if I'm not using the correct terminology here! I've been learning only what I need to to do the uploading stuff I need.


I've been using mkisofs on my CentOS 5.7 to pack some DVD Video_TS (or whatever) image files into .isos.

I'm trying to generate a command I can use to do this without having to copy-and-paste things for each command.

So the command I'm using is:
Code: mkisofs -dvd-video -V 'File Name' -o /root/'Folder Name.iso' /root/'Folder Name'I'm trying to figure out how I could enter in a variable for the "File Name" part...can anyone help? create bash.sh

Code: #!/bin/bashfind . -type 'f' | while read VIDEO; do echo "Now processing ${VIDEO} ..." mkisofs -dvd-video -V '${VIDEO}' -o /root/'Folder Name.iso' /root/'Folder Name'donechmod it to 644
./bash.sh

this will process all files in your current directory into that command. assuming that all files are videos.

if you can provide more info it may make things easier .

Highest Regards
Mohammed H
 
Top