10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Here's an example of what I my issue, a file list.txt, which looks like:
a
b
c
d
e
I have been trying to use the following code to simply print the list using awk and next:
awk 'FNR==NR{a=$1;next}{print a}' list.txt
this give no output, even though I would expect it to type out... (5 Replies)
Discussion started by: hexy
5 Replies
2. Linux
I am getting some values from a file and putting them in an array..but the null strings are not getting passed to the array. So during printing the elements ,the null string is not showing in the output. during array size calculation it is also excluding null.Please let me know how to do it.
# cat... (2 Replies)
Discussion started by: millan
2 Replies
3. Shell Programming and Scripting
Hello ,
I have a file : RestartSession.txt with the below contents :
Backup p203pcrw01_OS_Weekly Failed full 10/11/2015 10:00:07 PM 1444572007 10/11/2015 10:26:23 PM 1444573583 0:00 0:26 18.76 1 08 0 0 0 2 2 180668 ... (4 Replies)
Discussion started by: rahul2662
4 Replies
4. Shell Programming and Scripting
Hi,
I have the following code which is giving error mentioned below. Please can you support on this. Also suggest how can we access all the items against single vasservicename in circlename array,i.e, vasservicename say MTSTV will be available to all circles which are mentioned in the array... (2 Replies)
Discussion started by: siramitsharma
2 Replies
5. Programming
I have a code snippet here that is supposed to vary values of certain parameter values:
<script type="text/javascript">
// dynamic array of which its ultimate size is unknown
// an array of arrays, each consisting of one variation
var variations = ;
// parameters of how to create a... (0 Replies)
Discussion started by: figaro
0 Replies
6. Shell Programming and Scripting
So i have used arrays for a while now but I just notice in one of my arrays when using an array with 9+ items in it that after running a for loop on the array it was replacing the first array with what ever was last and I cant figure out why.
Here is my code.
#!/bin/bash
vm=( 0 1 2 3 4 5 6... (3 Replies)
Discussion started by: snptuning
3 Replies
7. Shell Programming and Scripting
Hi friends,
I m trying to write small script in awk alone.
And I have tried below logic for one of my automation - taking the first column of the file in array
and will read in for loop for each time when i grep the array value in the same file
I should get complete output whichever is matching... (3 Replies)
Discussion started by: Shahul
3 Replies
8. Shell Programming and Scripting
Hi guys,
I'm a scripting noob in need of some help :)
I am creating a script that checks the filesystems and will alert based upon if the percent full is greater than the threshold set.
The problem that I am having is that when I set the 'filesystem' variable, all of the output is treated as... (12 Replies)
Discussion started by: tank126
12 Replies
9. Solaris
Hello,
I have a T3 array connected to a V880 running Solaris 9.
There are two volumes currently configured: v1 and v2.
There are two file systems on the box: /a1 and /a2.
I'm getting ready to re-build volume v1 to add a hot spare. But because I did not set the array up originally I want... (1 Reply)
Discussion started by: agcodba
1 Replies
10. Shell Programming and Scripting
Could one of you, please, provide some input regarding my problem below and it is as follows:
I have 2 files that I need to make sure are identical before processing:
First, I sort both files
Second, I do a diff file1 file2 > File 3
This provides me with the difference.
Now, I need to... (6 Replies)
Discussion started by: ddedic
6 Replies