Pages

Showing posts with label bash. Show all posts
Showing posts with label bash. Show all posts

2008-12-10

BASH Shell: For Loop File Names With Spaces

"BASH for loop works nicely under UNIX / Linux / Windows and OS X while working on set of files. However, if you try to process a for loop on file name with spaces in them you are going to have some problem. for loop uses $IFS variable to determine what the field separators are. By default $IFS is set to the space character. There are multiple solutions to this problem."

http://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html

2008-12-09

fold: Wrap Text File / Line / Words To Fit in Specified Width

"fold is really nifty command line utility to make a text file word wrap. This is useful for large number of text files processing. There is no need to write a perl / python code or use a word processor."

http://www.cyberciti.biz/tips/linux-unix-word-wrap-command.html

"For example, following command will wrap input.txt at 60 width columns:

$ fold -sw 60 input.txt > output.txt
"

2008-07-16

Shell Games - Windows Powershell and Bash

"Microsoft’s new PowerShell relies on .NET framework libraries and thus has access to a treasure trove of functions and objects. How does PowerShell measure up to traditional shells like Bash?"

http://linux-magazine.com/issues/2007/78/shell_games/(kategorie)/0

2008-01-25

Linux Quick Hacks

# Ascii Character Lister
# Man pages formatted as text
# Man pages formatted as html
# Shellscript File Tests
# Directory Size Lister/Sorter
# CUPS Tips
# Mouse: Fast and Accurate Mousing Under Linux
# Smoothwall Tips
# Recording, Playing and Converting sounds
# Finding Who Has a File Open
# Modem init strings

http://www.troubleshooters.com/linux/quickhacks.htm

2007-12-06

Advanced Bash-Scripting Guide

This tutorial assumes no previous knowledge of scripting or programming, but progresses rapidly toward an intermediate/advanced level of instruction . . . all the while sneaking in little snippets of UNIX® wisdom and lore. It serves as a textbook, a manual for self-study, and a reference and source of knowledge on shell scripting techniques. The exercises and heavily-commented examples invite active reader participation, under the premise that the only way to really learn scripting is to write scripts.

http://tldp.org/LDP/abs/html/

Bash scripting Tutorial

This bash tutorial assumes no previous knowledge of bash scripting.As you will soon discover in this quick comprehensive bash scripting guide, learning the bash shell scripting is very easy task.

http://www.linuxconfig.org/Bash_scripting_Tutorial