from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

210195

userrating:


May 25th. 2007:
Words

486

Views

259168

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

150529

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





FSTA-DECODE

Section: Linux System Administrator's Manual (8)
Updated: May 2006
Index Return to Main Contents

 

NAME

fsta-decode - run a command with fsta-encoded arguments

 

SYNOPSIS

fsta-decode COMMAND [ARGUMENT ...]

 

DESCRIPTION

fsta-decode decodes escapes (such as newline characters and other whitespace) in the specified ARGUMENTs and uses them to run COMMAND. The argument escaping uses the same rules as path escaping in /etc/fstab, /etc/mtab and /proc/mtab.

In essence fsta-decode can be used anytime we want to pass multiple parameters to a command as a list of command line arguments. It turns output like this:

/root
/mnt/remot-disk
/home

Into one long list of parameters, "/root /mnt/remot-disk /home". This can be useful when trying to work with multiple filesystems at once. For instance, we can use it to unmount multiple NFS shares. This program also removes whitespace and other characters which might cause programs such as mount(8) or umount(8) to fail.

 

EXIT STATUS

fsta-decode exits with status 127 if COMMAND can't be run. Otherwise it exits with the status returned by COMMAND.

 

EXAMPLES

The following example reads fstab, finds all instances of VFAT filesystems and prints their mount points (argument 2 in the fstab file). fsta-decode then runs the specified program, umount(8), and passes it the list of VFAT mountpoints. This unmounts all VFAT partitions.

fsta-decode umount $(awk [aq]$3 == [dq]vfat[dq] { print $2 }[aq] /etc/fstab)

 

SEE ALSO

fstab(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXIT STATUS
EXAMPLES
SEE ALSO





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 13.2 ms