> > I am looking for an automatic way of transforming my text file into
> > another one with the format
> You may try this:
> cat ./test.txt | awk '{print $1" "$2; print $1" "$3; print $1" "$4}' | grep
> -v ' $'
Thanks for all suggestions.
Yakov: can your solution be adapted to the conversion from
1 E E E
2 C D
6
3 B E D
4 C E D
5 D E
to
1 E
1 E
1 E
2 C
2 D
6
3 B
3 E
3 D
4 C
4 E
4 D
5 D
5 E
?
Please, notice that there is no letter associated to the number 6.
Proposal: String::Format::General ... It provides format string parsing and output assembly, you provide the code that implements the individual conversion characters. ...Format syntax is kind of a cross between sprintf and strftime, but how close it is to each of these depends on the semantics implemented by the user. ... Note that the following is pre-alpha documentation; the interface to the output conversion code has changed since yesterday, ...conversion character, and contain a number of optional fields which may ... (comp.lang.perl.modules)
Proposal: String::Format::General ... This should be considered pre-Alpha, since it has changed since yesterday, and I am seriously considering passing the format parameters to the output conversion code as a hash reference instead of a large number of arguments. ... Some limited heading capability is provided. ... This module provides a formatter class which allows its user to ... (comp.lang.perl.modules)
Proposal: String::Format::General ... It's almost a meta-formatter with the user providing individual conversion code behind a sprintf/strftime-like interface. ... A format is basically a string into which data are to be inserted. ...conversion character, and contain a number of optional fields which may ... (comp.lang.perl.modules)
Re: Proposal: String::Format::General ... It's almost a meta-formatter with the user providing individual conversion code behind a sprintf/strftime-like interface. ... A format is basically a string into which data are to be inserted. ...conversion character, and contain a number of optional fields which may ... (comp.lang.perl.modules)
Re: Cobol format conversion ... That is useful background.... explanation of the format specs.... Or at least this format of COBOL files.... > probably do as good a job of coding a conversion routine as they can. ... (perl.beginners)