This is a one line version of something I used multiple files and commands to achieve before. I got it from an AI. It is printing the output to the console, but that's fine for me to copy from there.
Another Teacher becomes ateacher@hiroshima.jp
awk '{ out=tolower(substr($1,1,1) $2) "@hiroshima.jp"; print out }' name_list.txt
No comments:
Post a Comment