Hi all,

I need a way of accessing a file and making its contents its name as follows:
the directory
/ly/


has in it files 345.ly, 355.ly etc etc.

I want to make the file name from
from these lines in the file below (and all files in the directory)
e8 g8 |
b4 b8. b16 b8. a16 |
b4 a4 a8 e8 |
---------------------------------------------
so that the name will become: e8g8b4b8.b16b8.a16b4a4a8e8.ly
----------------------------------------------
POne = \notes {
s4 s4  \key e \minor
\time 3/4
\clef violin
e8 g8 |
b4 b8. b16 b8. a16 |
b4 a4 a8 e8 |
a4 a4 g8. e16 |

% Bar 5
g2 e8 g8 |
b4 b4 b8 a8 |
b4 a4 d8 e8 |
d8 c8 b8 a8 g8. fis16 |
e2 e g8 |

I need some way doing this transformation in a bash script or have a bash script that accesses a vim script.

Any ideas??
Thanks
Aaron


================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to