|
Oktatás * Programozás 1 * Szkriptnyelvek Teaching * Programming 1 (BI) Félévek Linkek * kalendárium |
Nim2 /
filter commandLet's write a simple filter command that can be used in a pipeline: $ cat file.txt | upper It must print the content of a file in full uppercase.
The input is processed line by line. Running example: $ nim c upper.nim $ cat upper.nim | ./upper IMPORT STD/UNICODE FOR LINE IN STDIN.LINES: ECHO LINE.TOUPPER The Python program works similarly. |
![]() Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |
||||