Originally Posted by ntubski
seq -w 10 > $OutFile
Thank you for your prompt response. A lovely concise solution.
Allow me to broaden the question by proposing similar examples.
1) How may I create a new file consisting of six records, with each record containing nine blank characters?
2) How may I create a new file consisting of four records, with each record containing the characters QWERTY?
I could use seq
to create the file (as you taught) and then sed
to substitute other content. Is there a more direct method?
Daniel B. Martin