Sed, awk?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is probably really simple for u guys.. I need a one liner to
basically do the same as explode in php. Here is the input to the
command:

Oneliner | grep 'whatever' *

What will be actually being passed to sed or whatever will look like
this:

203lkjasdf:alsdkfjalskjf

I only need the first part, before the colon. I could make up a php
script very easly explode(":", $input); but I would like to just have
a short command instead of a separate script.



Thanks,

Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com




-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux