Sponsored Content
Top Forums Shell Programming and Scripting Recursive search for string in file with Loop condition Post 302804045 by wisecracker on Wednesday 8th of May 2013 02:50:17 AM
Old 05-08-2013
I just had a thought.

Although the previous *.sh technically exits when the newer running *.sh starts and the previous *.sh opens a file but fails to close it correctly will the garbage collection clear up the memory loss or will this become a memory leak?

Again just a thought...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Recursive Search and replace only when found string

Hello all ( again ) I will like to search and replace string in text file ok I can loop throw the files like : foreach f ( ` find . -name "*."`) .. but here I like to examine the file if in contain the desired string and so do the sed -e 's/blah/foo/g' thingy on it or there is better way... (1 Reply)
Discussion started by: umen
1 Replies

2. UNIX for Advanced & Expert Users

find file with date and recursive search for a text

Hey Guyz I have a requirement something like this.. a part of file name, date of modification of that file and a text is entered as input. like Date : 080206 (MMDDYY format.) filename : hotel_rates text : Jim now the file hotel_rates.ZZZ.123 (creation date is Aug 02 2006) should be... (10 Replies)
Discussion started by: rosh0623
10 Replies

3. Shell Programming and Scripting

Recursive find / grep within a file / count of a string

Hi All, This is the first time I have posted to this forum so please bear with me. Thanks also advance for any help or guidance. For a project I need to do the following. 1. There are multiple files in multiple locations so I need to find them and the location. So I had planned to use... (9 Replies)
Discussion started by: Charlie6742
9 Replies

4. UNIX for Advanced & Expert Users

Full System Recursive Search for a String - Not Finishing

Using grep -r -H "foobar" / > result to give all files that contain the string "foobar" Half way , its waiting for some thing and does not end Not Sure whats happening. Any help is much appreciated Thank you (2 Replies)
Discussion started by: shorn
2 Replies

5. Shell Programming and Scripting

Search string within a file and list common words from the line having the search string

Hi, Need your help for this scripting issue I have. I am not really good at this, so seeking your help. I have a file looking similar to this: Hello, i am human and name=ABCD. How are you? Hello, i am human and name=PQRS. I am good. Hello, i am human and name=ABCD. Good bye. Hello, i... (12 Replies)
Discussion started by: royzlife
12 Replies

6. Shell Programming and Scripting

Recursive replacement of search string using sed

Dear Unix Forum Group Members, Please do let me know how I can replace the double pipe with single pipe recursively on single record. Sample Input Data: DN set|Call prefix||| Called number address nature 0||| *789|||||||ALL number types 0||| 00||||||||ALL number types 10||... (5 Replies)
Discussion started by: srinu.kadem
5 Replies

7. Windows & DOS: Issues & Discussions

Batch file loop and increment value for condition

I am trying to have the below batch file do following two things: 1. only allow the values YES,yes,Y,y, or NO,no,N,n 2. increment the counter %var1 only if answer to question 2 is "y" and not able to get the syntax correct. If %var1%=1 then I am trying to display function :end. Thank you :).... (0 Replies)
Discussion started by: cmccabe
0 Replies

8. UNIX for Dummies Questions & Answers

Loop with Perl (string search)

I am using a perl script to reverse and complement sequences if a string is found. The script works as expected as standalone but I would like to use it in my bash file. However, I am not getting my expected result. My test.txt file >Sample_72... (8 Replies)
Discussion started by: Xterra
8 Replies

9. UNIX for Beginners Questions & Answers

Loop through the folders and search for particular string in files

Hello, Opearting System Environment : HP Unix B.11.31 U I look for script to On specific folders list On specific filelist Search for given string For Example : r48_buildlib.txt contains wpr480.0_20161027 wpr480.0_20161114 wpr481.0_20161208 wpr482.0_20161222... (4 Replies)
Discussion started by: Siva SQL
4 Replies

10. UNIX for Beginners Questions & Answers

Need help search multiple condition from a file.

OS: window 7 shell : korn shell I have 2 file , i'm need grep data according File_1 from file 2. File_1 CAL_ENAB_N_4_ $2N12743_29 +12V File_2 NODE CAL_ENAB_N_4_ PINS 21548; PROBES P1465 3651, 46900 tn2700.1 LWT; WIRES (6 Replies)
Discussion started by: kttan
6 Replies
otest(1)						    BSD General Commands Manual 						  otest(1)

NAME
otest -- SenTestingKit, OCUnit. SYNOPSIS
otest [-SenTest Self | All | None | <TestCaseClassName/testMethodName>] path DESCRIPTION
otest runs the unit tests found in the bundle given at path. ARGUMENTS
-SenTest value This flag denotes the scope of the unit test to be run. Possible values are Self, All, None and <TestCaseClassName/test- MethodName>. The default value is Self. path Path to the bundle that contains the unit tests. OBJECTIVE-C GARBAGE COLLECTION otest is built with support for Objective-C garbage collection. Due to the "whole process" nature of Objective-C garbage collection, invok- ing otest from the command line or an IDE or debugger will run otest with garbage collection enabled. Doing so requires that the bundle con- taining the unit tests also be built with support for garbage collection. To avoid this requirement and disable garbage collection, run otest in an environment with the OBJC_DISABLE_GC environment variable set to YES. ENVIRONMENT
OBJC_DISABLE_GC Set to YES to disable Objective-C garbage collection for otest when running test bundles that do not use it. FILES
/Developer/Tools/RunTargetUnitTests A script that calls otest with the correct arguments for use with Xcode. SEE ALSO
RunTargetUnitTests(1), otest(1) Xcode June 2, 2019 Xcode
All times are GMT -4. The time now is 09:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy