![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sed remove last 10 characters of a line start from 3rd line | minifish | Shell Programming and Scripting | 7 | 03-26-2008 04:42 PM |
| Deleting lines above a certain line | eltinator | Shell Programming and Scripting | 3 | 10-11-2007 03:29 PM |
| deleting newline characters but not the "true" \n character | caddyjoe77 | Shell Programming and Scripting | 1 | 08-15-2007 11:21 PM |
| Checking the last line and deleting | srivsn | Shell Programming and Scripting | 3 | 12-13-2005 02:04 PM |
| Deleting the blank line in a file and counting the characters.... | rkumar28 | Shell Programming and Scripting | 4 | 04-17-2005 01:13 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Deleting First Two Characters On Each Line
How would one go about deleting the first two characters on each line of a file on Unix? I thought about using awk, but cannot seem to find if it can explicitly do this. In this case there might or might not be a field separator. Meaning that the data might look like this.
01999999999 02999999999 09999999999 Regardless of what it looks like, on each line I want the first two characters deleted. I thought I would run it by the group here, I know I am probably missing something easy. Thanks in advance. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|