LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-15-2012, 12:18 AM   #1
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36

Rep: Reputation: 0
Question print output in desire format using awk or cut command


Hi,
I have a file, output like this:
Name : mozilla-filesystem Relocations: (not relocatable)
Release : 5.1.el6 Build Date: Wed 18 Aug 2010 03:43:28 PM UTC
Install Date: Fri 23 Mar 2012 06:47:30 PM UTC Build Host: c6b3.bsys.dev.centos.org

I want the output using awk or cut command like this:

Name : mozilla-filesystem
Release : 5.1.el6
Install Date: Fri 23 Mar 2012 06:47:30 PM UTC
Thanks in advance.
 
Old 12-15-2012, 01:59 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Good for you.
Write the script, debug it, come back with questions on what doesn't behave as you expect.
 
1 members found this post helpful.
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to read an external file and print it with a definite format within AWK script tia_chofi Linux - Newbie 2 12-13-2011 04:26 AM
[SOLVED] AWK; print array in loop no output cristalp Programming 6 12-12-2011 02:14 PM
AWK/GAWK to print equally spaced output sergani Linux - General 3 10-04-2011 05:26 AM
How to use command grep,cut,awk to cut a data from a file? hocheetiong Linux - Newbie 7 09-11-2008 07:16 PM
cut / awk command?? Sammy2ooo Linux - Newbie 1 05-27-2003 05:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration