Search Results

Search: Posts Made By: pank29
1,612
Posted By pank29
array and awk
Hi All,

I want to cut a column and put it in an array...
can anyone tell me how to do that..?

Will this work..-->

cat file|awk '{print $1}'|for loop...

here i dont know what to write in...
9,147
Posted By pank29
Thanx... it worked... :)
Thanx... it worked... :)
12,211
Posted By pank29
I used thi --> awk 'NR%2?ORS=FS:ORS=RS'...
I used thi -->

awk 'NR%2?ORS=FS:ORS=RS' file
12,211
Posted By pank29
Now its giving me output like this... ...
Now its giving me output like this...

crmplp1 cmis461 No Online cmis462 No Offline
crmplp2 cmis462 No ...
12,211
Posted By pank29
want to merge two consecutive lines.
Hi All,
I want to merge two consecutive lines.
Currently the output is :-->

crmplp1 cmis461 No Online
cmis462 No Offline...
9,147
Posted By pank29
I used this also... x=`grep -n "Cluster...
I used this also...

x=`grep -n "Cluster Resource Groups ===" test123.txt | cut -d ":" -f1`
y=`grep -n "Cluster Resource ===" test123.txt | cut -d ":" -f1`
a=`echo ${x} + 1 | bc`
b=`echo ${y} -1...
9,147
Posted By pank29
But here i dont know the how many lines there can...
But here i dont know the how many lines there can be after the specific word.
is there something like ... between 2 keyword whatever data found can be sent to the new file...?
9,147
Posted By pank29
How to cut data block from .txt file in shell scripting
Hi All,
Currently i have to write a script.
For which i need to cut a block from .txt file.
I know the specific word that starts the block and ends the block.
Can we do it in shell scripting..?...
95,909
Posted By pank29
Hi All, Currently i have to write a script. ...
Hi All,
Currently i have to write a script.
For which i need to cut a block from .txt file.
I know the specific word that starts the block and ends the block.
Can we do it in shell scripting..?...
Showing results 1 to 9 of 9

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