![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| replace space with delimiter in whole file -perl | meghana | Shell Programming and Scripting | 11 | 02-19-2008 09:35 PM |
| delete a field along with delimiter in the whole file | dsravan | Shell Programming and Scripting | 5 | 11-02-2007 01:40 AM |
| remove space in front or end of each field | happyv | Shell Programming and Scripting | 6 | 03-22-2007 02:05 AM |
| Set a variable field delimiter using awk | Klashxx | Shell Programming and Scripting | 2 | 03-24-2006 09:10 AM |
| How to parse a text file with \034 as field and \035 as end of message delimiter? | indianya | Shell Programming and Scripting | 1 | 08-26-2005 10:20 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Is there some way to specify a field delimiter for a space or more (like " "+) ?
For example: In the following string, I like to reach value '30695' what field delimiter I should say? Thank you. -rw-rw-r-- 2 uphamtn staff 30695 May 12 09:23 howToDo ---------------- I appreciate your response very much. Actually, my example string has one or MORE spaces but when it showed up on this page, it squezzes 2+ spaces into 1 space. In addition, I tried to use 'cut' command to get the size value of files from the output of 'ls -ltr' command. Ex. ls -ltr | cut -d" " -f5 . This command will work if there is only one space separated between fields. And it won't work in my string because it has either one or more spaces between fields. Any idea ? Thanks. ====== IT WORKED, THANKS A LOT. Last edited by uphamtn; 05-15-2003 at 05:35 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|