Find | xargs grep versus grep -r

I'm probably getting senile, because while going over my .cshrc today I found these two line and I don't remember why I wrote them or what they do: alias findc "find . -type f -print | xargs -0 grep $1 $2 $3" alias findf "find . -type f...
more »

2017-04-19 11:04 (0) Answers

Regex with find command in bash

I have been trying to use regex with find command in bash. Following are my codes: find . -regextype posix-extended -regex 'AB[0-9]{1}_all_chr\.gz' However, above code did not match to desired file with id such as "AB1_all_chr.gz" and "AB2_all_chr...
more »

2017-04-19 00:04 (1) Answers

advanced parsing of log file for cmd

I need to parse log file in cmd (by using find or findstr commands) in order to get specific records. Example of the log file: [2017-04-10 10:53:58.597] [info ] [settings ] [ 1052: 1012] paths.ini_store configuration is empty, settings ini stor...
more »

2017-04-18 16:04 (1) Answers

Script Issues with find -> tar/gzip

I am currently working on a script, to store/backup our old files, so that we have more space on our server. This script will be used as a cronjob to backup the stuff every week. My script currently looks like this: #!/bin/bash currentDate=$(date '+...
more »

2017-04-18 15:04 (0) Answers

Find and sed: how to replace files in place?

I want to replace a phrase composed of two words separated with a space with another two words: find . -type f -exec sed 's/w1 w2/w3 w4/g' {} + However, even if the pattern 'w1 w2' occurs in many files on the current dir, nothing seems to change. ...
more »

2017-04-16 15:04 (1) Answers

Filtering excel rows in hidden mode (VB Code)

I want to filter an extensive range of rows in Excel and copy their values without the filter running in Excel, only in VB code without visual action in Excel. This procedure is very slow, I want a more agile alternative: ' xlSheet.Range("A1...
more »

2017-04-14 15:04 (1) Answers

How do I formulate find() based on multiple _ids?

I am trying retrieve two objects based on their two Object _ids. As demonstrated in the code below, my Session.get(); function retrieves the two _id, that I use in my query. var selectedID = Session.get('selectedItemIDSet'); selectedID = selected...
more »

2017-04-14 15:04 (0) Answers

Matcher, find and replace placeholders with values

I have an input String which is something like a query with placeholders, like this #input String queryText, test, test2 //queryText is something like " SELECT stuff FROM stufftable WHERE oid_2 = $$test$$ || oid_2 = $$test2$$ Now my task is to rep...
more »

2017-04-13 10:04 (2) Answers

Finding Cell in another sheet

I created a database for students who have applied for payment plan. I have 3 sheets: "Enquiry" - this is where the data is stored while waiting for the students to sign up. "Confirmed" - this data has 3 row headings: Student ID (B1), Plan ID (B2) ...
more »

2017-04-13 04:04 (1) Answers

Android: Find an ID of dynamically created view

I've got a following problem: In Android Studio I generate en EditText dynamically when an ExerciseButton is clicked: public void exerciseButtonClick(View view) { EditText exercise = new EditText(this); exercise.setId(exerciseId); exerciseId+...
more »

2017-04-12 12:04 (3) Answers

Django: upload image can't find uploaded image

I have already tried searching stackoverflow, but couldn't find anything. My problem is that I cannot seem to find the folder where the pictures I upload is supposed to be. Seems like everything else works? Here you can see my code: Settings.py M...
more »

2017-04-11 19:04 (0) Answers

My class cant be found or load

I just made two classes with one package, but when I run program it says 'Could not find or load main class', but when I remove package p; from main program everything is right.package p; package p; public class Ex5 { public static void main(St...
more »

2017-04-11 18:04 (2) Answers

Bash find command

i need help to create a command. I must check if a file in a directory with a special string exists? Can anyone please help me? Until now ive got this if [ -f $plik && -d $katalog && find ]; then thank you ...
more »

2017-04-11 16:04 (0) Answers

Sublime text xml replace regex result

I have a problem with replacing regex result in multiple xml tags in Sumbilme Text. I have xml code with multiple tags <startDate> in different groups like this: <group1> <id>123</id> <startDate>2011-11-11</star...
more »

2017-04-07 15:04 (2) Answers

How to find a file into a folder by its code

I have a folder with too much files. So, i need to re place this string: < span class="title-price"> From < / span > but I don't know where I can find it. Is there a way to know which file contains the string? Formats of the files...
more »

2017-04-07 14:04 (3) Answers