read -p "Press any key to continue..."
Thursday, July 17, 2014
Vim - search and replace in multiple files
You can use :argdo command once you have opened multiple files using for example vim -p file1 file2 etc. Example:
:argdo %s/text_to_replace/new_text/gc
Thursday, July 10, 2014
Pipe comand output to scp
If you want to pipe the shell command output to scp, eg. output of ls, you can use the following example:
scp $(ls -1 *.txt | head -1000) user@host:directory
Subscribe to:
Posts (Atom)