find & sed (search and replace)
I’m using the following command on my mac:
I’m using the following command on my mac:
I have
For config auditing reasons, I want to be able to search my ext3 filesystem for files which have the immutable attribute set (via chattr +i). I can’t find any options for find or similar that do this. At this point, I’m afraid I’ll have to write my own script to parse lsattr output for each directory. Is there a standard utility that provides a better way?
Is it possible to get colored output from the find command? That is, in the path of each found item, directories are blue, executable scripts are green, et cetera? I’m using version 4.4.2 of GNU findutils.
I’m relatively new to Bash and am trying to do something that on the surface seemed pretty straightforward – run find over a directory hierarchy to get all of the *.wma files, pipe that output to a command where I convert them to mp3 and save the converted file as .mp3. My thinking was that the command should look like the following (I’ve left off the audio conversion command and am instead using echo for illustration):
At best I would like to have a call like this:
I have the md5sum of a file and I don’t know where it is on my system. Is there any easy option of find to identify a file based on its md5? Or do I need to develop a small script ?
When I want to search a whole tree for some content, I use
If I have a directory containing some files whose names have spaces, e.g.
I have a folder with more than 30 sub directories and I want to get the list of the files which was modified after a specified date(say sep 8 which is the real case) and to be copied with the same tree structure with only the modified files in that folder