"beautify-unl" problems
Posted in 2003
Topics: Platform-Specific Issues
I already download the beautify-unl from shells from the IIUG repository in order to use in a program, but I have problems, exactly in the options of the grep function, I really appreciate if you could tell me about the meaning or how cant I change it. grep -q -e I have Solaris 8 and don´t have this options Form that I execute it %ksh beautify-unl.sh x.unl "grep: illegal option -- q grep: illegal option -- e Usage: grep -hblcnsviw pattern file . . . awk: syntax error near line 1 awk: bailing out near line 1" x.unl 1|F96|305|||R|05/31/96|1161|235||0.0|L|M|O|BF|Z|C|P|M|002045|06/05/96 1|F96|305|||L|05/31/96|189|235||0.0|L|M|O|BF|Z|C|P|M|002045|06/05/96| 1|F96|305|||L|06/30/96|180|235||0.0|L|M|O|BF|Z|C|P|M|002045|07/15/96| Luis Arturo López Caballero Proyecto ASARE - Modulo Base Mexico D.F. Tel. 01(55)52294400 Ext. 85705
At 02:21 06/05/03, luis.lopez0.... wrote: >I already download the beautify-unl from shells from the IIUG repository in >order to use in a program, but I have problems, exactly in the options of >the grep function, I really appreciate if you could tell me about the >meaning or how cant I change it. > >grep -q -e > >I have Solaris 8 and don´t have this options (Looking at the man page for grep) Although /usr/bin/grep doesn't have these options, /usr/xpg4/bin/grep does. One way forward would to create an alias of grep that uses this executable vis: alias grep='/usr/xpg4/bin/grep' Use 'type' to check that the alias is set up correctly. HTH -- MarkT