smart grouping shorten long command line 2

June 19th, 2007 mysurface

This post is to illustrate additional usage of curly brackets { } for range of numbers, continues from smart grouping shorten long command line. Let say you have a list of logs where you want to pick a range of logs for analysis, the sample log files shows as bellow tcp_06062007_1.txt … tcp_06062007_180.txt tcp_06062007_181.txt tcp_06062007_182.txt [...]

Posted in curly brackets, Symbol, tar | Hits: 52071 | 1 Comment »

smart grouping shorten long command line

August 25th, 2006 mysurface

Let say you want to copy certain files from a directory to current directory, which the parent path is long, how the command will looks like? cp /home/foobar/downloads/one /home/foobar/downloads/two….. . So most of the people will change directory to downloads first, then copy those files, such as (Assume the current directory is /home/soomee/downloads ) cd [...]

Posted in curly brackets, Symbol | Hits: 24881 | 4 Comments »