Solved

remove uncompiled c code from folder

Posted on 2012-03-17
4
375 Views
Last Modified: 2012-03-28
Hi I want to only leave the c program binaries (compiled code) in a folder.

how do i remove uncompiled code using the command line?
0
Comment
Question by:gerrymac1943
4 Comments
 
LVL 37

Assisted Solution

by:Neil Russell
Neil Russell earned 167 total points
Comment Utility
rm *.c
rm*.h

Is a good starting point. But would be better to just compile your target to a different folder.
0
 
LVL 31

Accepted Solution

by:
farzanj earned 166 total points
Comment Utility
You could use the find command

find / -type f -name *.c -name *.h

Make the path as conservative as possible.  Once you are able to list, you can pipe the list to
| xargs rm
0
 
LVL 76

Assisted Solution

by:arnold
arnold earned 167 total points
Comment Utility
You should move the compiled program/s out rather than the source and the compiled objects. Work on the issue with the fewer items.
Usually you want to keep the source in the event you want to make changes in the future.
0
 

Author Closing Comment

by:gerrymac1943
Comment Utility
excellent
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now