Click here to Skip to main content
15,503,887 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written a C function which write 10 bytes at end of file. I want to test whether it works in shell script using command like diff,cat etc.

What I have tried:

I tried commands like diff but I am not getting how to use the command in shell script.
Posted
Updated 29-Jan-22 20:49pm

1 solution

It's going to depend on your OS - the Linux diff is different from the WIndows version, but since you mention cat, I assume you are using linux for some reason.
This may help: Shell script using Diff[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900