Search Results

Search: Posts Made By: ajp7701
3,447
Posted By RudiC
Sorry, of course $FN - I renamed the variables...
Sorry, of course $FN - I renamed the variables but missed that one. Rats!
3,447
Posted By RudiC
Then, in order to sort of keep control over the...
Then, in order to sort of keep control over the loop count, don't deploy single file name variables but have them all in one var. No error checking is done (yet). Try
read ALLFILES
for FN in...
3,447
Posted By RudiC
Are you aware that files may exist that have...
Are you aware that files may exist that have spaces in their file name?
Wouldn't a loop lend itself as a solution to this request, and an array with the file names?
4,605
Posted By RavinderSingh13
Hello ajp7701, I can see you said you are...
Hello ajp7701,

I can see you said you are looking for exact string sysALive, but you showed in output as 3 when it comes sysAlive, so keeping this in mind and considering that it is not a typo....
2,349
Posted By Aia
awk '$3 !~ "999"' input.file > output.file ...
awk '$3 !~ "999"' input.file > output.file

Fixing yours:

awk '{if ($3 != "999") print $0}' INPUT.TXT > OUTPUT.TXT
2,349
Posted By RudiC
That has many an syntax error plus a logical one....
That has many an syntax error plus a logical one. Correcting the syntaxes awk '{if ($3==999) print $0}' fileyieldseee fff 999 555
aaa bbb 999 222 and shows the logical one. Try awk '$3!=999' file...
6,579
Posted By Chubler_XL
You could try this in bash: #!/bin/bash ...
You could try this in bash:

#!/bin/bash
while true
do
while read pid mem
do
[ -z "${orig[pid]}" ] && orig[pid]=$mem
if [ $((orig[pid]*2)) -lt $mem ]
then
...
Showing results 1 to 7 of 7

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