Morning guys. Another day another question. :rolleyes:
I am knocking up a script to pull some data from a file. The problem is the file is very big (up to 1 gig in size), so this solution:
for results in `grep "^\
... works, but takes ages (we're talking minutes) to run. The data is held... (8 Replies)
helo all
i have 2 files. and i want to grep the contents of first file from the 2nd file. but these files are too large contaning lacks of lines .
i'm using for loop but it takes so moch times . is there any other sol.
i'm using this code
"
for var in `cat succ_migrated`
do
grep $var... (4 Replies)
My input:
Data name: ABC001
Data length: 1000
Detail info
Data Direction Start_time End_time Length
1 forward 10 100 90
1 forward 15 200 185
2 reverse 50 500 450
Data name: XFG110
Data length: 100
Detail info
Data Direction Start_time End_time Length
1 forward 50 100 50 ... (11 Replies)
I have a directory I need to grep which consists of numbered sub directories. The sub directory names change daily. A file resides in this main directory that shows which sub directories are FULL backups or INCREMENTAL backups.
My goal is to grep the directory for the word "full" and then... (2 Replies)
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Hi,
I am new to this world..
Using expect i loging to router and checking ping response to my links.
I need to genarate report using this output and that report contains only three file link name, packet loss, latency.
my output of script is like below:
-bash-3.00$ monmw/mwbkp... (2 Replies)
I would like to search for regex in the exif data of a large collection of files (mostly jpg, some nef). For instance "grep_exif Tokyo *.jpg" should return the file names of all files which have "Tokyo" in their exif data.
Exiftool could be used to extract the data. I don't really need to grep... (6 Replies)
Below is the output of a DB2 command. Now I have 2 requirements...
Database Partition 0 -- Database TESTDB1 -- Active Standby -- Up 213 days 02:33:07 -- Date 02/22/2016 17:04:50
HADR Information:
Role State SyncMode HeartBeatsMissed LogGapRunAvg (bytes)
Standby ... (2 Replies)
Discussion started by: rlokesh27
2 Replies
LEARN ABOUT MOJAVE
lamnodes
LAMNODES(1) LAM TOOLS LAMNODES(1)NAME
lamnodes - Resolve LAM node/CPU notation to Unix hostnames.
SYNOPSIS
lamnodes [-chin] [where]
OPTIONS -c Suppress printing the CPU count for each node.
-h Print the command help menu.
-i Print IP addresses (instead of IP names)
-n Suppress printing CPU count for each node
DESCRIPTION
The lamnodes command is used to resolve LAM node/CPU nomenclature to Unix hostnames. It can be used to determine the current running con-
figuration of the LAM/MPI run-time environment, and generate a boot schema that can be used to launch LAM in the future.
By default, lamnodes will print out the node number, default IP name, CPU count, and per-node flags for each node in the running LAM.
gethostbyaddr(3) is used to obtain default hostnames. If gethostbyaddr(3) fails, the IP number is displayed instead.
This command can be used by setup shell scripts (and the like) to determine information from a currently-running LAM universe. For exam-
ple, use lamnodes to resolve particular CPUs and/or nodes to specific unix hostnames. In a batch environment, lamnodes can be used to
determine which CPUs share a common node (note that MPI_GET_PROCESSOR_NAME can be used for a similar effect in an MPI program).
lamnodes also shows per-node flags. Currently defined flags are:
origin The node where lamboot was executed.
this_node The node where lamnodes is running.
no_schedule The node will not be used to run MPI and serial processes when N and C are used to mpirun and lamexec.
EXAMPLES
lamnodes N -n
Display IP names and CPU counts for all nodes. This output can be saved and later used with lamboot(1).
lamnodes C -n -c
Display the IP name of the nodes containing each CPU, and suppress the LAM node number and CPU count. This output can be saved and
later used with lamboot(1).
SEE ALSO bhost(5), gethostbyaddr(3), lamboot(1)LAM 7.1.4 July, 2007 LAMNODES(1)