I'm not sure I fully understand what you're doing, but with IDs in a file to be transferred - unaltered, as far as I can see - into a .js script (which, btw, seems to be growing in every loop?), why do you do this via shell variables, arrays, operations and not with simple text tools / operations?
I wasn't talking about file size, but you seem to be adding (NOT replacing!)
in every loop, making employee_Id_count.js look like
in the first run,
in the second etc.
*nix has a wealth of text tools to manipulate, extract, modify, adapt text files, to name a few of which : awk, sed, cut, sort, etc. (see e.g. the coreutils package).
If you post sample data like the EmployeeId_distinct.txt file and how it should fit into the employee_Id_count.js, people in these fora will likely come up with ptoposals on how to do it.
Thanks to all you guys about posix compliance I have learnt an enormous amount over the last few days.
I have written a program that is an Egg Timer with simple animation.
I now realise how sophisticated 'bash' is compared to full posix compliance.
The code below has passed all of the tests from... (11 Replies)
I want to create a program that creates 2 child process, and each of them creates 2 threads, and each thread prints its thread id. I0ve allread done that the outuput isn't the outuput i want.
When a run the following comand "$./a.out | sort -u | wc -l" I have the folowing output
2
$:
It should... (3 Replies)
Hi ,
I am using UNIX network programming Vol1 (by R Stevens) book to learn about IPC.
I would be using HP-UX,Solaris and Linux at my work.
I have sections for POSIX and for System V in that book.
I am quite confused in indentifying those OSs as POSIX or SYstem V.
Can anyone please... (1 Reply)
HI,
When i am configuring php in SUN Solaris. I am getting the below error.
configure: error: Your system seems to lack POSIX threads.
Do i need to install POSIX? If so can somebody let me know where can i download POSIX for Solaris 8?
Thanks, (2 Replies)
Hello !
Let's supose I have a main function in C , and two POSIX threads. I give you an example down :
int main() {
int something;
char else;
void *FirstThread();
void *SecondThread();
..
<start those two pthreads ..>
return 0;}
void *FirstThread() { ... }
void *SecondThread()... (2 Replies)
can somebody explain about the ANSI C vs POSIX. say i was using open and fopen, i know that open is POSIX, and fopen is ANSI C. i read that that POSIX is a system call and ANSI C is like a standard library function. wouldn't the fopen function has to call on open function anyway to open any kind... (2 Replies)