LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2016, 09:05 AM   #1
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Rep: Reputation: Disabled
What is a .cloc file?


In a software package I downloaded, I found this file.


Code:
chris@chris-crunch:~/apps/caffe-master$ cat caffe.cloc 
Bourne Shell
    filter remove_matches ^\s*#
    filter remove_inline #.*$
    extension sh
    script_exe sh
C
    filter remove_matches ^\s*//
    filter call_regexp_common C
    filter remove_inline //.*$
    extension c
    extension ec
    extension pgc
C++
    filter remove_matches ^\s*//
    filter remove_inline //.*$
    filter call_regexp_common C
    extension C
    extension cc
    extension cpp
    extension cxx
    extension pcc
C/C++ Header
    filter remove_matches ^\s*//
    filter call_regexp_common C
    filter remove_inline //.*$
    extension H
    extension h
    extension hh
    extension hpp
CUDA
    filter remove_matches ^\s*//
    filter remove_inline //.*$
    filter call_regexp_common C
    extension cu
Python
    filter remove_matches ^\s*#
    filter docstring_to_C
    filter call_regexp_common C
    filter remove_inline #.*$
    extension py
make
    filter remove_matches ^\s*#
    filter remove_inline #.*$
    extension Gnumakefile
    extension Makefile
    extension am
    extension gnumakefile
    extension makefile
    filename Gnumakefile
    filename Makefile
    filename gnumakefile
    filename makefile
    script_exe make
I have no idea what a .cloc file is, so I 'read' it with cat to find out more. I understand nothing, apart from the fact that these seem to be different codes?

I have googled what a .cloc file is but have not been able to find anything remotely helpful. Can anyone explain to me what this is, or where to find out more? Thanks
 
Old 02-17-2016, 09:24 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,945

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by chris_crunch View Post
In a software package I downloaded, I found this file.
Code:
chris@chris-crunch:~/apps/caffe-master$ cat caffe.cloc
I have no idea what a .cloc file is, so I 'read' it with cat to find out more. I understand nothing, apart from the fact that these seem to be different codes? I have googled what a .cloc file is but have not been able to find anything remotely helpful. Can anyone explain to me what this is, or where to find out more? Thanks
Putting "linux cloc file" into Google pulls up lots. The VERY FIRST HIT is:
http://cloc.sourceforge.net/

...which tells you that cloc stands for Count Lines Of Code. Essentially, it's a code checker/parser, and those are patterns used for various different types of programming languages.

Also, when asking such things, it'd be nice if you said what package it was you found this in and where you got it, rather than "a software package I downloaded", which tells us nothing.
 
1 members found this post helpful.
Old 02-17-2016, 04:44 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
In your case it is a text file. Some other commands use it as input.

Linux isn't really well tied to the extensions like windows is.
 
1 members found this post helpful.
Old 02-17-2016, 04:48 PM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,182
Blog Entries: 10

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
http://linux.die.net/man/1/cloc

Isn't google wonderful?
Practically sucks the question out of your skull.
 
1 members found this post helpful.
Old 02-17-2016, 10:19 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
You may have installed cafe and not known what it was for and this is residual. It is a text file and tells that program how to handle things.
 
Old 02-17-2016, 10:56 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,411
Blog Entries: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
You may have installed cafe and not known what it was for and this is residual. It is a text file and tells that program how to handle things.
Is it like a cron job?
 
Old 02-18-2016, 04:17 AM   #7
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
Oh okay, so it's basically there to make sure the program is running properly...
Sorry guys that was a rather silly question; I think I phrased the question rather badly in the google searchbar...

Thanks for your time, again...!
 
Old 02-18-2016, 04:25 AM   #8
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,109
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
Best to cut to the chase with google only key words or some phrases like "how to..." this may help: http://www.sc.edu/beaufort/library/p...es/bones.shtml
 
Old 02-18-2016, 04:57 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
I didn't mind the question. It was a good question. Just kind of confusing to me as caffe is an odd program to have.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Counting lines of code with cloc LXer Syndicated Linux News 0 07-14-2014 01:31 AM
Mencoder adds the extension of the original file to the output file ex: file.flv.mp4 linuxlicious Linux - General 2 04-17-2012 03:22 PM
Mencoder adds the extension of the original file to the output file ex: file.flv.mp4 linuxlicious Linux - General 1 04-15-2012 05:07 AM
How to play a media file/ video file/mp3 file recorded in harddisk/cd-rom arindam Linux - Newbie 2 09-05-2003 11:31 AM


All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration