What is this strange syntax inside `find -exec`?

Recently I've came across a strange bash script, which is used to call a custom bash function from inside find -exec. I've developed following simple script to demonstrate the functionality I need to get explained. In the following example, function...
more »

2017-08-10 12:08 (1) Answers

find - suppress "No such file or directory" errors

I can use -s in grep to suppress errors, but I don't see an equivalent for the find command in the man page... Is the only option to redirect STDERR>/dev/null? Or is there an option that handles this? (open to fancy awk and perl solutions if needed)...
more »

2017-08-08 19:08 (1) Answers

Find %20 and replace with - in Dreamweaver

I have a line of code: mainURL=Sample%20Line%20Of%20Code.php I want to replace the %20 with a dash (-) using Dreamweaver's find and replace I have tried several variations of: Find - mainURL=([^\s]*).phpand mainURL=([^%20]*).php Replace - mainURL=...
more »

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

find blank character in c++

I wanted to see the following code in the C ++ language can find the first blank character in the string or empty space on the top of the string. for(;*str == ' '; str++) ...
more »

2017-08-05 01:08 (3) Answers

C compiler at codeblocks

when i try to open codeblocks this message appear "can't find compiler executable in your configuration search path's for GNU GCC compiler". and I can't run any project ...
more »

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

Java Error during the exectution

I've a problem during the execution of Java applications. I have installed and configured the JDK and a editor called "Textpad". This editor supports JDK command to compile and execute Java applications. When I try to compile my Java class, there are...
more »

2017-08-03 22:08 (0) Answers

Why is this logging as undefined?

I'm using jQuery and Lodash, and can't figure out why this is returning undefined: $.each(someArray, function(i) { var x = _.find(someObject, function(item) { return item.Id === someArray[i] }); console.log('x') console.log(x) }); ...
more »

2017-08-03 21:08 (1) Answers

Data Analysis with Matlab

I have data imported from Excel as tables, namely 'DatenTage1', which is a 8434x20 table. 'vortrieb2' is the new cell I want to get from it . DatenTage1{:,1} are spezific numbers that are unique DatenTage1{:,2} shows the date(s) DatenTage1{:,3} th...
more »

2017-08-03 10:08 (0) Answers

C-shell: find file more that 12 hours

I am using solaris and i need to find file that more than 12 hours. In solaris, there is no -mmin function. So, what i do is: set timer = "/admin/timer.txt" echo date > $timer find . -type ! newer $timer But this only work I set the script ru...
more »

2017-08-03 06:08 (1) Answers

Using find on multiple worksheets in excel

I have two files, I want to connect "FileA" to "FileB". FileA is a large table with column N being the date. In FileB I have multiple worksheets each with mini tables with the same format as FileA. I want FileA to self populate when FileB is up...
more »

2017-08-02 20:08 (0) Answers

How find range of lines by their number?

I have a range of lines from 1 to 189. I want to enter an expression in (Replace) to find these lines so I can replace them all with something. I want to do this simultainously to multiple files using a tool called ToolBucket. The only thing that I ...
more »

2017-08-01 21:08 (0) Answers

Object not found while using R Markdown

I'm trying to use r markdown in order to make a presentation in slidy style. But when I try to show how I rename my table : Transakcje<-goaldata0101_0331 I get an error saying that object "goaldata" cannot be found. Any ideas? ...
more »

2017-08-01 12:08 (0) Answers

Adjusting xargs to accept ls -lh

I want to find files larger than X MB, so I run find data/ -size +2M but I need MB next to each file, so I tried this: find data/ -size +2M | xargs -I '{}' ls -lh '{}' Above seems to list all files regardless of size, is the xargs part incorre...
more »

2017-07-30 13:07 (1) Answers