-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revised code to output LEXC files in a specific order.
- Loading branch information
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
#!/bin/sh | ||
|
||
ls root.lexc noun_prefixes.lexc noun_stems.lexc noun_suffixes.lexc verb_prefixes.lexc prevn.lexc verb_stems.lexc verb_suffixes.lexc particles.lexc pronouns.lexc ../dem.lexc | | ||
echo 'root.lexc noun_prefixes.lexc noun_stems.lexc noun_suffixes.lexc verb_prefixes.lexc prevn.lexc verb_stems.lexc verb_suffixes.lexc particles.lexc pronouns.lexc ../dem.lexc' | | ||
|
||
gawk 'BEGIN { printf "!! Blackfoot morphotax\n\n" > "lexicon.lexc"; } | ||
{ | ||
file=$0; | ||
while((getline line < file)!=0) | ||
printf "%s\n", line >> "lexicon.lexc"; | ||
printf "\n\n" >> "lexicon.lexc"; | ||
gawk 'BEGIN { printf "!! Blackfoot morphotax -- aggregate of all LEXC files\n\n" > "lexicon.lexc"; } | ||
{ nf=split($0, files, " "); | ||
for(i=1; i<=nf; i++) | ||
{ | ||
while((getline line < files[i])!=0) | ||
printf "%s\n", line >> "lexicon.lexc"; | ||
printf "\n\n" >> "lexicon.lexc"; | ||
} | ||
}' |