![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Convert a tab delimited/variable length file to fixed length file | Everton_Silveir | UNIX for Dummies Questions & Answers | 2 | 12-19-2008 06:21 PM |
| separate a line having particular field | Satyak | Shell Programming and Scripting | 2 | 10-13-2008 07:20 AM |
| how to show it on separate line | userking | UNIX for Dummies Questions & Answers | 2 | 07-23-2008 01:01 AM |
| Fixing line length in a file | dbessell | UNIX for Advanced & Expert Users | 2 | 08-04-2003 06:40 PM |
| Listing words from a file on a Separate Line | Astudent | UNIX for Dummies Questions & Answers | 2 | 03-14-2001 06:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
separate file by line length
hi all,
i'm new in unix.... i have question, sorry if it's missplace or too silly let say i have a file name testfile.log that contains data 000001 000002 000003 aaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbb cccccccccccccc dddddddddddddddddd 000004 i want to make new file (newfile.log) that only consist aaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbb cccccccccccccc dddddddddddddddddd ps: what i want is, i split by line length which is > 6 regards, steven |
|
||||
|
thx
thx help alot
-----Post Update----- another question i want to make new file that dont consist particular string for example "bbbb" i have aaaaaaa vbbbbq abbbbx cccccc ddddd i want to make new file that consist aaaaaaa cccccc ddddd thx before |
|
||||
|
you questions are very simple to do. what have you got ? someone has already shown you how to use awk. Look up the awk documentation and see how you can do the second task.
|
| Sponsored Links | ||
|
|