8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
so, the first line of bash, perl, python, ruby, and similar languages must contain the path to the interpreter...i.e. #!/bin/perl, or #!/bin/python. so in the case of a perl script, for instance, a perl script cannot and will never run if the perl program is not installed/present on the system. ... (9 Replies)
Discussion started by: SkySmart
I have to write a C Code to read a word from file and Keep track of the number of word occurrence in each line and total in the file. Maintaining total count is easier but maintaining per line count is what I am struggling to achieve. I thought of maintaining linked list... (3 Replies)
Discussion started by: anand.shah
3. Shell Programming and Scripting
I am trying to implement a simple shell script program that does not make use of ls or find commands as they are quite expensive on very large sets of files. So, I am trying to generate the file list myself. What I am trying to do is this:
1. Generate a file name using shell script, for... (2 Replies)
Discussion started by: shoaibjameel123
4. UNIX for Advanced & Expert Users
Hi searched hi and wide for this with no luck.
Maintaining a bash script that
#does some stuff like setting env etc.
#Now I want to exit with the value of $err however $err is re-initialised to 0 on exiting the function
... (3 Replies)
Discussion started by: StevePr
5. Shell Programming and Scripting
I am trying to validate an ip address, based on what is in the netmasks file,
I have a function that checks the values of the ip against the network and netmask, this returns a 1 if the ip doesn't match and a 0 if the IP does.
#Validate IP Network#... (1 Reply)
Discussion started by: eeisken
6. Shell Programming and Scripting
how can i check for an unix data structure (1 Reply)
Discussion started by: jhuapaya
7. Shell Programming and Scripting
I'm a newbie here can you please help me reading this code. because i'm confuse.
into bash_temp -- is this... (3 Replies)
Discussion started by: nikki1200
8. UNIX for Dummies Questions & Answers
I recently downloaded the Linux kernel source code, added them all to a project in MS VC++ and plan to read through it so that I can improve the way I code, read/understand a large code database and hopefully contribute something to the development of the Linux OS.
I have taken a... (3 Replies)
Discussion started by: clavian