LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux User Groups (LUG) (https://www.linuxquestions.org/questions/linux-user-groups-lug-51/)
-   -   I am learning sed / grep working and am stuck with a problem (https://www.linuxquestions.org/questions/linux-user-groups-lug-51/i-am-learning-sed-grep-working-and-am-stuck-with-a-problem-574979/)

chris_looks 08-06-2007 12:23 AM

I am learning sed / grep working and am stuck with a problem
 
Hi, I recently started learning sed/grep commands; that are required for me to work better..

Now my problemmme is this:-

I have 2 files that have contents in these two formats:-
"From x.rar/Vee/six.jpg" "SM/ded/.." "SMW"
..

and

"From x.rar/Vee/six.jpg" "SM/ded/.."

I want my sed command to delete anything afterthe 1st space i.e.
desired o/p for both the cases is
"From x.rar/Vee/six.jpg"

Can anyone tell me how to do this??

I am a beginner so any help on this would be much appreciated!

Thanks all
Veena

wjevans_7d1@yahoo.co 08-06-2007 01:49 AM

This thread is a duplicate of the following one:

http://www.linuxquestions.org/questi...d.php?t=574988

XavierP 08-06-2007 02:31 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 04:46 AM.