1. Generar un archivo .txt:
touch palabras_aleatorias.txt

2. Generar una lista con 12 palabras y los números correlacionados:
echo "Palabra 1: 1" >> palabras_aleatorias.txt
echo "Palabra 2: 2" >> palabras_aleatorias.txt
echo "Palabra 3: 3" >> palabras_aleatorias.txt
echo "Palabra 4: 4" >> palabras_aleatorias.txt
echo "Palabra 5: 5" >> palabras_aleatorias.txt
echo "Palabra 6: 6" >> palabras_aleatorias.txt
echo "Palabra 7: 7" >> palabras_aleatorias.txt
echo "Palabra 8: 8" >> palabras_aleatorias.txt
echo "Palabra 9: 9" >> palabras_aleatorias.txt
echo "Palabra 10: 10" >> palabras_aleatorias.txt
echo "Palabra 11: 11" >> palabras_aleatorias.txt
echo "Palabra 12: 12" >> palabras_aleatorias.txt

3. Generar palabras aleatorias:
shuf -n 12 /usr/share/dict/words >> palabras_aleatorias.txt

4. Reemplazar las palabras por las palabras aleatorias:
sed -i 's/Palabra 1:/'$(head -1 palabras_aleatorias.txt)'/g' palabras_aleatorias.txt
sed -i 's/Palabra 2:/'$(head -2 palabras_aleatorias.txt | tail -1)'/g' palabras_aleatorias.txt
sed -i 's/Palabra 3:/'$(head -3 palabras_aleatorias.txt | tail -1)'/g' palabras_aleatorias.txt
sed -i 's/Palabra 4:/'$(head -4 palabras_aleatorias.txt | tail -1)'/g' palabras_aleatorias.txt
sed -i 's/Palabra 5:/'$(head -5 palabras_aleatorias.txt | tail -1)'/g' palabras_aleatorias.txt
sed -i 's/Palabra 6:/'$(head -6 palabras_aleatorias.txt | tail -1)'/g' palabras_aleatorias.txt
sed -i 's/Palabra 7:/'$(head -7 palabras_aleatorias.txt | tail -1)'/g' palabras_aleatorias.txt
sed -i 's/Palabra 8:/'$(head -8 palabras_aleatorias.txt | tail -1)'/g' palabras_aleatorias.txt
sed -i 's/Palabra 9:/'$(head -9 palabras_aleatorias.txt | tail -1)'/g' palabras_aleatorias.txt
sed -i 's/Palabra 10:/'$(head -10 palabras_aleatorias.txt | tail -1)'/g' palabras_aleatorias.txt
sed -i 's/Palabra 11:/'$(head -11 palabras_aleatorias.txt | tail -1)'/g' palabras_aleatorias.txt
sed -i 's/Palabra 12:/'$(head -12 palabras_aleatorias.txt | tail -1)'/g' palabras_aleatorias.txt

5. Eliminar las palabras repetidas:
awk '!seen[$0]++' palabras_aleatorias.txt > palabras_aleatorias_sin_repetir.txt
1. สร้างไฟล์ .txt: แตะ Random_words.txt 2. สร้างรายการที่มี 12 คำและตัวเลขที่สัมพันธ์กัน: echo "Word 1: 1" >> Random_words.txt echo "Word 2: 2" >> Random_words.txt echo "คำ 3: 3" >> Random_words.txt echo "คำ 4: 4" >> Random_words.txt echo "คำ 5: 5" >> Random_words.txt echo "คำ 6: 6" >> Random_words.txt echo "คำ 7: 7" >> Random_words.txt echo "คำ 8: 8" >> Random_words.txt echo "คำ 9: 9" >> Random_words.txt echo "คำ 10: 10" >> Random_words.txt echo "คำ 11: 11" >> Random_words.txt echo "Word 12: 12" >> Random_words.txt 3. สร้างคำสุ่ม: shuf -n 12 /usr/share/dict/words >> Random_words.txt 4. แทนที่คำด้วยคำ สุ่ม: sed -i 's/Word 1:/'$(head -1 Random_words.txt)'/g' Random_words.txt sed -i 's/Word 2:/'$(head -2 Random_words.txt | หาง -1)'/g' Random_words.txt sed -i 's/Word 3:/'$(หัว -3 Random_words.txt | หาง -1)'/g' Random_words.txt sed -i 's/Word 4:/'$(head -4 Random_words.txt | หาง -1)'/g' Random_words.txt sed -i 's/Word 5 :/'$(head -5 Random_words.txt | tail -1)'/g' Random_words.txt sed -i 's/Word 6:/'$(head -6 Random_words.txt | tail -1)'/g ' Random_words.txt sed -i 's/Word 7:/'$(head -7 Random_words.txt | tail -1)'/g' Random_words.txt sed -i 's/Word 8:/'$(head - 8 Random_words.txt | หาง -1)'/g' Random_words.txt sed -i 's/Word 9:/'$(head -9 Random_words.txt | หาง -1)'/g' Random_words.txt sed -i 's/Word 10:/'$(head -10 Random_words.txt | tail -1)'/g' Random_words.txt sed -i 's/Word 11:/'$(head -11 Random_words.txt | หาง - 1)'/g' Random_words.txt sed -i 's/Word 12:/'$(head -12 Random_words.txt | tail -1)'/g' Random_words.txt 5. ลบคำที่ซ้ำกัน: awk '! เห็น [$0]++' Random_words.txt > Random_words_without_repeating.txt
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence