I'm trying to construct a find command to process a bunch of files in a directory using two different executables. Unfortunately, -exec on find doesn't allow to use pipe or even \| because the shell interprets that character first.
Here is specifically what I'm trying to do (which doesn't work because pipe ends the find command):
fi...
How do I use the UNIX tool 'find' to search for files created on a specific date?
...
While editing someone else's abandoned Python script, I was trying to use
mystring.find("\n", i)
to get the index of the next newline in a string. But this consistently returns -1 (even when I try using "\r\n" instead of "\n"). I know there are newlines in the string, because I had just loaded it from a file. I am not very familiar wi...
I am a heavy command line user and use the find command extensively in my build system scripts. However on Mac OS X when I am not concentrating I often get output like this:
$ find -name \*.plist
find: illegal option -- n
find: illegal option -- a
find: illegal option -- m
find: illegal option -- e
find: *.plist: No such file or directo...
I have a solution with multiple projects and we need to do some serious global replacements.
Is there a way to do a wildcard replacement where some values remain in after the replace?
So, for instance if I want every HttpContext.Current.Session[“whatevervalue”] to become HttpContext.Current.Session[“whatevervalue”].ToString() the strin...
After looking on MSDN, it's still unclear to me how I should form a proper predicate to use the Find() method in List using a member variable of T (where T is a class)
For example:
public class Car
{
public string Make;
public string Model;
public int Year;
}
{ // somewhere in my code
List<Car> carList = new List<Car>();...
Hiya,
I have an XML file, and I want to find nodes that have duplicate CDATA. Are there any tools that exist that can help me do this?
I'd be fine with a tool that does this generally for text documents.
...
Suppose I have a table. Now, I'm interested in Getting Useful Data Easily. This means I'd rather not drop it into Excel and go through contortions, nor somehow get it into CSV and then into a DB, and then into SQL.
I'd like to be able to execute a SQL query directly against a table in HTML.
Has anyone heard of a tool like this before? ...
I know that to find all the h files I need to use:
find . -name "*.h"
but how to find all the h AND cpp files?
...
Say I have a method that needs to pull 8 values from a map with 100 elements in it. Which do you think would be preferable:
Walk in a for loop from begin to end once, pulling the elements out by switching on the key?
Or using find 8 times to get those values?
...
Hi there,
I am converting a linux script from http://www.perlmonks.org/index.pl?node_id=217166 specifically this:
#!/usr/bin/perl -w
use strict;
use Getopt::Std;
use File::Find;
@ARGV > 0 and getopts('a:', \my %opt) or die << "USAGE";
# Deletes any old files from the directory tree(s) given and
# removes empty directories en passant.
...
What's the regular expression I could use with find -regex to find all files that have a .xls or .csv extension?
...
Looking to get a list of all the files (commit comments would be nice too) of a user in cvs.
...
How would I convert the following to a VB.NET predicate using Array.Find?
Private Function FindCulture(ByVal Code As String) As Globalization.CultureInfo
'
Dim AllCultures As Globalization.CultureInfo() = Globalization.CultureInfo.GetCultures(Globalization.CultureTypes.AllCultures)
'
For Each Culture As Globalization.Cul...
How can I tell unix "find" to include in it's recursive search a folder which is softlinked?
...
Hi,
I've got a project I'm working on converting some legacy perl cgi forms to PHP. A lot of this requires finding / replacing information. In one such case, I have lines like this in the perl script:
<INPUT type="radio" name="trade" value="1" $checked{trade}->{1}>
which needs to read:
<INPUT type="radio" name="trade" value="1" ...
I'm trying to do what I think is a simple thing under Linux. I have a bash script which runs various test programs, and I want to determine which files in the current directory were created by the test programs. So I am doing something like this:
touch timestamp-file
run the test
find -newer timestamp-file -type f > list-of-files
rm -f...
I have a configuration XML file which contains an encrypted password. From time to time we need to reset this password, and the methodology for doing so involves stripping out the string which is effectively the password from the XML file and saving the file.
The process also involves stopping and restarting a couple of services which ...
I'm using the following command to remove every ".dummy" directories in a folder named "Test Folder":
rm -rf `find "Test Folder" -type d -name .dummy`
However, this doesn't work since it expands to, say:
rm -rf Test Folder/.dummy
Since the whitespace is not escaped, this fails.
I also tried something like this:
find "Test Folder"...
when i click Ctrl+Shift+R i get dialog that allows me to find resource, however it shows resource not compiled and compiled. Is there any way to make it show just not compiled resource? or hide compiled?
...