Difference between revisions of "Converting Amiga MODs to MP3s"

From Jay's Cafe' Wiki
m
m
Line 3: Line 3:


for a directory:
for a directory:
 
<pre>
while read server_name; do
while read server_name; do
echo "Restarting Server "$server_name
echo "Restarting Server "$server_name
time lxc restart $server_name  
time lxc restart $server_name  
done < /home/jay/temp/running_servers_.dat  
done < /home/jay/temp/running_servers_.dat  
 
</pre>
https://www.cyberciti.biz/faq/bash-loop-over-file/
https://www.cyberciti.biz/faq/bash-loop-over-file/



Revision as of 12:56, 20 August 2020

They play well in VLC. ffmpeg -i <infile> <outfile>.mp3, that's it.

for a directory:

while read server_name; do
	echo "Restarting Server "$server_name
	time lxc restart $server_name 
done < /home/jay/temp/running_servers_.dat 

https://www.cyberciti.biz/faq/bash-loop-over-file/

Sample Shell Script To Loop Through All Files

#!/bin/bash
FILES=/path/to/*
for f in $FILES
do
  echo "Processing $f file..."
  # take action on each file. $f store current file name
  cat $f
done