Talk:Terminal control/Unicode output: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 2: Line 2:
Surely you can check an environment variables value in the shell, without the need to call Awk. As it stands, it doesn't seem to be a good example of using the Unix shell. --[[User:Paddy3118|Paddy3118]] 07:59, 11 September 2011 (UTC)
Surely you can check an environment variables value in the shell, without the need to call Awk. As it stands, it doesn't seem to be a good example of using the Unix shell. --[[User:Paddy3118|Paddy3118]] 07:59, 11 September 2011 (UTC)
:We cannot check for substrings on a Bourne shell, so we have to use AWK. Other shell implementation may not need to do this of course. [[User:Markhobley|Markhobley]] 08:02, 11 September 2011 (UTC)
:We cannot check for substrings on a Bourne shell, so we have to use AWK. Other shell implementation may not need to do this of course. [[User:Markhobley|Markhobley]] 08:02, 11 September 2011 (UTC)
::Actually, it looks like you can match substrings by using the switch command. If this works I will try and rewrite this to get rid of awk. [[User:Markhobley|Markhobley]] 08:20, 11 September 2011 (UTC)

Revision as of 08:20, 11 September 2011

Unix shell embedding Awk?

Surely you can check an environment variables value in the shell, without the need to call Awk. As it stands, it doesn't seem to be a good example of using the Unix shell. --Paddy3118 07:59, 11 September 2011 (UTC)

We cannot check for substrings on a Bourne shell, so we have to use AWK. Other shell implementation may not need to do this of course. Markhobley 08:02, 11 September 2011 (UTC)
Actually, it looks like you can match substrings by using the switch command. If this works I will try and rewrite this to get rid of awk. Markhobley 08:20, 11 September 2011 (UTC)