Posts tagged as:

file names

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.

{ 32 comments }

Debian 5 php5 package has serious security issues as follows:

To prevent Denial of Service attacks by exhausting the number of available temporary file names, the max_file_uploads option introduced in PHP 5.3.1 has been backported.

{ 1 comment }

Use any one of the following command to create temporary empty file names. The first command is special as it use the redirection operator >, the redirection refers to the standard output. So you are creating a new file or destroying existing file:

{ 7 comments }

Various methods exists to create a random temporary file name. This is useful if your application/shell scripting needs temporary unique file names.
Method #1: Use of $RANDOM bash shell variable
1) At shell prompt type command:
# echo $RANDOM
You will get random value every time. This variable can be use to create unique file name as demonstrated by [...]

{ 8 comments }