General :: Find The Bash Source Files Of Programs In Mac OSX?
Jan 6, 2011
I am currently writing some convenience methods for my terminal in my bash_profile and am sure if what I am writing is "the best way". I figure a good way to verify whether what I'm doing is right or not would be to find some source code of more established programs and see how they do it.My question then is, where can I find this code on my Mac? An example is, with Macports installed, where is the source code that opens the port interactive console when I type nothing but "port" in my shell?(I added Linux in the title even though I am on a Mac because I assume the answer would be the same for both)
View 3 Replies
ADVERTISEMENT
Sep 18, 2010
How would I go about finding all the folders in a directory than contain less than x number of .flac files?
View 2 Replies
View Related
Jun 8, 2010
What kind of method to find the duplicates files on linux,
1.how to find just using the file name, sometimes i figure out people often to copy their files to another directory and i want to find out if there any same file name in the linux box.
2. what about if i want to find the duplicate files based on contents of the file, example is in picture file if users store picture files from digital camera first they just save the file name in default but when they want to give that picture to others they will rename it, i've been used method md5 for this situation in python script but it takes long time
I'm asking this question just to know to use bash script a lot in work and i want to test out fdupes at home, is fdupes use similar md5 scan to find duplicate files?
View 4 Replies
View Related
Mar 18, 2011
I am looking for a bash script which is compatible with Mac, to find duplicate files in a directory.
View 2 Replies
View Related
Jun 21, 2011
Linux command to find files changed in last n seconds. shell script,that we can run from cli or command.
View 3 Replies
View Related
May 18, 2011
just downloaded Ubuntu 11.4 and would like to know how to get rid of unity. I don't like the way unity works. it wont find files and some programs are not all listed and I hate the way it looks.is there a way to go back to the old Gnome desktop?
View 7 Replies
View Related
Jul 10, 2010
When I go to sites like kde-apps.org or gtk-apps.org i often times find that lots of programs there are available only in source code? Why? Why is it so hard for the developer to compile the package or to make that .deb or .rpm package? I'm sure it's easier for the developer to compile his own program than for a linux user... i don't get this.. why does everything come in source code?
View 12 Replies
View Related
Feb 26, 2009
Where do i found source code of c library files in ubuntu.
View 2 Replies
View Related
Mar 11, 2011
I am trying to find a nightly backup if it was successfully copied over, rename it and curl, but it's always passing the check even if the file is older than specified. From the command line it does as it should. Example is here;
Code:
find /backup -type f -mmin +4440 -exec echo "found" {} ;
- nothing returned (good). Then I change the time
[code].....
View 4 Replies
View Related
Feb 3, 2011
i want to find all files with .h or .c extension and print them on the screen. How can i do it with bash script programming?
View 5 Replies
View Related
Feb 25, 2010
I'm working on a bash script that will go through a directory, find the sub-directories that have been created since the last time the script ran, count the results, and output that integer (will most likely be '1' or less per each instance run) to a file. Give the circumstances, my previous (and very limited) experience with bash is not sufficient for me to pull this off. since it probably has bearing, is that my mail server stores files that it flags as viruses in a folder. It creates a sub-directory for each virus that it quarantines .I want to count those subdirectories and graph them with MRTG. Hence the script. I'm going to post what I've got so far and the purpose of it, because I'm told I have a very odd and efficient way of doing scripting.
[Code]...
But then it dawned on me that it wouldn't work because I would have to not count the directories that have already been counted and count the ones that have not been counted. Given that the purpose of this is to generate a graph about every 5 minutes, using find won't work because, to my knowledge, that will only find things based on whole day values, I need it almost down to the minute.
View 1 Replies
View Related
Aug 30, 2010
If I have an interactive program, e.g top, which, after launch, can be fed with key strokes and changes its behavior, for example, after launching top and then pressing "1", you can see the CPU utilization per core. I was wondering if there is a programmatical way to do so, so I don't have to press "1" every time. I would think it is an easy task, but so far my attempts have failed.
View 4 Replies
View Related
Sep 1, 2011
I'm trying to write a bash script which will find files then move them to a specific directory.
So far I have:
Code:
#!/bin/bash
#script to find and move files
src_dir="/path/to/source/directory"
des_dir_mov="/path/to/destination/directory/for/movies"
des_dir_img="/path/to/destination/directory/for/images"
find $src_dir -iname '*.avi' -type f -exec mv '{}' $des_dir_mov ';'
I'd like to have all the possible movie file types then the image file types checked in a loop.
Every time I try to include an array in this script it breaks
View 3 Replies
View Related
Jun 5, 2009
I want to remove duplicate or multiple similar lines from multiple files. I.e. if I have four files file1.txt file2.txt file3.txt and file4.txt and would like to find and remove similar lines from all these files keeping only one line from these similar lines. I only that uniq can be used to remove similar lines from a sorted file.
View 9 Replies
View Related
Jun 10, 2010
How can I figure out which programs are using up swap space? My current memory usage is 2.9GiB out of 3.0GiB used(and I though I had 4GB, I need to check into that) and 1.3Gib of swap used.
View 1 Replies
View Related
Jan 17, 2011
I need to fgrep a list of things which are in a file. The file in which I will do the SEACHING is a large text file and I need fgrep to output each item from the list as a file with the item from the list as the file name.
Its kinda like this:
./script list.txt largefile.txt
output would be
jack.txt
screen.txt
blah.txt
View 14 Replies
View Related
Jan 14, 2011
For every program I've installed, I can see an icon in the applications menu. But, I'd like to be able to find the actual icon so I can use it on panels and such in gnome.
Is there a standard place where icons from the applications menu are found?
View 1 Replies
View Related
May 30, 2010
I know there's a which command, that echoes the full name of a binary (e.g. which sh). However, I'm fairly sure there's a command that echoes the package that provides a particular binary. Is there such a command? If so, what is it? I'd like to be able to run this:
commandName ls and get coreutils for example.
View 1 Replies
View Related
Aug 16, 2010
Forever I've been able to use "locate" to find files, but now it finds NOTHING at all and I have no clue why.. I tried apt-get install locate and it installed it, but it's not working in bash.
View 5 Replies
View Related
Aug 1, 2010
this is srinath,newbie to linux and shell scripts.am in need of shell script,which have to checkout the source code(C/C++) from CVS server to a specified directory and compile that source code and get all its dependency files to a specified directory.
View 2 Replies
View Related
Sep 11, 2009
I am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:
wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;
View 10 Replies
View Related
Jul 15, 2011
Is there a way to specify to find that I only want text files (and not binary files)? Grep has an option to exclude binary files, so I thought find probably has a similar feature, but I've been unable to find it.
View 2 Replies
View Related
Nov 11, 2010
SuSE SLES10, 32 bit. I have an app which crashes with general protection often.
There is message every time in /var/log/messages:
2010-10-22T08:49:49.350476+02:00 HostName kernel: ProgramName[28023] general protection rip:404575 rsp:7fffc5656270 error:0
How do I establish relation between this message and source code? Error was observed on another host where some tests were running, now license is expired and I can't get more info nor core dump. I have to investigate what I have and try to reproduce it locally. Unfortunately original binary was stripped.Now I prepared non-stripped version. Does it has the same addresses for function as original? Is it possible to use symbol information for finding where RIP points to?
View 2 Replies
View Related
Nov 11, 2010
I have installed a program from source code many times.
When I wanted to uninstall, I type "make uninstall" on the directory source, and it uninstalled the program.
But today, I have installed a program which i want uninstall.
I type "make uninstall" and i get this:
Code: make:
How can I uninstall the program?
View 5 Replies
View Related
Jan 25, 2009
I know how to search for normal files but can you let me know " How to search for 5 setuid files on the system. Also explain, for each file, why setuid mechanism is necessary for the command to function properly"
View 1 Replies
View Related
Apr 16, 2009
I am working on a custom hand-held device which runs a variant of Ubuntu Linux, 2.6.18. I have a set of 4 binary files (for oprofile) which have been known to run in this environment, but when I copy them to /usr/bin, I can't run them: I get this message;root@ldogberry:/usr/bin# ./ophelp-sh: ./ophelp: not foundThis happens when I specify the full path, when I run from the /usr/bin directory -- it happens no matter what. Bash even does command-line completion on the file -- and then turns around and instantly claims the file is not found.
View 7 Replies
View Related
Oct 15, 2009
Why Fedora doesn't supports non open source programm?
View 6 Replies
View Related
Sep 7, 2010
Im trying to install mupen64plus, but to be honest, everything i have installed is from the package manager.I have no idea how to do this through the terminal. But I tried installing the mupen64plus from the package manager, and everytime I open a rom, mupen64plus closes and doesnt load anything....
That version was 1.5, and I downloaded 1.99.3 or whatever it is from the mupen site, but I cant get the sucker to install. There is a install.sh file which I chmod +x too. I then tried, ,/install.sh, make install.
View 2 Replies
View Related
Mar 3, 2011
Running 10.10 64bit
I tried installing the latest Mupen64Plus from source, and something went wrong, and now I get errors when trying to run it. How do I remove the link that was created from the source install?
This is what I get code...
View 2 Replies
View Related
Apr 5, 2011
I'd like use a livecd of ArcheOS to install some applications into my Kubuntu 11.04 system. Is this possible?
View 2 Replies
View Related