Re: Automatic text generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Smith wrote:
> 
> Thanks again to all. I just want to create a small report on about 100
> assignments of my students. To speed up this task, I imagined that I
> could place a number for each item corresponding to the sub-phrase to
> be inserted in the report. Since many sub-phrases are frequent, I am
> looking for a solution to automate the procedure, thus increasing my
> productivity. After having thought a bit, I suspect that a spreadsheet
> will be enough, as Peter suggests.
> 
> Paul
> 
What you may want to do is create the report is a text editor, using
easy to remember abbreviations for each sub-phrase. Then create a
sed rule file that replaces each abbreviation with the sub-phrase.
(You can use the same file for more then one document.) You can then
run sed on your text document and have it replace the abbreviations.
I usually find it easier to remember a 3 letter abbreviation then a
number for a sub-phrase.

Sed rules:
s@abbreviation@sub-phrase@g

Sed command:
sed -f sed.rule abb-file > finished-file

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux