12-09-2003
Some systems have a /dev/zero that produces a infinite number of zeros. Or a /dev/full that produces a infinite amount of garbage. You need to use something like that.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to identify files that have zero length, bascially files that are 0 byte in size. Then remove those files that are found using du.
I wanted to do this in a way that, let's remove 0 size jpg files:
foreach f (*jpg)
du $f
end
This will only list the size and file name, I wanted... (4 Replies)
Discussion started by: ApprentiSorcier
4 Replies
2. Shell Programming and Scripting
Hi all,
How do I compare contents of entire two files except for the first line is each of them? I am sure first lines from both my files are going to be different so I want to ignore them.
Is there a easier way than creating temporary files by cutting out the first line and then comparing... (1 Reply)
Discussion started by: jakSun8
1 Replies
3. UNIX for Dummies Questions & Answers
hello im new to linux programming trying to list files in a directory i current have the code to list all the files but i do not want the hidden files to show such as a file named .openoffice.org2.0 for example, can anyone help me or point me in the right direction
#include <sys/types.h>... (2 Replies)
Discussion started by: Fortune
2 Replies
4. Shell Programming and Scripting
hi,
i'm trying to figure out how to use grep in different ways in bash..
lets say you have two files, one with a list of words and the other with text
i want to go through the list of words in one file and for each word, find every occurrence of that word in the other file and display... (1 Reply)
Discussion started by: kratos.
1 Replies
5. Shell Programming and Scripting
Hello Friends,
I have a simple problem but I can't seem to find a solution, perhaps you could gimme a hand here..
I have to files
1.txt which contains the following
00
01
02
03
and 2.txt which contains the following:
20
21
22
23
All I need is to concatenate these 2 files in... (2 Replies)
Discussion started by: bashshadow1979
2 Replies
6. UNIX for Dummies Questions & Answers
Hello
I have an excel file , it has 4 tabs , each having specific details
for example it has a customer tab , it has a payments tab and it has an address tab
Question is
How do I seperate each of these tabs and load them into 3 different excel files Using Unix
That is the... (2 Replies)
Discussion started by: arnab1978
2 Replies
7. Solaris
Hi everyone,
What is the Solaris equivalent of cp -u? I'm copying files from one directory to another, and I'd like to only copy files which are newer.
Thanks! (4 Replies)
Discussion started by: Fatbob
4 Replies
8. Shell Programming and Scripting
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies
9. Shell Programming and Scripting
I have a bunch of files that are messages in my directory. Each message has a date located in the file. How can I look into each file and find the date?
Thank you for any help (7 Replies)
Discussion started by: totoro125
7 Replies
10. Shell Programming and Scripting
Im repeating same command to get count, filename from 4 different files, writing to one same file.
awk 'END{print NR"|"FILENAME}' file.txt >> temp.txt;
awk 'END{print NR"|"FILENAME}' asdf.txt >> temp.txt;
awk 'END{print NR"|"FILENAME}' lkjh.txt >> temp.txt;
awk 'END{print NR"|"FILENAME}'... (12 Replies)
Discussion started by: JSKOBS
12 Replies
LEARN ABOUT MOJAVE
urandom
RANDOM(4) BSD Kernel Interfaces Manual RANDOM(4)
NAME
random , urandom -- random data source devices.
SYNOPSIS
pseudo-device random
DESCRIPTION
The random device produces uniformly distributed random byte values of potentially high quality.
To obtain random bytes, open /dev/random for reading and read from it.
The same random data is also available from getentropy(2). Using the getentropy(2) system call interface will provide resiliency to file
descriptor exhaustion, chroot, or sandboxing which can make /dev/random unavailable. Additionally, the arc4random(3) API provides a fast
userspace random number generator built on the random data source and is preferred over directly accessing the system's random device.
/dev/urandom is a compatibility nod to Linux. On Linux, /dev/urandom will produce lower quality output if the entropy pool drains, while
/dev/random will prefer to block and wait for additional entropy to be collected. With Yarrow, this choice and distinction is not necessary,
and the two devices behave identically. You may use either.
The random device implements the Yarrow pseudo random number generator algorithm and maintains its entropy pool. The kernel automatically
seeds the algorithm with additional entropy during normal execution.
FILES
/dev/random
/dev/urandom
HISTORY
A random device appeared in the Linux operating system.
Darwin September 6, 2001 Darwin