LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Closed Thread
  Search this Thread
Old 09-12-2018, 01:55 PM   #1
andres_fever
LQ Newbie
 
Registered: Sep 2018
Posts: 8

Rep: Reputation: Disabled
Talking I want to take the value of certain column of a string


I have a string
Var=/dev/sda1 4.7G 4.3G 202M 96% /

I want to take the value of 96% of the variable Var to later perform operations with this. Help!!!
 
Old 09-12-2018, 02:09 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,657

Rep: Reputation: 5075Reputation: 5075Reputation: 5075Reputation: 5075Reputation: 5075Reputation: 5075Reputation: 5075Reputation: 5075Reputation: 5075Reputation: 5075Reputation: 5075
Duplicate post; reported.
 
Old 09-12-2018, 02:30 PM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 7,150
Blog Entries: 12

Rep: Reputation: 2633Reputation: 2633Reputation: 2633Reputation: 2633Reputation: 2633Reputation: 2633Reputation: 2633Reputation: 2633Reputation: 2633Reputation: 2633Reputation: 2633
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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
If the 1th column of file f1 and file f2 is the same, then export those line with maximum string of 2nd column weichanghe2000 Programming 1 04-26-2018 12:42 PM
how to print a column starting with a string using awk? socalheel Programming 9 06-29-2015 07:18 PM
[SOLVED] How to split single column string into two columns Colorinb Linux - Newbie 2 10-07-2011 09:06 PM
[SOLVED] search a string and print column vikas027 Programming 6 03-14-2010 09:20 AM
[Help me, plz!!] Compare string in the column in the file... nightmare520 Linux - Newbie 1 12-04-2009 06:40 AM

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

All times are GMT -5. The time now is 01:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration