随笔分类 - Linux Usage and Shell
Linux Usage/Shell/AWK
摘要:1 scpsudo scp abc root@192.168.1.1:/home/sudo mount -s smbfs -o username=root //192.168.1.1/share /homesudo mount -t ntfs UUID="966A4B803710F028" -w /media/D2ftpcd dir //enter dir of the serverlcd dir //enter the dir of local hostget Path/file //get fileput Path/file //put file 3.shell par
阅读全文
摘要:1.awk common format and exampleawk '{cmd}' inputfileor awk 'condition {cmd}'or awk '{if(condition) cmd}for example, b.txt[plain] view plaincopyabcdef>>awk '{printf $1}' b.txtad>>awk '$1=="a" {print $2,$3}' b.txtb c>>awk '{if($1==&qu
阅读全文
摘要:[plain] view plaincopyip_addr="$1"name="$2"passwd="$3"command1="$4"command2="$5"command3="$6"echo"open$ip_addr">ftp_inputecho"user$name$passwd">>ftp_inputecho"binary">>ftp_inputecho"epsv4&qu
阅读全文

浙公网安备 33010602011771号