LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Append something to the top of a file, in bash, without a temporary file

Posted 09-21-2013 at 04:04 PM by the dsc (linux-related notes)
Updated 09-21-2013 at 04:06 PM by the dsc

Using echo "something" >> extantfile.wtv may be handy way to add something to a file, but it will only add to the end.

The closest thing one would more likely imagine to add something at the top would be something like combining echo/whatever and a cat into a temporary file, and then moving it into the old file. Or maybe something crazy with tac and rev.

But it's possible to skip the temporary file:

echo -e "$(grep -A 1 patternX source-of-bit-to-append)\n$(cat...
Member
Posted in Uncategorized
Views 536 Comments 0 the dsc is offline
Old

Debian Live and multiple (related) architectures

Posted 09-20-2013 at 11:18 AM by goumba
Updated 09-21-2013 at 07:01 AM by goumba

(This is my first attempt at writing some sort of how-to, if anything is unclear, please let me know!)

This was more of an exercise of "can I?" rather than "is it really necessary?".

At work, there are some PCs with Pentium 4 processors (32 bit) and others with Core processors (64 bit). I have Debian Live on a USB stick, and I got to wondering, rather than using the lowest common denominator (i386) if I could create a Live image using both architectures....
Senior Member
Posted in Uncategorized
Views 301 Comments 0 goumba is offline
Old

Xfce 4.10 up and running on LFS.

Posted 09-19-2013 at 09:32 PM by ReaperX7

Good news everyone!!!

Today I got my LFS booted to the desktop and now have Xfce working. I even have xfce-terminal working and plan on working some more tomorrow to give the system a few extra packages!

Huzzah!!!
LQ Guru
Posted in Uncategorized
Views 603 Comments 0 ReaperX7 is offline
Old

linux in old computer: from DSL to LinuxfromScratch through SLAX and ConnochaetOS

Posted 09-19-2013 at 06:10 AM by translator1111 (CLI is your friend)

I had an old Fujitsu notebook with W95 as OS with 2 partitions on it C:for OS; D: for Data. toguether a 5 GB HDDD. I made a third partition with the help of HAOS tools dividing C in half with volume EXT3 (1600 MB) took some space from D: for a fourth partition with volume EXT3 (50 MB) and another with volume EXT2 (120 MB).
This laptop has two problems, one is that there is a bad sector in HDD, which I hopefully has isolated when I made the partitions and a problem with memory.
As GUI...
Member
Posted in Uncategorized
Views 1170 Comments 0 translator1111 is offline
Old

RIP: bad value: NULL

Posted 09-18-2013 at 09:57 PM by rocket357 (Musings on technology, philosophy, and life in the corporate world)

Spent a few days debugging what I thought was a bizarre kernel bug on a RHEL 6.3 box. We had crash utilities installed and I'd gotten incredibly comfortable with analyzing kernel crash dumps. I can also say that I'm intimately familiar with a few features of the Linux kernel that I didn't even know existed before.

If you know much about kernel debugging, you probably already know the fix (due to the subject line). See, when you analyze a kernel crash dump, you get certain information,...
Member
Posted in Uncategorized
Views 1144 Comments 0 rocket357 is offline

  



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

Main Menu
Advertisement
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