Advertisement
hakonhagland

Generate xml input files

Jan 16th, 2014
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. N=$1
  4.  
  5. awk -vN="$N" 'BEGIN{ for (i=1; i<=N; i++) {
  6. print "<text id=\""i"\">"
  7. print "bla bla bla bla........."
  8. print "</text>"
  9. }}' > file1
  10.  
  11. awk -vN="$N" 'BEGIN{ for (i=1; i<=N; i++) {
  12. print i, "title" i
  13. }}' > file2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement