Search Results

Search: Posts Made By: jpkumar10
1,339
Posted By jpkumar10
thanks for the reply it worked..
thanks for the reply it worked..
1,339
Posted By jpkumar10
Need help in finding sum for values in 2 different fields
Hi there,

I have 2 files in following format
cat file_1


Storage Group Name: aaaa
HBA UID SP Name SPPort
------- ...
3,462
Posted By jpkumar10
Thanks scrutinizer. I got the output. I am using...
Thanks scrutinizer. I got the output. I am using Solaris 10.
I was wondering if you could help me if statement. as mention in the code. I want to check if the entered values is numeric and it...
3,462
Posted By jpkumar10
Passing external variable to awk
Hi,

I am trying to write a bash script in which I need to pass a external variable to the awk program. I tired using -v but it not accepting the value.

Here is my sample code.
...
4,611
Posted By jpkumar10
Thanks for the reply....I got the error. I was...
Thanks for the reply....I got the error. I was wondering why the command was not executed even after i specify the path where the command is located. I was able to get the pwd or ls out put.
I am...
4,611
Posted By jpkumar10
Logging in to multiple Linux servers and running the command.
Hi,

I am trying to write a script to run a command on multiple linux based servers and get the o/p. I am using ssh to login. It is a celerra box and EMC NAS product.
I am able login but i am not...
1,909
Posted By jpkumar10
Thanks a lot. I will work on it now. This has...
Thanks a lot. I will work on it now. This has been a great help.
1,909
Posted By jpkumar10
Sorry my bad. I was not clear. 1. I don't want...
Sorry my bad. I was not clear.
1. I don't want (1234+3434+2343.343) to be displayed in my final o/p.
2. I think I had pasted wrong o/p for bbbb. The final tatal for bbbb would be 8120.343
3. I...
1,909
Posted By jpkumar10
Adding column values in a file
Hi,

I am having a file in the following format.

for aaaa
1111 1234
2222 3434

for bbbb
1111 3434.343
2222 2343
for cccc
3333 2343.343
4444 89000
for dddd
...
964
Posted By jpkumar10
Need help in formatting a file.
Hi,

I have a file in the following format.
cat input

name: abcd_ef_1
234:343:343
343:234:343
name : abcdef_2
2343:2343:3434:
w3243:wr43:2343
2343:2343:23343:3432
...
1,741
Posted By jpkumar10
thanks a lot everyone.
Thanks a lot everyone!!!. You have been great help.
1,741
Posted By jpkumar10
substitute in first column
Hi,

I have a file which has multiple columns in and i want to replace first column with : in between them.

input_file

21000012343456 asdf
21000012343478 asd3
21000012343423 asdf...
2,652
Posted By jpkumar10
Need to find a column from one file and print certain columns in second file
Hi,

I need helping in finding some of the text in one file and some columns which have same column in file 1
EG
cat file_1
aaaa
bbbb
cccc
dddd
eeee
fffff
gggg
hhhh

cat file_2...
1,288
Posted By jpkumar10
Printing the lines which are repeating in a files
Hi,

I need to find the lines which are repeating in a file
cat file1
abcdef 23-1
abcdef 24-1
bcdeff 25-0
ttdcfg 26-0
ttdcfg 20-0
bcdef1 25-0
bcdef2 25-0
bcdef3 25-0
bcdef4 25-0
bcdef4...
975
Posted By jpkumar10
Thanks it is working.
Thanks it is working.
975
Posted By jpkumar10
Need help in adding the column to set of lines that match the certain criteria
Hi,

I need help to add a certain values to end of each line in the same file.
Here is my input file
name:aaa
id :123
salary
job
qulification
name:bbb
id :124
salary
job
...
1,112
Posted By jpkumar10
Thank's it is working. You guys rock. # nawk...
Thank's it is working. You guys rock.

# nawk 'NR==FNR { a[$1]=$0;next} {print $0, $3 in a ? a[$3]:"some crap"}' file2 file1
1. aa 1111 1111 "this is a test file "
2. bbb 2222 2222 "you are in...
1,112
Posted By jpkumar10
Thanks for the reply but I not getting the o/p I...
Thanks for the reply but I not getting the o/p I want.

I think i had missed when I asked. In file1 i have no's 1111,2222,3333 in one column and in file 2 i have the same no's 1111,2222,3333 and...
1,112
Posted By jpkumar10
need to add new column for value that is found in other file
Hi,

I am need helping in adding a column to existing file.
For example is have a file with following details

cat file_1
1. aaa 1111
2. bbb 2222
3. ccc 3333


now i have another file...
Forum: Solaris 07-14-2011
11,578
Posted By jpkumar10
saurabh84g thanks for the reply. I am able to see...
saurabh84g thanks for the reply. I am able to see the disk on vxdisk list.
But the thing is When I am trying to initialize the disk using /etc/vx/bin/vxdisksetup -i emcpower65s2 I am
I am getting...
Forum: Solaris 07-13-2011
11,578
Posted By jpkumar10
Unable to add disk to VG group.
Hi,

I am new to solaris administration. I have scan the new EMC SAN disk. I am able to see the disk when i run the powermt display dev=all command o/p. I want to format the disk and add file...
1,653
Posted By jpkumar10
Thanks a lot!! This is amazing.
Thanks a lot!! This is amazing.
1,653
Posted By jpkumar10
Help in creating a text file
Hi,

I need help in creating a file in specific format.
I have following lines in a file
0772
0ECC
0FC8
1080

1081
1082
1083
1084

1085
1086
1087
1088

1089
1,805
Posted By jpkumar10
Need clarification.
I am sorry , I am new to awk programming. I didn't understand what you are doing in the script using associative arrays. Can you write it in bash with comments, it will really help me. I actucally...
1,805
Posted By jpkumar10
Thanks a lot awk 'NF==2{h=$1; array[h]=$2;...
Thanks a lot
awk 'NF==2{h=$1; array[h]=$2; next}{array[h]=array[h] "," $1} END{for(i in array)print i "=" array[i]}'
This did really worked. I didn't know we do all these things in awk. I was...
Showing results 1 to 25 of 26

 
All times are GMT -4. The time now is 08:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy