hello
have a file1
H87I
Y788O
T347U
J23U
and
file2 J23U U887Y I99U T556U
file3 I99O J99T F557J
file4 N99I T666U R55Y
file5 H87I T347U
file6 H77U R556Y E44T
file7 Y788O K98U H8I
May be using script we can use file1 to search for all the files
and have the output
H87I file5... (3 Replies)
Hi,
I have two files. 1st file has 1 column (huge file containing ~19200000 lines) and 2nd file has 2 columns (small file containing ~6000 lines).
#################################
huge_file.txt
a
a
ab
b
##################################
small_file.txt
a 1.5
b 2.5
ab ... (4 Replies)
Please I want to replace all the contents beween "Section" and "Ensection" in file1 with all contents in file2. Example:
file1:
Section "Screen"
DefaultDepth 24
SubSection "Display"
Depth 8
ViewPort 0 0
Modes "1024x768" "800x600" "640x480"
EndSubsection
SubSection "Display"
Depth... (9 Replies)
Hi Friends,
This is the only solution to my task. So, any help is highly appreciated.
I have a file
cat input1.bed
chr1 100 200 abc
chr1 120 300 def
chr1 145 226 ghi
chr2 567 600 unix
Now, I have another file by name
input2.bed (This file is a binary file not readable by the... (7 Replies)
Hi one of the output of the command is as below
# sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/'
Resource List : <br>
*************************** 1. row ***************************<br>
... (2 Replies)
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
I have a data file, file1.txt, such as the following:
1,2 "TWRTW", "TWRH/"
1,2 "JHGH", "HGJ
1,2 "JWMM", "JWMM"
1,2 "W", "W"
1,2 "LJLH", "LJLH/"
1,3 "W", "W"
1,3 "HJH", "HJJ
I have another file, file2.txt, that contains... (3 Replies)
The file f1 contains the text "body" (shell prompt is "$"):
$ cat ~/path/f1
body
How to print contents of f1 when the f1 path is in a variable?
Here is my failed attempt:
$ f1="~/path/f1"
$ echo $f1
~/path/f1
$ cat $f1
cat: '~/path/f1': No such file or directory (2 Replies)
Trying to use sed to insert the contents of a file into the end of each line in another file
file1
This is a line
Here is another line
This is yet another line
Here is a fourth line
file2
TEXT
desired output
This is a line TEXT
Here is another line TEXT
This is yet another... (6 Replies)
Hi All,
I hope somebody would be able to help me.
I would need to search a string coming from a file, example file.txt:
dog
cat
goat
horse
fish
For every string, I would need to know if there are any files inside a directory(recursively) that contains the string regardless of case.... (9 Replies)
Discussion started by: kokoro
9 Replies
LEARN ABOUT MOJAVE
stringdups
stringdups(1) BSD General Commands Manual stringdups(1)NAME
stringdups -- Identify duplicate strings or other objects in malloc blocks of a target process
SYNOPSIS
stringdups [-minimumCount count] [-stringsOnly] [-nostacks] [-callTrees] [-invertCallTrees] pid | partial-executable-name | memory-graph-file
DESCRIPTION
stringdups examines the content of malloc blocks in the specified target process. For all blocks which have the same content, it shows a
line with the number of such blocks, their total allocated size (the total size in the malloc heap, not just the specific size of their con-
tent), and the average allocated size.
stringdups requires one argument -- either the process ID or the full or partial executable name of the process to examine, or the pathname
of a memory graph file generated by leaks. When generating a memory graph with leaks for use with stringdups it is necessary to use the
-fullContent argument to include labels describing the contents of memory.
If the MallocStackLogging environment variable was set when the target process was launched, stringdups also displays stack backtraces or
call trees showing where all the blocks with a particular grouping of content were allocated.
stringdups gathers the content of blocks of various types including:
o C strings (composed of UTF8 characters, null terminated, of any length)
o Pascal strings (composed of UTF8 characters with length byte at start, no longer than 255 characters, not necessarily null terminated)
o NSString of all types (immutable, mutable, UTF8, Unicode). Malloc blocks which are the storage blocks for non-inline or mutable
NSString's are listed separately. The string content is shown for both but the block sizes accurately show what is allocated in the mal-
loc heap for that particular chunk of storage.
o NSDate
o NSNumber
o NSPathStore2 (Cocoa's representation of file paths)
o __NSMallocBlock__ For these, stringdups shows the symbol name of the code block (^) that this storage is associated with. If debug
information is available, the source path and line number of the code block are also shown.
o item counts for collection classes such as NSArray, NSSet, and NSDictionary
OPTIONS -minimumCount count Only print information for object descriptions which appear at least count times in the target process. The default
minimum count is 2. To see all strings in the target process, use 1 or use 'heap <pid> -addresses all'.
-stringsOnly Only print information for objects that have string content such as C or Pascal strings, or NSString.
-nostacks Do not print stack backtraces or call trees even if the target process has the MallocStackLogging environment variable
set.
-callTrees If stack backtraces are available, then by default all the object descriptions for a particular stack backtrace are con-
solidated together. However if this argument is passed then the output is consolidated by each particular string and a
call tree is displayed showing the allocation backtraces of all occurrences of objects with that description. This out-
put can be very lengthy if minimumCount is a low value, because the same call tree may be displayed many times.
-invertCallTrees Same as except that the call trees are printed from hottest to coldest stack frame, so the leaf malloc call appears
first.
SEE ALSO heap(1), leaks(1), malloc_history(1), vmmap(1), DevToolsSecurity(1)BSD July 2, 2016 BSD