@@ -605,6 +605,36 @@ export const SNIPPETS: BashCompletionItem[] = [
605
605
insertText :
606
606
"sed ${1|-E,--regexp-extended|} ':${2:x} N $! b$2 ${3:command}' ${4:file}" ,
607
607
} ,
608
+ {
609
+ documentation : 'skip-first' ,
610
+ label : 'skip-first' ,
611
+ insertText : 'tail ${1|-n,-c,--lines,--bytes|} +${2:count}' ,
612
+ } ,
613
+ {
614
+ documentation : 'skip-last' ,
615
+ label : 'skip-last' ,
616
+ insertText : 'head ${1|-n,-c,--lines,--bytes|} -${2:count}' ,
617
+ } ,
618
+ {
619
+ documentation : 'take-first' ,
620
+ label : 'take-first' ,
621
+ insertText : 'head ${1|-n,-c,--lines,--bytes|} ${2:count}' ,
622
+ } ,
623
+ {
624
+ documentation : 'take-last' ,
625
+ label : 'take-last' ,
626
+ insertText : 'tail ${1|-n,-c,--lines,--bytes|} ${2:count}' ,
627
+ } ,
628
+ {
629
+ documentation : 'take-range' ,
630
+ label : 'take-range' ,
631
+ insertText : "sed ${1|-n,--quiet|} '${2:from},${3:to}p'" ,
632
+ } ,
633
+ {
634
+ documentation : 'take-stepped-range' ,
635
+ label : 'take-stepped-range' ,
636
+ insertText : "sed ${1|-n,--quiet|} '${2:from},${3:to}p' | sed $1 '1~${4:step}p'" ,
637
+ } ,
608
638
{
609
639
documentation : 'json print' ,
610
640
label : 'json' ,
0 commit comments