I got it from this website and it goes something like this:
for i in `cat unusual.txt`; do echo $RANDOM $i; done | sort | sed -r s/^[0-9]+ // > randorder.txt
This is for Linux, but no matter how I alter it I can't get it to work in terminal... Any ideas?
I changed -r to -e and get error message: "sed: 1: "s/^[0-9]+\n": invalid command code ?"
Thanks
for i in `cat unusual.txt`; do echo $RANDOM $i; done | sort | sed -r s/^[0-9]+ // > randorder.txt
This is for Linux, but no matter how I alter it I can't get it to work in terminal... Any ideas?
I changed -r to -e and get error message: "sed: 1: "s/^[0-9]+\n": invalid command code ?"
Thanks