I have a file which contains lots of text (comment field). I would like to parse through the comment field which can be up to 255 characters long and look for anything that seems to resemble, say, a credit card number or customer account number, etc. and replace the numbers with asteriks (*).
... (9 Replies)
Is anyone know some scripts to generate random number without repetition using bash; for example generate 10 different random numbers.
Thanks (8 Replies)
i want to need script..
source.txt
/home/user1/public_html/test3
/home/user90/public_html/test9
.
.
.
/home/user650/public_html/test000
read source.txt and cd /home/user**/public_html/***
and there is 1.txt, 2txt ~~25.txt
and select 6 text files randomly among the... (4 Replies)
Hello,
I need to take a random word from a flat text file with words in it seperated by spaces.
The code I am using, always gives me the first word. Can anyone please shed some light on this. Here's my code.
Thanks
echo table roof ceiling jar computer monitor keyboard carpet >... (5 Replies)
I have a text file with hundreds of lines, i wish to run a script and reads a random line to pass it to another command line such as:
for line in `cat file |grep random line`; do echo $line |mail my@example.com ; done
thank you (6 Replies)
Hi,
I am trying to extract lines from a text file given a text file containing line numbers to be extracted from the first file. How do I go about doing this? Thanks! (1 Reply)
Hi,
I am new to Unix/ksh script and will like to check how do I retrieve just the count of '258' in the last line in a text file ?
There will be this "TRL" appended with number of count at the last line in a text file .
TRL0000000258
var=`grep 'TRL' $HOME/folder/test.txt | wc -l`
... (12 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
Write a shell script that will take the sum of two random number?
Ex: Random n1 +Random n2 = result
i tries to write it but i had some dufficulties
... (3 Replies)