LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Unread

Handling all file names safely in Bash

Posted Today at 01:09 PM by Nominal Animal
Tags bash, filename, nul

In Linux, each file or directory name (or more generally, pathname component) is just a string of bytes. It always ends with the C end-of-string mark, ASCII NUL: a zero. Value 47, ASCII /, is also reserved for use as a separator between pathnames.

Bash can read ASCII NUL separated data using read -d "" variable. You can set IFS=$'\0' to set the input separator to ASCII NUL also, but at least up to Bash-4.2.10, it will not work as you might expect it to with respect to word...
Senior Member
Posted in Uncategorized
Views 10 Comments 0 Go to first new comment Nominal Animal is online now
Unread

NetBSD 5.1.2 has just been released, and of course it runs on....

Posted Today at 07:55 AM by tallship

Just about everything under the sun!

For Details on today's NetBSD 5.1.2 release:

http://northtech.us/content/20120211...released-today
Member
Posted in Uncategorized
Views 16 Comments 0 Go to first new comment tallship is offline
Unread

Hero Honda Splendor fork oil change

Posted Today at 01:36 AM by catkin

The easiest way to do this job is to remove the drain plugs but the part that they screw into within the slider may turn. If that happens a special tool is required to hold it. The procedure described here avoids that danger; it does not need any special tools.

Note on terms: the fork tube (a.k.a. stanchion) is attached to the yokes (a.k.a. triple tree) which pivot in the frame while the slider (a.k.a tube) holds the wheel. The least ambiguous terms, "stanchion" and "slider",...
LQ 5k Club
Posted in Uncategorized
Views 18 Comments 0 Go to first new comment catkin is offline
Unread

The Great GNOME Schism

Posted Yesterday at 11:31 PM by wagscat123

I personally switched back to KDE in wake of 12.1 approaching over the summer. GNOME 3 isn't too bad for me, just different and weird, and if was tweaked a little might be good. In the past,
(starting with KDE 2.5\GNOME 2.16) I've bounced around between the two and have voted differently over the years. I've always used SUSE though.
Comparing LQ Members Choice Awards this year to last year, there seems to be a Great Schism in GNOME. KDE has kept about the same amount of votes, while...
Member
Posted in Uncategorized
Views 19 Comments 0 Go to first new comment wagscat123 is offline
Unread

UsR2usr patch (1.3 to 1.4)

Posted Yesterday at 07:32 AM by rainbowsally

Features:
  • a patch file for UsR2usr to add /etc files to the files captured during a configure-ed installation.

Requires:
  • gnu patch
  • the original UsR2usr code [..we need to make slist into a lib, eh? :-)]

Here's UsR2usr.
http://www.linuxquestions.org/questi...ods-etc-34431/
http://www.linuxquestions.org/questi...ods-etc-34432/...
Member
Posted in Uncategorized
Views 19 Comments 0 Go to first new comment rainbowsally is offline

  



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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration