The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 05-15-2003
uphamtn uphamtn is offline
Registered User
  
 

Join Date: Mar 2002
Posts: 1
Question field delimiter with a space or more

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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0