LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-26-2011, 05:34 AM   #1
jacky29
LQ Newbie
 
Registered: Mar 2011
Posts: 14

Rep: Reputation: 0
cut column an edit data!!!!!


Mar 26 12:32:53 name sshd[3261]: 192.168.1.14
Mar 27 12:42:53 name sshd[3262]: 192.168.1.14


how to make this data in output as:

"Mar 26 12:32:53","name","sshd","192.168.1.14"
"Mar 27 12:42:53","name","sshd","192.168.1.14"


anyone plzz help me out!!!!!!!!!!!!!!
 
Old 03-26-2011, 05:37 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
I know by replying, I am taking your thread off of the zero reply list, but in due respect, I have asked you several times to spell out your words and stop using such phrases as "anyone plzz help me out!!!!!!!!!!!!!!" Please comply with my requests, or I WILL report you to the mods.

Thank you for understanding.

Josh
 
Old 03-26-2011, 05:40 AM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
To add to my previous post - We all here on LinuxQuestions.org volunteer our time and effort for free to help and assist others. All I ask are a few simple things.... So which brings me back to my requests. Please comply with, in a nice way I am asking, or most likely you will receive at least a warning from the moderators, if not being banned from the forums.

Thank you for understanding again.

Josh
 
Old 03-26-2011, 05:40 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello jacky29,

Josh has a very good point here. If you use shorthand or textspeak you'll be very hard to understand and most LQ users will not even go through the trouble of responding, leaving you with your problems and questions. Please show some respect to the community you're asking to help you by spelling out your words.

That being said, have a look at the man page for awk, cut and sed to do what you want with your data.
Code:
man awk
man cut
man sed
Kind regards,

Eric
 
Old 03-26-2011, 05:47 AM   #5
jacky29
LQ Newbie
 
Registered: Mar 2011
Posts: 14

Original Poster
Rep: Reputation: 0
ok....i will follow rules as such...now anybody please help me out to find the solution for the problem...
 
Old 03-26-2011, 05:48 AM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Did you even read what Eric wrote? It's not all about you, you know....
 
Old 03-26-2011, 05:53 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by jacky29 View Post
ok....i will follow rules as such...now anybody please help me out to find the solution for the problem...
Hi,

I pointed out which command(s) can be used to obtain what you need. We are all volunteers here putting in our own time. If you keep asking for ready made solutions without even trying yourself then you'll find that your problems/questions will get very few responses. If you're in desperate need of a solution you could always get paid support. You'll find LQ users at their best when trying to solve a problem for which you yourself have tried (and cannot find an answer). No LQ user will give you ready made solutions, copy/paste guide or personalized HowTo guide. So basically it comes down to:

Show us what you have done and where it's failing, then we'll can help you at our best.

Kind regards,

Eric
 
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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace data of one column with data on other file corresponding to transaction ID saurabhmehan Linux - Newbie 1 12-23-2010 01:19 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
App to edit (cut) an mp3? Andrew Benton Linux - Software 15 07-29-2008 04:39 PM
cut column ust Linux - Newbie 10 01-09-2008 03:28 AM
phpmyadmin (or regular mysql) batch column edit? fibbi Linux - Software 1 07-10-2004 02:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:32 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