Reputation
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
7 57 86
Impact
~1.4m people reached

Apr
18
comment How to selectively remove columns and rows with bash?
My point is that I don't think it's a few lines of clever shell. I mean, there probably is some, but that's almost a game for codegolf.stackexchange.com. The best thing to do is to write a little program to do it. The bad news is that I'm not going to do that. The good news is that if you do, you'll find it incredibly useful for all sorts of things in the future. But if you really want to work on a shell hack, awk is probably your best bet (it's a small programming language in itself). See stackoverflow.com/questions/2129123/rearrange-columns-using-cut
Apr
18
comment How to selectively remove columns and rows with bash?
So you want to match on column title? With issues like selecting between which of duplicate titles, and the desired rearrangement, you're quickly approaching the complexity where spending a few hours to learn the basics of Python or Perl will probably pay off.
Apr
18
answered How to selectively remove columns and rows with bash?
Apr
18
comment How to selectively remove columns and rows with bash?
And do the headers only appear at the top of the file, or every N lines?
Apr
18
comment How to selectively remove columns and rows with bash?
I have no idea about genomics — are the TCGA-FA-8693-01A-11D-2399-05 , etc, lines headers or are they data?
Apr
18
comment How to selectively remove columns and rows with bash?
Your columns are separated by tabs (cool; that's easy), but as I understand it, you also want to remove some rows from each multi-line record. Or is it just that you want the two lines at the very top of the file rearranged? Those are very different problems...
Apr
16
answered What is the safest way for programmatically writing to a file with root privileges?
Apr
14
awarded  Famous Question
Apr
14
awarded  Good Answer
Apr
13
comment How to boot GUI on a fedora 21 server through the command line
The correct answer here depends on what you want to do. You say "Fedora server" — do you mean the Fedora Server edition, or do you mean this in a generic sense? How was the VM installed initially? You say that you are accessing the system with putty, which is an SSH client for Windows. You won't be able to access any GUI through putty — is that okay, and in that case, what is the purpose? Do you want specifically to convert the system to Fedora Workstation, or do you just want a GNOME desktop (or any desktop)? Depending on your use case, have you considered the Cockpit web GUI?
Apr
13
comment How to boot GUI on a fedora 21 server through the command line
I don't think this RHEL 6.x answer applies very well to Fedora. There are also some very odd irrelevant instructions. Deltacloud isn't even a thing anymore.....
Apr
10
comment Fedora 22 does not shut down
Is this F22 with all updates applied?
Apr
7
comment Is the reader's linux '/usr/bin/mkdir' file larger than 53504 bytes? Has the reader got a virus?
For what it's worth, Fedora 23 is the current release, with Fedora 24 in alpha testing.
Apr
6
comment removing duplicates with tail
And, second, do you actually want the output sorted, or is that just the way you know to remove duplicates?
Apr
6
comment removing duplicates with tail
@Mehran Please, please answer this question: do you mean duplicate lines in a row, or do you mean if a line occurs once, you never want to ever see it again?
Apr
5
comment Where would be the best location to mount a distributed filesystem?
Another FHS-based answer might be to use a subdirectory of srv.
Apr
5
answered How to manually compile Fedora 20 kernel
Apr
4
comment startx fails fedora 23
Yeah, sorry, I don't really know much about sddm.
Apr
4
comment Is there an Evergreen Linux distribution?
However, openSUSE Tumbleweed is a rolling release, which is what you're asking for.
Apr
3
comment removing duplicates with tail
@Mehran Please see my comment above. What do you expect working to look like?