 are also making alternative arrangements for those stuck.
"But only the army and police can help in several cases,” said Mohit Gupta, chief business officer (holidays), MakeMyTrip.
At the beginning of the summer season this year, Uttarakhand and Himachal Pradesh were expected to lead domestic tourism, attracting more visitors than Kashmir, which was the top destination last year.
Both religious and leisure travellers throng destinations in these states around this time of the year.
“The tourism industry has gone for a toss.
Hotels are flooded and busy evacuating people,” said Indian Association of Tour Operators President Subhash Goyal.
Though the floods have come towards the end of the summer travel season, the local economy has been severely hit.
“The situation is grim and the tourists who have booked their tours have postponed their visit.
"Those who were travelling with us are safe. Most of them have returned,’’ said a senior Cox and Kings spokesperson.
A frosty morning at the labyrinth.
Each moment holds the power of promise for you to exert your individuality, to expand in wisdom and to reflect only good. Universal intelligence is always working. Begin with a promise to yourself that you will co-create with it. Gregge Tiffen (The Significance of Beginning – January, 2007)
When things are chaotic in life, whether personally or in the bigger world beyond, I sometimes forget that while I do not control the event, I do control me. As 2016 continues to march along, I’m finding the need to use that knowledge front and center in my life.
I made a decision a few weeks back that isn’t turning out as I hoped it would. I say ‘hoped’ because the truth is that my gut told me otherwise and my intuition was to make a different decision. I didn’t listen. Ouch!
And with the ‘ouch’, hallelujah! The situation is providing rich territory to exercise and, hopefully, strengthen my tolerance muscle. I’m rediscovering just how important my home environment is to me and just how intolerant I am when I allow that be disrupted.
I’m challenged in this situation to ‘reflect only good’. Just what is ‘good’, I’ve wondered. I’ve found myself expressing my ‘cranky’ side, rather than feeling and expressing the kindness I need and want to express, the kindness that brings me peace and contributes to a higher vibration on the planet.
I’ve come face to face with just how ill equipped I am to consistently ‘exert my individuality’ in ways that are positive and contribute to creating the world I want to create. It’s easy to say “be the change you want to see in the world”. It’s not always easy to do what’s required to be that change.
That doing includes controlling my internal chatter. If I let it have its way, the ‘blah, blah, blah’ in my head does not support me either grace or tolerance. Au contraire, it fuels intolerance and crankiness.
Universal Intelligence is definitely at work, pointing the way to where I need to expand my capability. It does so in all of the events of our lives. Even those we might call ‘mundane’ are ripe with learning opportunity. That is just what makes the journey the fabulous ride that it is, and this perspective is key to controlling my world.
The breathtaking visual beauty of Universal Intelligence.Q: awk based solution for summing the rows of multiple files I have several files which look like
file1.dat:
1 1
1 3 4
5 9 10 11

file2.dat:
3 0
8 9 0
3 9 2 4

typically with many more rows (with each row containing one less column than the previous row). I devised a hybrid bash/awk script to sum the rows of each file, e.g. using the above as an example:
out.dat:
4 1
9 12 4
8 18 12 15

The script works as expected but is quite slow. Well over 30 minutes for 100 files each with 10000 rows on my machine. The script seems to spend most of the time collecting the nth row from all the files. Is there a way to perform my operation simply by passing file*.dat to the awk command (see below)?
#!/bin/bash
ROWS=$1; shift
OUT_FILE=$1; shift
IN_FILE=("$@")

for i in `seq 1 1 ${ROWS}`; do
    # Get ith row from all input files
    for j in "${IN_FILE[@]}"; do
        tail -n+${i} ${j} | head -1 >> "temp.dat"
    done
    # Sum the rows 
    awk '{for (j=1;j<=NF;j++) a[j]+=$j} END {for (j in a) printf a[j] " "}' temp.dat >> ${OUT_FILE}
    echo >> ${OUT_FILE}
    rm temp.dat
done

Script usage based on the above example:./RowSums.sh 3 out.dat file*.dat

A: Using any paste and any awk:
$ cat tst.sh
#!/usr/bin/env bash

paste "${@}" |
awk -v numFiles="$#" '{
    numFldsPerFile = NF / numFiles
    for ( outFldNr=1; outFldNr<=numFldsPerFile; outFldNr++ ) {
        sum = 0
        for ( fileNr=1; fileNr<=numFiles; fileNr++ ) {
            inFldNr = outFldNr + (fileNr - 1) * numFldsPerFile
            sum += $inFldNr
        }
        printf "%d%s", sum, (outFldNr<numFldsPerFile? OFS : ORS)
    }
}'


$./tst.sh file1.dat file2.dat
4 1
9 12 4
8 18 12 15

Hopefully the descriptive variable names and explicit inFldNr calculation make it clear what that's doing.

A: The following awk script can pretty much replace the whole shell script:
# cat rowsum.awk
FNR <= rows {
    for (i = 1; i <= NF; i++)
        sum[FNR,i] += $i
}
END {
    for (i = 1; i <= rows; i++) {
        for (j = 1; j <= rows + 1; j++) {
            printf "%s ", sum[i, j]
        }
        printf "\n";
    }
}

Example:
% awk -f rowsum.awk -v rows=2 file*.dat
4 1
9 12 4
% awk -f rowsum.awk -v rows=3 file*.dat
4 1
9 12 4
8 18 12 15

This should be faster than going through all files again and again for each row.
Note: I'm assuming the nth row has n+1 columns. If not, save the number of columns for each row (e.g., cols[FNR]=NF) and use that in the final loop.

Another, more memory-efficient option could be to use paste to get all the relevant lines from each file together:
% paste -d '\n' file*.dat                                                                                                                                                
1 1
3 0
1 3 4
8 9 0
5 9 10 11
3 9 2 4

And then use awk on them:
# cat rowsum-paste.awk
NR > 1 && NF!= prevNF {
    for (i = 1; i <= prevNF; i++) {
        printf "%s ", sum[i];
        sum[i] = 0
    };
    printf "\n"
}
{
    for (i = 1; i <= NF; i++)
        sum[i] += $i;
    prevNF = NF
}

% (paste -d '\n' file*.dat; echo) | awk -f rowsum-paste.awk
4 1 
9 12 4 
8 18 12 15 

This awk code sums lines until the number of fields changes, and then prints and resets the current sums. The extra echo is to change the number of fields at the end and trigger the final print, which can also be done with the printing code duplicated in an END block.

A: Using awk to output a tab-delimited data set consisting of the row and column indexes in the first two fields, and the data value at that position as the third field, for all files:
awk -v OFS='\t' '{ for (i = 1; i <= NF; ++i) print FNR, i, $i }' file*.dat

Sorting the data and using GNU datamash to do a crosstab operation on the above-generated data, summing the elements that occur at the same (row,column) index (the --filler '' option makes datamash output nothing in place of N/A for missing fields):
sort -n | datamash --filler '' crosstab 1,2 sum 3

Trimming off the added header on each column, and the initial column with the line numbers that datamash outputs: