#!/bin/bash
# Klaus Thoden, 2011-02-22

# New version, adapted to our real needs.
# Prerequisites: a directory named with the correct WO number and textfiles after the fashion
# author_year_ID.txt
# We get files from Formax in the style author_year.txt, and we manually have to add the id, which is cumbersome.

# This makes the directories
for i in *.txt; do mkdir -pv `ls $i|sed s/\.txt//g`/raw; done
# This moves the text files into their respective directories and creates the Unix LF
for i in *.txt; do tr -d '\r' < $i > `ls $i|sed s/\.txt//g`/raw/`ls $i`; done





