I have followed your post and used :%s/\\u\(\x\{4\}\)/\=nr2char('0x'.submatch(1),1)/g
to translate unicode escape sequences.
However I have to open the file and need to press escape and paste your command. I wanted to write a bash script which will open a file and execute this command automatically. I tried doing this as shown in below but its not working..
script.sh:
# usage bash script.sh file1.csv
#!/bin/bash
cat $1 :%s/\\u\(\x\{4\}\)/\=nr2char('0x'.submatch(1),1)/g
Can you please help how to write a bash script to open a file and do this translation.
Thanks