![]() |
In this article, we will write a straightforward C program that sorts numerical data from a file using pipes and forks.The sorting process is carried out using the sort command and the execlp function of UNIX. Working of the Program
C Program to Sort Numbers from File using Unix PipesC
OutputWhile running program, provide the file name you want to read, ./your_program_name [input file]
Now assume that your file contains the the following data file.txt 2 Then the output will be Data received through pipe:2 |
Reffered: https://www.geeksforgeeks.org
C Programs |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 11 |