Joining two files parallely using awk:
========================
awk 'NR==FNR{a[NR]=$0; next} {print a[FNR], $0}' file1.txt file2.txt
Changing extension of all .txt to .sh:
========================
for i in *.txt;do mv "$i" "${i%.txt}".sh;done
UNIX/Linux problem solving blog, Good for beginners and experts. UNIX interview preparation guide. Top Unix interview questions and answers. awk,sed,vi shell,perl solutions of Unix problems.
1 comment:
It was very nice article and it is very useful to Linux learners.We also provide Linux online training
Post a Comment