Search Results

Search: Posts Made By: noodlesoup
32,400
Posted By noodlesoup
yeah it's gotten to me. I changed the equation...
yeah it's gotten to me.
I changed the equation to this (same thing just rearranged) and it works. strange!

(($initsize-$zipsize)*100/$initsize)
32,400
Posted By noodlesoup
Rounding off using BC.
Hello again.

I'm trying to use BC to calculate some numbers in a shell script.

I want to have the numbers rounded off to 1 decimal place.
for example:
initsize=1566720
zipsize=4733

I'm...
1,234
Posted By noodlesoup
thanks, haha. I scoured that man page, must...
thanks, haha.

I scoured that man page, must have missed that.

cheers
1,234
Posted By noodlesoup
quick zipping question.
I had a search couldn't quite find anything.

Is there any way of supressing the output of the zip command on screen?
as I want to make a script that zips up a file but doesn't display the...
13,447
Posted By noodlesoup
yeah I'm getting the same error now. it doesn't...
yeah I'm getting the same error now. it doesn't work with the -13 option in comm either. any suggestions?
13,447
Posted By noodlesoup
thanks heaps for the help guys. works just how I...
thanks heaps for the help guys. works just how I wanted :)
13,447
Posted By noodlesoup
thanks for the reply, but i'm still a little...
thanks for the reply, but i'm still a little stuck.
Vgersh99 would you mind rewriting my if statements in there correct syntax for me as i still can't get them working right.

Thanks in advance
13,447
Posted By noodlesoup
OK, this is what I have got now, not srue where I...
OK, this is what I have got now, not srue where I have gone wrong. it says I have a syntax error on line 30; ';;' unexpected? any ideas? I thought these were needed for the case to work

#!...
13,447
Posted By noodlesoup
you are quite the life saver, thank you very...
you are quite the life saver, thank you very much.

Also is there a quick command you can use for a an if statement to see if the files differ?

if [statement here].

I had a look at the cmp...
13,447
Posted By noodlesoup
Bourne Shell script - log for users logging on and off
Hello all, I'm new to shell scripting and want to make a script that I can write to log the users logging on and off the a unix system.

I have had a good look over the past few days to crack it, I...
8,329
Posted By noodlesoup
Shell Script - compression
Hello all, i am a complete beginner when it comes to unix and shell scripting.

I want to be able to compress a file (ff) with a shell script for example the command would look like

compress.sh...
Showing results 1 to 11 of 11

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