Mattpd 0 Light Poster

In the title I was going to write (not C script) but they are essentially the same I think. My bad, anyway...

I recently wrote a some SH scripts to manage lines of text in a separate txt file. Now my new assignment is to convert the whole thing to C. Any ideas on how to convert these lines to C?

grep -w "^$npname.*" parts.txt
echo $npname:$noname:in >> parts.txt
sed '/'^"$npname":'/d' parts.txt > parts.tmp
 
 mv parts.tmp parts.txt
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.