11/20/2013

ftp multiple files without prompt

$mput *.txt
transfer multiple files from local to remote machines

$mget *.txt
transfer multiple files from remote to local machines

Every time you will be ask to confirm the transfer, kind of annoying, to disable that, use prompt to toggle it off

ftp> prompt
Interactive mode off

11/12/2013

Zgrep/ Grep -a

 -a, --text
              Process a binary file as if it were text; this is equivalent to the --binary-files=text option.

$ zgrep -a cdp test.tl.gz

If this "-a" option is not specified, an error will come out

$ zgrep cdp tst.tl.gz

Binary file (standard input) matches

11/11/2013

Linux list with line number

$ nl tst.txt

$cat -n tst.txt


$less -N tst.txt