48,976 reputation
762131
bio website
location Athens, Greece
age 34
visits member for 2 years, 7 months
seen 3 hours ago

Elected moderator on Unix & Linux. Feel free to @ping me in chat if there's anything I can help you with.

I've been using Linux since the late '90s and have gone through a variety of distributions. At one time or another, I've been a user of Mandrake, SuSe, openSuSe, Fedora, RedHat, Ubuntu, Mint, Arch and for the past few years Linux Mint Debian Edition (which is basically Debian testing but more green).

My Linux expertise, if I can grace it with such a lofty title, is mostly on manipulating text and regular expressions since that represents a large chunk of my daily work.

profile for terdon on Stack Exchange, a network of free, community-driven Q&A sites


2d
revised Sorting numbers and respective units in columns
deleted 202 characters in body
2d
answered Sorting numbers and respective units in columns
2d
comment Sorting numbers and respective units in columns
Also, what units does your file actually have? How many different units does this need to deal with?
2d
comment Sorting numbers and respective units in columns
I edited your question to fix the format and removed the spaces you had in your example. I assumed you only added them for clarity. If those spaces are actually present in your text file, please edit and return them.
2d
revised Sorting numbers and respective units in columns
Improved formatting and spelling.
2d
comment What does mtp://[usb:002,003]/Storage/ mean?
It will be in /run/user/1001/gvfs/mtp:host=%5Busb%3A002%2C003%5D/. For how to access it, let's hope someone answers the duplicate.
2d
revised Unable to perform file operations on a MTP device mounted via GVFS: “Operation not supported”
added 2 characters in body
2d
revised Convert all first character in an email id to Upper case in BASH
typo
2d
awarded  Popular Question
Mar
27
revised Combine lines of file to string
edited title
Mar
27
comment Combine lines of file to string
I'm having a very hard time understanding your question. Please edit and add an example of your input and the output you would like to see. You can add things to a variable simply by doing foo="$foo""new stuff", is that what you're looking for?
Mar
27
comment How to quote the quote marks in strings in u-boot?
I know, I was just suggesting switching them around as a workaround that might let you do what you want. I'm very surprised that using " fails though. That makes no sense. In any case, please add the missing line to the beginning of your question.
Mar
27
reviewed Approve what is the difference between “ssh user@ip” and “ssh ip user”?
Mar
27
revised output in iptables
added 24 characters in body
Mar
27
comment How to quote the quote marks in strings in u-boot?
You forgot to show the boot string displayed by env print. Are you saying that "if test ${jpsdboot} = 'on' ; then run sdboot; else run emmcboot; fi;" fails? What if you switch the quotes around and try 'if test ${jpsdboot} = "on" ; then run sdboot; else run emmcboot; fi;' ?
Mar
27
comment Shell test to find a pattern in a string
Did you try this? That command will work in modern bash shells just the way you typed it.
Mar
27
answered Shell test to find a pattern in a string
Mar
27
comment Adding Kali repositories has changed the output of lsb_release on Debian host
@BandAid15 not sure, you should have a look at /var/log/apt/hostory.log but that won't show the source repo. That's probably worth asking a separate question.
Mar
27
comment Adding Kali repositories has changed the output of lsb_release on Debian host
@BandAid15 you might not need a reinstall. If that's all that broke, you can just edit the file manually and change it back. In any case, if this answer solved your issue, please take a moment and accept it by clicking on the check mark to the left. That will mark the question as answered.
Mar
27
answered Adding Kali repositories has changed the output of lsb_release on Debian host