I have input like
using these values, i need to divide first number with second number, means 225/2198, and using the value i'm trying to sort it. After sort i need first and "Unload" values, so i have written like this.
Output:
from the output i need first line (0.0218307 57 2611) and (0 Unload: 2610000
) lines. How to write a command for that?
I have tried something like this,
It is giving only the 1st line. So how to reach that.
Last edited by Scott; 11-04-2011 at 08:22 AM..
Reason: Removed formatting; added code tags
Good day to everyone.
I've built an libxml2 from sources. I can not install it in a proper way with using repository due to I have not sudo privilegies. I've got a set of .lo files. Is there a simple way to merge it in one .so or .a file? (2 Replies)
I am extracting two pieces of information from the following file: /proc/cpuinfo, that I need to merge into one report.
The first command:
grep -i processor /proc/cpuinfo | awk '{print $1$2,$3}'
yields:
processor: 0
processor: 1
processor: 2
processor: 3
The second command:
grep -i... (4 Replies)
Hi all,
I'm new in this forum.
I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli".
The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory.
I know that the first are called HACMP for AIX... (0 Replies)
how to merge two file, i have 2 input file; file_1 & file_2, so i want the output file_3 as below
file_1
NAME
aa
111
222
bb.txt
111
222
cc
111
111
dd
222
ee
111
222 (4 Replies)
hi,
i've two files whcih i need to merge in below format.
File1-
DEFINE
lc_driver CHAR(3)
INITIALIZE gr_XXX_MAIN_TABLE_XXX.* TO NULL
{
EXECUTE p_XXX_MAIN_TABLE_XXX_ins USING gr_XXX_MAIN_TABLE_XXX.*
}
File2 -
# field1
LET table1.field1= (8 Replies)
how can i merge follwoing process to one...
tail +5 rawdata_AAA_1.txt_$$ | grep -v "^$" >> rawdata_AAA_2.txt_$$ For discarding first 5 rows and deleting null rows
awk '!/^ /{if(a) print a; a=$0}/^ /{print a}' rawdata_AAA_2.txt >> rawdata_AAA_3.txt For merging record if it split into 2 rows... (8 Replies)
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Hello all,
i've written a small piece of code that will read commands from standard input and executes the commands.
Its working fine and is execting the commands well. Accepting arguments too. e.g
#mkdir <name of the directory>
The problem is that its not letting me change the directory i.e... (4 Replies)