Search Results

Search: Posts Made By: ninjafish
3,318
Posted By ninjafish
i made that change, now I am getting 2082772:...
i made that change, now I am getting 2082772: syntax error in expressions (error token is "2082772")
brokeeen

the number 2082772 is in the text file which I am trying to use for my if statement....
3,318
Posted By ninjafish
Well the above I took from my dfcap.txt file had:...
Well the above I took from my dfcap.txt file had:

Used
2082764

And if this will be reading through, but since the numbers won't always be the same (because files get added, and the total user...
3,318
Posted By ninjafish
Those small details I am not concerned about....
Those small details I am not concerned about. Right now I am just trying to get the proper syntax which will accept my if statement and return a value. I can clean up lack of spaces, etc, when I get...
3,318
Posted By ninjafish
Right now this is what comes out for my...
Right now this is what comes out for my dfcap.txt:

Used Available FileSystem
20082764 982120 /dev/mapper/live-rw

Assuming I want to compare $capacity to the firs collumn numbers, which are...
3,318
Posted By ninjafish
Will that work if I am trying to compare it to...
Will that work if I am trying to compare it to the numbers?
Or would I need to go with

while read 1 2 3 4 5 6

or will the first one work fine for it?
3,318
Posted By ninjafish
I'm not to great with loops atm. I am wondering...
I'm not to great with loops atm. I am wondering what

while read A B C D E F G


will do?
3,318
Posted By ninjafish
ya, sorry for the misspelling ni the code,...
ya, sorry for the misspelling ni the code, however the part i'm having difficulty with is after

if ($cap -gt [ ])

i don't know what should go into those square brackets. I don't...
3,318
Posted By ninjafish
Can I use columns from text files in if statements?
Currently I am stuck on my program for my if statement, as I do not no how to get a specific collumn of text to check against my variable.


df -k /home/* > fd.txt
cat df.txt | tr -s " " | awk...
2,254
Posted By ninjafish
ok so du -skh /home/* works better than what I...
ok so du -skh /home/* works better than what I was using, but the part of it i'm not understanding is how to implement it into a loop. The two lines I posted were to copy the user names for the...
2,254
Posted By ninjafish
Using a loop with cut
I don't know if I described this right, but I am new to scripting and this is giving me a little bit of trouble, but I will explain what I am trying to do.

Each time this is run, I want it to grab...
Showing results 1 to 10 of 10

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