Search Results

Search: Posts Made By: cristalp
7,023
Posted By cristalp
bc scale problem
Dear Experts,

I want to use bc to do some multiplication and return me a value with number of decimal places defined by myself.

For example:


echo "scale=10; 1.65*7" | bc




returns...
19,142
Posted By cristalp
Thanks Tyler. Now I understand. Thanks for the...
Thanks Tyler. Now I understand. Thanks for the excellent explanation!
7,290
Posted By cristalp
check if multiple folders exist
I want to check if some directories with common prefix exist under current directory with bash, say, I have dictories like:

dirct_1
dirct_2
dirct_3
...


in the current directory. I did:
...
19,142
Posted By cristalp
Thanks Ahamed!! It works. But then, if I just...
Thanks Ahamed!! It works. But then, if I just want to print one line, say 9th line.

awk 'NR =9 {print}' FILENAME


gave me all the lines in the file. How can I just print one specific line...
19,142
Posted By cristalp
AWK print line no.x to line no.y
I am learning AWK and quite fresh now.

My Q: How could I use AWK to print lines from e.g. first to 8th, or 5th to 9th?

Thanks!!!
Showing results 1 to 5 of 5

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