Wednesday 15 January 2014

shell - terminal formatting issue after vim -


I had ~ 3000 files in a directory named "build.xml", and I ./-name build.xml | Xargs vi

I then left vi, and I think the formatting was interrupted at the terminal. I do not see any keyboard input, and when I return, I think new characters are eaten. [Fri Jun 21 20:41: 58: ~] $ [Fri Jun 21 20:41 41: 58: ~] $ [Fri Jun 21 20:41:41: 58: ~] $ [Fri Jun 21 20:41:41: ~ ~ ] $ [Fri Jun 21 20:41: 58: ~] $ [Fri Jun 21 Jun 20: 41: 58: ~] $ [Fri 21 Jun 20:41:41: $] $ [Fri Jun 21 20:41: 59: ~] $ -Bash: KS: Command not found [Venus 21 June 20: 45: 08: ~] $

What's going on here and how to fix it?

>

First of all, you can always reset your terminal by typing in your terminal I Reset . But to avoid this issue, try using xargs instead of piping instead of $ () like this:

  vi $ (search ./name Build.xml) Find   

or

  vi `./-name build.xml`    < Click on / html

No comments:

Post a Comment