the diary about awk scp in linux
2017-04-17 17:54
597 查看
talk awk and scp
the awk
the awk is like cut , but it is more powerful , say you have a text file named "haha" , inside it you have structure like this:asha haha 1
peter wawa 2
melme papa 3
so you can get the only first field using: awk "{print $1}" haha.
if you only wanna get the record whose number greater than 2,ie melme papa 3, using :awk "$3>2 {$1':'$2'-'$3}" haha
the scp
scp equals secure copy,it's function like ssh(secure shell),helps you transfer data between remote and local machine.it's usage : scp ~/some.jpg username@187.167.17.18:~/haha.jpg.(from local to remote)or scp usrname@187.167.17.18:~/haha.jpg ~/some.jpg(from remote to local)
相关文章推荐
- the diary for one command application of pipe in Linux
- Somethings about the Process in the Linux
- the diary of sleep jobs & fg command line in linux
- Beginning Linux Programming----Knowledge about compiling the C files in Linux
- the diary of homework of script check dir in linux
- the diary for redirection in linux
- the diary of how to backup one more files in linux
- Somethings about the Process scheduler in Linux
- the diary of script in linux
- the diary of pipe in linux
- about to search or kill the process and the port in the linux
- Myths, Lies, and Truths about the Linux kernel
- About IP Alias in Linux (Esp. CentOS)
- Note about the localizeable variables in you applications
- THE FIRST DIARY IN THIS BLOG
- THE FIRST DIARY IN THIS BLOG
- About the Rebase and Bind operation in the production of software
- RH033 Unit16 The Linux Filesystem In-Depth
- Linux Annoyances for Geeks : Getting the Most Flexible System in the World Just the Way You Want It
- Linux Device Drivers 3rd Edition About the Authors