Write to file 1 random string with 11 at beginning

January 4, 2012 at 22:36:43
Specs: Windows XP
Hi all,
I need to write into file 1 random message like that: "11fklajfakj" in 1 time.
look like: echo "11fjklsjfklsj" > file.txt
I used:
tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs
But I don't know how to add 11 in beginning. I must write this message in 1 time.
Can anybody help me?
Thanks so much.

See More: Write to file 1 random string with 11 at beginning

Report •

#1
January 5, 2012 at 04:15:11
echo -n "11";tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs

Report •

#2
January 11, 2012 at 20:22:47
echo "11`mkpasswd`"

Report •
Related Solutions


Ask Question