Search Results

Search: Posts Made By: ajp7701
3,321
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,321
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,321
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,539
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,294
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...
2,294
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
6,543
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 01:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy