06-11-2015
Quote:
Do i have to make a seperate file for this one, so it opens the numbersfile.txt or? Not sure what im getting myself into Linux
You did not supply the name of your real .txt, so the helper used the name numbersfile.txt as a surrogate of yours. Just substitute this for yours.
Quote:
im guessing that FILENAME is the name of my file with numbers in it. And the file is the output? I seem to be getting an error saying something about it not being able to open "file".
Apply the same that above. Substitute file for your .txt
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using
printf "%-75s%+10s %5s %1s \n" $s $z $x $y > status
It works really well, however, when I email status it is sending 10 emails when I would like it to be in one.
Is there a way to make all the output to go into one instance of a txt file. Yet still keep it 1 on each... (12 Replies)
Discussion started by: chrchcol
12 Replies
2. Shell Programming and Scripting
Hi all,
I have a bunch of files that are named like 12543, 467249877, etc all over some directories.These files are named only with numbers, they dont have any letters or special characters in their file names. Could you please help me out and give me some command/script to remove only those... (6 Replies)
Discussion started by: praveen_indramo
6 Replies
3. Shell Programming and Scripting
My goal is to send multiple files to a person based on their input. The files have similar names like:
file1-egress-filter
file2-ingress-filter
stuff1-egress-filter
stuff2-ingress-filter
...
The script is run with the filename given as arguments, such as: ./mail.sh file stuff
would... (6 Replies)
Discussion started by: earnstaf
6 Replies
4. Shell Programming and Scripting
Hi,
So I have a text file which I want to separate into separate text files. I would use the split command but the problem here is that the text file is separated by delimiters. For example:
blah
blah blah
------
more text
-----
and some more text
So basically the first part should be... (4 Replies)
Discussion started by: eltinator
4 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I am comparing files with for mismatches using fgrep but I've run into a problem.
fgrep -vf $file1 $file2 > mismatches.dat
file1 and file2 both contain file names on each line
file1 has filenames which are up to 92 characters long and contain the "$" char.
example file name:... (2 Replies)
Discussion started by: orahi001
2 Replies
6. UNIX for Dummies Questions & Answers
It may sounds too easy but appreciate any help on this..
i have a file with the below details:
******************************************
Please find the locked pernr details for the Time evaluation
Personnel number could not be locked
Person rejected: 04552737
Personnel number could not... (4 Replies)
Discussion started by: rohit.shetty84
4 Replies
7. UNIX for Dummies Questions & Answers
Hello all,
New to this forum!
I got a Q: i want to find all files with numbers in the file name. e.g. blabla234.pm or fool654.pl
action i took:
ls | egrep '+'
ls | egrep
ls | egrep +
ls | egrep ''
ls | egrep '(+)'
ls | egrep '()'
ls | egrep '(.*.*)'
ls | egrep '.*.*'
ls | grep... (2 Replies)
Discussion started by: RedGrinGo
2 Replies
8. Shell Programming and Scripting
Hello,
I need help finding a script that will allow me to move files from one directory to another directory 10k files at a time.
I have a directory that has 100 K files in it. I need to have those 100k files broken apart to separate directories each with 10k files in them.
Here is the... (8 Replies)
Discussion started by: Geo_Bean
8 Replies
9. UNIX for Dummies Questions & Answers
Hi,
My first post!!
I have a files with header, something like this
Header_Row
AMC|D1|D2|D2
AAO|D3|D4|D5
AMC|D6|D7|D8
AAO|D9|D10|D11
.
.
.
.
.
and millions fo records thereafter like this.
I want to read the above file in a loop and write the lines having AMC into another... (1 Reply)
Discussion started by: amitbakre
1 Replies
10. UNIX for Beginners Questions & Answers
For shell script. If I had two separate files, file.txt and file1.txt and each has just a list of names from the who command. How would I create an if loop to compare each name? (1 Reply)
Discussion started by: Eric7giants
1 Replies
LEARN ABOUT CENTOS
dlarnv
dlarnv.f(3) LAPACK dlarnv.f(3)
NAME
dlarnv.f -
SYNOPSIS
Functions/Subroutines
subroutine dlarnv (IDIST, ISEED, N, X)
DLARNV returns a vector of random numbers from a uniform or normal distribution.
Function/Subroutine Documentation
subroutine dlarnv (integerIDIST, integer, dimension( 4 )ISEED, integerN, double precision, dimension( * )X)
DLARNV returns a vector of random numbers from a uniform or normal distribution.
Purpose:
DLARNV returns a vector of n random real numbers from a uniform or
normal distribution.
Parameters:
IDIST
IDIST is INTEGER
Specifies the distribution of the random numbers:
= 1: uniform (0,1)
= 2: uniform (-1,1)
= 3: normal (0,1)
ISEED
ISEED is INTEGER array, dimension (4)
On entry, the seed of the random number generator; the array
elements must be between 0 and 4095, and ISEED(4) must be
odd.
On exit, the seed is updated.
N
N is INTEGER
The number of random numbers to be generated.
X
X is DOUBLE PRECISION array, dimension (N)
The generated random numbers.
Author:
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
September 2012
Further Details:
This routine calls the auxiliary routine DLARUV to generate random
real numbers from a uniform (0,1) distribution, in batches of up to
128 using vectorisable code. The Box-Muller method is used to
transform numbers from a uniform to a normal distribution.
Definition at line 98 of file dlarnv.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
Version 3.4.2 Tue Sep 25 2012 dlarnv.f(3)