10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have 2 files
$ cat tmp
A1 File1a B1 File1b
A2 File2a B2 File2b
A1 File1a B3 File3b
$ cat tmp1
A2/B2 File10 (1 Reply)
Discussion started by: senhia83
2. Shell Programming and Scripting
I need to count the number of errors associated with the two words occurring in the file. It's about counting the occurrences of the word "error" for where is the word "index.js". As such the command should look like. Please kindly help. I was trying: grep "error" log.txt | wc -l (1 Reply)
Discussion started by: jmarx
How can I choose randomly the row numbers of my file in awk? (4 Replies)
Discussion started by: Homa
4. Shell Programming and Scripting
I'm trying to create a script that will print random numbers with length of three.
Below is the expected out.
thanks (4 Replies)
Discussion started by: reignangel2003
5. UNIX for Dummies Questions & Answers
Hi there folks,
for an exercise for my pupils (you know i am always thinking of them!) i need to randomly re-arrange the words (blank space separated) in a sentence (a line in a textfile). Any inspiration??
Txk so much. (9 Replies)
Discussion started by: eldeingles
6. Shell Programming and Scripting
Hi I have 100 files in my directory.
Please help me how to do in Unix or any other scriptin lanuages.
I want to replace all occurances of "goutham" to goutham_ind ONLY if the file contains the word "goutham" with the word "engineer";
for eg----test1 is a file contains the following inf;
goutham... (6 Replies)
Discussion started by: nandugo1
I need to generate and reuse a 5 digit random number every time my program is executed. But the following generates random numbers every time the function is called.
... (12 Replies)
Discussion started by: limmer
8. UNIX for Dummies Questions & Answers
I have a file where all the lines are sorted and uniq.
A part of it looks like
AES (3 Replies)
Discussion started by: sickboy
can any one tell me how to create integer random no between 10 to 40 in C language.When i m using random() or rand() functions they r creting some
long int which is not required (5 Replies)
Discussion started by: useless79
10. Shell Programming and Scripting
I am wondering how to create a Random Password of 8 characters for a user. It has to be run in a script.
Also, The user have to be asked to change his/her password the first time they login.
I tried using genPass but seems like my system doesn't support that command.
For... (1 Reply)
Discussion started by: bashirpopal