Search Results

Search: Posts Made By: psalas
3,734
Posted By psalas
List directories and files
I want to count how many levels there are under a directory. I repeat level.

Also how i count only all the files in a directoy ( all files of all directories of all leves down!)

and how can i...
0
Dsd
3,432
Posted By psalas
Dsd
Does anyone here knows DSD scripting language?

How i read all files from a directory? I must use readdir in a while loop but i don;t know how? Help?
3,556
Posted By psalas
Thank you men
IT WORKED! THANKS .finally i managed to do it. God bless you
3,556
Posted By psalas
thanks
thank you men but the first code

sum=0
for s in $seira; do
sum=`expr $sum + $s`
done

this is in the while loop or it is appart. When will it end?
3,556
Posted By psalas
string with blank spaces
I have a file that has dates like this:
date FINAL_RESULT; 7
date FINAL_RESULT; 2
date FINAL_RESULT; 5

With this command: seira=`cut -f2 -d\; tes.txt` i take the date FINAL RESULTs and i store...
1,746
Posted By psalas
hallo
I hope you haven't forgotten me, because i am in a big need right know
1,746
Posted By psalas
Ok But
I have a file that has dates like this:
date FINAL_RESULT; 6
date FINAL_RESULT; 3
date FINAL_RESULT; 8

With this command: seira=`cut -f2 -d\; tes.txt` i take the date FINAL RESULTs and i store...
1,746
Posted By psalas
end of line
So how we symbolise the end of line in:
while [ $seira != "" ] . seira is a string that has blank spaces between the characters. I want to read it with while until end of line. how we symbolise it?...
1,746
Posted By psalas
Space Symbolism
------------------------------------------------------------------------
Can please someone help me
First is this correct: while [ $string != "" ] how we symbolise space? I mean is "" correct?

...
4,856
Posted By psalas
space
how you quote space in cut -d with a delimeter
4,856
Posted By psalas
another issue
First is this correct: while [ $string != "" ] how we symbolise space


and this var=`cut -f1 -d\"" $string` how we symbolise the space or blank character here?
4,856
Posted By psalas
i do this but
I am giving th commands not from shell but within the script. When it enters while it stops and when a press a key it only prints the body o f while. It doesnt execute nothing
4,856
Posted By psalas
not exactly
something is not working could someone fix the problem with this solution:
while read seira
do
sum=0
sum='expr $sum + $seira'
echo $sum
done
4,856
Posted By psalas
Ok But
Thank you but this is my last option. I would like an option with while an d the read command to learn better manipulate strings.Thats why. Can you or anybody else suggest anything else? Withe while...
4,856
Posted By psalas
string manipulating
I have a file like this:
Tue Apr 15 10:41:47 MDT 2008 FINAL RESULT; 6
Tue Apr 15 10:41:47 MDT 2008 FINAL RESULT; 2
Tue Apr 15 10:41:47 MDT 2008 FINAL RESULT; 5
With this command seira=`cut -f 2...
14,223
Posted By psalas
Thanks
I have tested and it works. Really great thinking of you. How you know so much about unix all of you people? You are doing a great job in this forum
14,223
Posted By psalas
expr syntax
HELLO i have a problem i need to do this equation:

final_result=[result1 + (result2/2)]*1.5. I am using expr like this:

FINAL_RESULT=`expr (($RESULT1 + $RESULT2 / 2) \* 3) / 2` but it is...
1,400
Posted By psalas
Reading from file
HELP! I HAVE A PROBLEM. I HAVE a file like this:
date FINAL RESULT: 6
date FINAL RESULT: 4
date FINAL RESULT: 8
...

I want to read the file and make the average of the Final Results(6,4,8...
32,706
Posted By psalas
HELP! I HAVE A PROBLEM. I HAVE a file like this: ...
HELP! I HAVE A PROBLEM. I HAVE a file like this:
date FINAL RESULT: 6
date FINAL RESULT: 4
date FINAL RESULT: 8
...

I want to read the file and make the average of the Final Results(6,4,8...
Showing results 1 to 19 of 19

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