LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-04-2017, 12:02 AM   #16
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165

Quote:
Originally Posted by allend View Post
then I suggest using awk
Yep, that should do it. Nice answer allend, I always forget about the power of the FS.
 
Old 07-05-2017, 12:38 AM   #17
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
Using this data file
Code:
AG;0.79780;0.132;0.204;487;923	AG;0.79780;0.132;0.204;487;923	AG;0.79780;0.132;0.204;487;923
GG;0.79780;0.115;0.161;213;457	GG;0.79780;0.115;0.161;213;457	GG;0.79780;0.115;0.161;213;457
AG;0.79780;0.095;0.152;375;835	AG;0.79780;0.095;0.152;375;835	AG;0.79780;0.095;0.152;375;835

# code
cat t.t |cut -d';' -f1

# output
rs
AG
GG
AG
this code
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
merge columns from multiple files in a directory based on match of two columns prasanthi yanamala Linux - Newbie 2 11-12-2015 11:11 AM
Extracting rows from one file based on column entries in another file mphillips67 Linux - Newbie 3 05-06-2014 07:26 PM
extracting columns from multiple files with awk orcaja Linux - Newbie 7 02-14-2012 11:24 PM
[SOLVED] Bash script to read csv file with multiple length columns japena Linux - Newbie 17 07-27-2011 02:47 PM
[SOLVED] Extracting columns ben1173 Linux - General 5 10-18-2010 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:34 PM.

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