How to Print from nth field to mth fields using awk

view full story

http://www.unix.com – Hi, Is there any short method to print from a particular field till another filed using awk? Example File: Code: File1 ==== 1|2|acv|vbc|......|100|342 2|3|afg|nhj|.......|100|346 Expected output: [code] File2 ==== acv|vbc|.....|100 afg|nhj|.....|100 [code] In the above example, let say I have 101 fields, I have print line only from 3 field to 100 field. Is Code: awk '{print $3FS$4FS$5FS....$100}' is the only method or is it possible to just mention the starting field and the ending field and get the line printed? (HowTos)