10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have column 5 in a file which contains string like this for ex.
So I do by
data = )]
ValueError: invalid literal for int() with base 10: 'R'
Can someday tell me how to convert this column into int successfully.
Thank You in... (7 Replies)
Discussion started by: rossi
I have a string containing 2 integers separated by /, for example 12/8 or 8/6 am want to store the numbers in two integers. (3 Replies)
Discussion started by: kristinu
3. Shell Programming and Scripting
I have the following requirement.
There will be following text/line in a file (eg: search-build.txt)
I need to update the incremental build number (eg here 007) every time I give a build through script. I am able to search the string and get... (4 Replies)
Discussion started by: drwatson_droid
I want to write a function which takes int as input and returns a string like this.
char GetString(int iNo)
printf("Enter... (1 Reply)
Discussion started by: atharalikhan
from the manual
listen(2): listen for connections on socket - Linux man page
It has a parameter called backlog and it limits the maximum length of queue of pending list.
If I set backlog to 128, is it means no more than 128 packets can be handled by server?
If I have three... (3 Replies)
Discussion started by: sehang
6. Shell Programming and Scripting
hello guys i m new to shell scripting and can't find out why this structure is not right
I m guessing this happens because $LINESUM is a string . so how can i do this ?
i want my script to do so many loops as the number of the lines of one custom file.
echo give me path name... (5 Replies)
Discussion started by: xamxam
i got a string E.g "12.67"
how do i convert it into a int so that
any one can guide me along? (8 Replies)
Discussion started by: xiaojesus
8. Shell Programming and Scripting
i'd like to implmeent emergency shutdown script in case our AC dies and the temperature rises too high.
I can get core temperatures with:
sensors | grep Core | cut -c15-16
How can I check if any of the cores is above eg. 80 (that's C of... (2 Replies)
Discussion started by: zapp0
9. UNIX for Dummies Questions & Answers
I want to create a file with permissions for read, write, and execute to everybody using C, so I write this code:
fileDescriptor =... (2 Replies)
Discussion started by: csnmgeek
10. Shell Programming and Scripting
i want to read a text file whose content(single line) will be a number like 1 or 2 or 3 ..... what i want to do is to read the file and increment the content of the file, using unix scripting.
Senthil Kumar Siddhan. (2 Replies)
Discussion started by: senthilk615