Computing.Net > Forums > Unix > align column

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

align column

Reply to Message Icon

Name: fletcher
Date: November 22, 2008 at 10:56:57 Pacific
OS: unix
CPU/Ram: intel
Product: mac
Comment:

what unix command can i use to put the following dates
into one line:

26/10/01
26/10/01
26/10/01
27/10/01
28/10/01
29/10/01



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: November 22, 2008 at 12:17:17 Pacific
Reply:

Using Solaris korn shell, this command places all the records on 1 line with a space in between:

xargs < datafile

This removes the spaces:

xargs < datafile|sed 's/ //g'



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: align column

align fields in columns www.computing.net/answers/unix/align-fields-in-columns/5637.html

Grabbing only the first column www.computing.net/answers/unix/grabbing-only-the-first-column/7510.html

replace Nth column www.computing.net/answers/unix/replace-nth-column-/7297.html