I have an array of distances and a len, for example
I want to calculate the start and end index values around each distance in the array with a length of len from it. Values in dist are stored in ascending order.
Hi all... I was accidentally wipe off my iphone and lost all the data in it:(. So I tried to use dd to create an image from iphone and ssh to the Mac by using:
dd if=/dev/disk | ssh user@MacIP of='image.img'
Then I mount this image on Mac/Windows and run recovery software because most of the... (1 Reply)
Hello All,
Below mentioned is my log file.
I want to make a script which ask for start time and then end time and then search particular word between those lines.
Like
start time:2
end time: 4
and then search all values starting from cell 84 between this time.
Please Help
... (2 Replies)
Hi
I have a ksh script which fetches data from a db using a number of .arc files and creates CSV files for them and puts them on the server.
Question is, how can I specifiy the start and stop times specifically so that data is fetched for a certain period?
# Get the current time as the... (1 Reply)
I need help with perl code. I have a data file with lots of data
example: data.txt file
START
DATA1 sjdfh kjhdf
DATA2 sdkjfhk jds dshfgdf
... Around 20 - 30 lines
END
LDDDD awdkjasd a sdkahgdk jasdh
SOME CRAP
Some EMPTY lines etc
START
DATA1 sjdfh kjhdf
DATA2 sdkjfhk jds... (2 Replies)
I have a need to calculate when British Summer Time starts and ends. After messing around, the following seems to work in Bash.
echo `date +%Y`-03-`cal 3 \`date +%Y\` | grep -oE "^]{2}" | tail
-1`T01:00:00Zand
echo `date +%Y`-03-`cal 10 \`date +%Y\` | grep -oE "^]{2}" | tail ... (10 Replies)
Hi,
I am trying to remove lines once a string is found till another string is found including the start string and end string. I want to basically grab all the lines starting with color (closing bracket). PS: The line after the closing bracket for color could be anything (currently 'more').... (1 Reply)
Hi guys,
I am having the below logfile,date in yyyy-mm-dd
2013-08-02 *some content*
2013-08-02 *some content*
2013-08-02 *some content*
2013-08-03 *some content*
2013-08-05 *some content*
from the above logfile i need to get the lines between the two timestamps,if i give... (5 Replies)
Hello
I'm using cygwin and wouldlike extract information from an xml file according specific values, but don't know how.
Let's say in a file content looks like this:
<tab>
SURNAME=Mustermann
NAME=Max
CUSTOMER SINCE= 18.01.2000
ADDRESS=Birmingham
... (2 Replies)
I have a file which looks something as following, I would like to split to several files, The start and end of each file is 'FILE' and end with 'ASCII... ' .
At the same time for each file in the first column add 100 and also second column add 100 the rest of the column as it is , see example of... (2 Replies)
Below are my custom period start and end dates based on a calender, these dates are placed in a file, for each period i need to split into three weeks for each period row, example is given below.
Could you please help out to achieve solution through shell script..
File content:
... (2 Replies)
Discussion started by: nani2019
2 Replies
LEARN ABOUT SUSE
dijkstra
DIJKSTRA(1) General Commands Manual DIJKSTRA(1)NAME
dijkstra - single-source distance filter
SYNOPSIS
dijkstra [ -ap? ] [ sourcenode file ]
DESCRIPTION
dijkstra reads a stream of graphs and for each computes the distance of every node from sourcenode. Edge length is given in the len
attribute, and the default is 1. The dist attribute of every node is set to its distance from sourcenode. If the -p flag is used, the
prev attribute of each node reachable from sourcenode is set to the name of the previous node on a shortest path. The graph attribute
maxdist is set to the maximum dist of all nodes in the graph.
By default, if the graph is disconnected, the dist attribute of nodes unreachable from sourcenode are left untouched, and maxdist is set to
the maximum of any previous value and the largest distance recorded in this run. On the other hand, if the -a flag is used, the dist
attribute of an unreachable node is assigned a very large value, and maxdist records the maximum distance found in the component containing
sourcenode.
Any number of sourcenode file pairs may be given. If the last file is missing, stdin is used. All output is written to stdout.
In a typical application, dist and maxdist can drive a downstream calculation of color or some other attribute.
SEE ALSO gvpr(1), gvcolor(1), libgraph(3)
21 March 2001 DIJKSTRA(1)