LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need help with skipping line in text file (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-skipping-line-in-text-file-711391/)

notoriouskingpin 03-13-2009 12:28 PM

need help with skipping line in text file
 
this is the code


#!/bin/sh
echo -n "Enter a file name : "
read file
grep -w jones $file


output

LINE1 here is jones is in this file
LINE2 this is a line with the surname jones and other text
LINE3 this also a line with jones in it

how do you skip the first 20 characters, so it would look something like this

e.g.

output

LINE2 this is a line with the surname jones and other text
LINE3 this also a line with jones in it

neo2k 03-13-2009 01:12 PM

try using HEAD command..


All times are GMT -5. The time now is 03:45 AM.