I have reopend this thread becasue the member gave a satisfactory justification for the thread by PM.
Sorry David, seems I was a bit hasty. For future reference if you explain what you are trying to achieve it might avoid this, in particular since you are posting from an educational domain.
INFO:
The program should enter a circle radius and Id for that circle to a file, then it should search for that id and print the radius for that circle.
PROBLEM:
This program compiles but it's not searching properly.
Circle.h
#ifndef CIRCLE_H
#define CIRCLE_H
#include <iostream>... (0 Replies)
Dear all,
I get the situation from my office but i cannot think what is happening. please give me some advise.
1. some file owner and group is changed to a very long number
2. i login as root. when i touch a file or operate on the file like chown, cp, the response is "Read-only file system".... (1 Reply)
Hello,
say suppose i am processing an file emp.dat the field of which are
deptno empno empname etc
now say suppose i want to change the file to emp.lst then how can i do it? Here i what i attempted but in vain
BEGIN{
system("sort emp.dat > emp.lst")
FILENAME="emp.lst"
}
{
print... (2 Replies)
i want to need script..
source.txt
/home/user1/public_html/test3
/home/user90/public_html/test9
.
.
.
/home/user650/public_html/test000
read source.txt and cd /home/user**/public_html/***
and there is 1.txt, 2txt ~~25.txt
and select 6 text files randomly among the... (4 Replies)
Lets say I want to pick a random file when I do an "ls" command. I don't have set number of files in each directory.
ls | head -1
This gives me the first one in each directory, is there a way to do the same but pick a random one. (3 Replies)
Hi
I am new to expect. Please if any one can help on my issue its really appreciable. here is my issue:
I want expect script for random passwords and random commands generation.
please can anyone help me?
Many Thanks in advance (0 Replies)
OK, I am stumpped. I have this shell Script that I want to randomly select a file with the extention of .sct. Then using a portion of its file name select the six related .mot files. Then move them all to another folder. I also need a user input form for the number of .SCT files to randomly select... (6 Replies)
Hello,
I want to choose random columns from big file.
for example: My file contain around 21000 columns and I want to randomly extract 4000 columns from this file.
Anybody has a solution (may be one liner or a function in perl or awk) for this?
Thanks,
R (2 Replies)
Need to use dd to generate a large file from a sample file of random data. This is because I don't have /dev/urandom.
I create a named pipe then:
dd if=mynamed.fifo do=myfile.fifo bs=1024 count=1024
but when I cat a file to the fifo that's 1024 random bytes:
cat randomfile.txt >... (7 Replies)
I have a nice program to change the background but I want it to operate on subdirectories as well.
# Script to randomly set Background from files in a directory
while true;do
# Directory Containing Pictures
DIR="/home/pc/Pictures"
# Internal Field Separator set to newline, so file names... (4 Replies)