hi,
I have in a directory a big number of files and their translation in other languages. A typical name of a file is xx_xxxx_EN.html and its translation xx_xxxx_IT.html . I want to extract a 2 column txt file with the names of the files. For example for the english - italian language pair:
xx_xxxx_EN.html xx_xxxx_IT.html
---------- Post updated at 05:37 PM ---------- Previous update was at 05:10 PM ----------
I changed your script and it works!!! Thank you!
#!/bin/bash
for EN_file in *.en.html
do
IT_file=$( echo "${EN_file}" | sed 's/_\.en\.html/_\.it\.html/g' )
echo "${EN_file} ${IT_file}" >> output.txt
done
Unfortunately I tried to run the scripst but does not work. These scripts recplace the .en.html with the it.html. The problem is that There are files only in one language. For example the en_david_en.html is only in english and not it italian. I don't want this file in my list.
Thank you in advance.