Review your favorite Linux distribution.
Go Back > Blogs
User Name



new runc version

Posted 09-27-2013 at 03:53 PM by rainbowsally

Here's where runc can be d/loaded.
Run C/C++ Code As Script

Here's another usage example for runc.

When you want to pack up a bunch of folders by name that live in a windows partition, there's a great likelihoold that spaces in the paths could cause a normal shell program to mis-parse the file names.

Runc uses C/C++ and the built-in slist functions...
Posted in Uncategorized
Views 681 Comments 0 rainbowsally is offline

Getting Absolute Paths of UNIX Directories and Filenames in Shell Scripts

Posted 07-08-2011 at 03:05 AM by konsolebox
Updated 07-17-2011 at 09:11 AM by konsolebox
Tags bash, ksh, script, shell, zsh

This post is a compilation of the function getabspath() for different shells that can be used to get the absolute form of a path. The function accepts an argument path then returns the absolute form of it to the variable $__.

bash (3.0 and newer only)
function getabspath {
	local -a T1 T2
	local -i I=0
	local IFS=/ A

	case "$1" in
		read -r -a T1 <<< "$1"
Senior Member
Posted in Howtos
Views 2103 Comments 0 konsolebox is offline


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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration