04-20-2011
Sorry thats not the answer for my question..
I need a script to copy all the files and its contents from a any directory structure to a particular location at ur hard drive
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Apologies if this isn't quite the right thread
I have a vi session and I have set a lot of tags with 'mx'. can I save this session preserving these tags so when I go back to the session I don't have to reset them all?
cheers (0 Replies)
Discussion started by: ajcannon
0 Replies
2. UNIX for Dummies Questions & Answers
Hey,
MAILTO=cron@domain.ca
*/20 * * * * /usr/bin/wget http://list.domain.ca/admin/consume.php >/dev/nullthats what the crontab is setup todo, so basically every 20minutes it runs consume.php
In my root directory, i'm getting files like this:
consume.php
consume.php1
consume.php2
i woke... (3 Replies)
Discussion started by: iarp
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have problems in saving/writing files that contains Unicode characters - to be specific ISO-8859-5. The source file contains correct Unicode characters, should I add specific unix scripts before writing the said file?
Many thanks,
ahrong09 (0 Replies)
Discussion started by: ahrong09
0 Replies
4. Shell Programming and Scripting
Hi all
I have a bash script, that loops through a folders files and all subfolders for .shtml files.
It looks for a string and replaces it, creating a backup of the original file.
This all works great, but I'd like, when the backup is done, that the files are then also created in their... (4 Replies)
Discussion started by: terrid
4 Replies
5. UNIX for Dummies Questions & Answers
I want to save a bunch of files to a folder in my current directory. Ho do i refer to my current directory without writing all the path? (2 Replies)
Discussion started by: FelipeAd
2 Replies
6. UNIX for Dummies Questions & Answers
Good morning. I have a piece of code that is currently taking multiple files and using the CAT.exe command to combine into one file that is then sorted in reverse order based on the 3rd field of the file, then displayed on screen. I am trying to change this so that the files are being combined into... (4 Replies)
Discussion started by: jaacmmason
4 Replies
7. Shell Programming and Scripting
hi everyone,
i am a newbie in shell programming. and i want to simply go through a text file that contains 3 "columns", split by ';'
customerID ; link-to-contract ; save-as-filename
so an example would simply look like this
now i want to loop through every line, and save the file from... (3 Replies)
Discussion started by: Confidence
3 Replies
8. Shell Programming and Scripting
Hi Experts,
I am having a requirement like this;
Input file
EIM_ACCT.ifb|1001|1005
EIM_ADDR.ifb|1002|1004
EIM_ABD.ifb|1009|1007
I want to read each line of this file and pass each line,one at a time,as an argument to another script.
eg;
1.read first line->store it to a file->call... (2 Replies)
Discussion started by: ashishpanchal85
2 Replies
9. Shell Programming and Scripting
If the user inputs two variants separated by a comma, the below command is supposed to write both variants to the GJ-53.txt and then to out.txt. Both are written to the GJ-53.txt, however only one is written to out.txt and I'm not sure why. Thank you :).
gjb2() {
printf "\n\n"
... (1 Reply)
Discussion started by: cmccabe
1 Replies
10. Shell Programming and Scripting
Hi,
i need help with a file creation of an output program. I've got a program that with #find creates an output for each files in a directory.
If i give this command :
-o spec$(date -u +%Y%m%dt%H%M)
it creates just one file, overwriting all the others since it is the creation date .... (2 Replies)
Discussion started by: Board27
2 Replies
RL(4) Kernel Interfaces Manual RL(4)
NAME
rl - RL-11/RL01, RL02 moving-head disk
SYNOPSIS
/sys/conf/SYSTEM:
NRL rl_drives # RL01/02
/etc/dtab:
#Name Unit# Addr Vector Br Handler(s) # Comments
rl ? 174400 160 5 rlintr # rl-01/02
major device number(s):
raw: 16
block: 7
minor device encoding:
bits 0007 specify partition of RL drive
bits 0070 specify RL drive
DESCRIPTION
The block files access the disk via the system's normal buffering mechanism and may be read and written without regard to physical disk
records. There is also a `raw' interface which provides for direct transmission between the disk and the user's read or write buffer. A
single read or write call results in exactly one I/O operation and therefore raw I/O is considerably more efficient when many words are
transmitted. The names of the raw files conventionally begin with an extra `r.'
In raw I/O the buffer must begin on a word (even) boundary, and counts should be a multiple of 512 bytes (a disk sector). Likewise seek
calls should specify a multiple of 512 bytes.
DISK SUPPORT
The RL01 drives are each 10240 blocks long and the RL02 drives are 20480 blocks long.
On a RL02 there is room for a full sized root ('a') partition and a reasonable sized swap ('b') partition. The RL01 can only (realisti-
cally) have a single 5mb partition.
FILES
/dev/rl[0-3][a-h] block files
/dev/rrl[0-3][a-h] raw files
/dev/MAKEDEV script to create special files
/dev/MAKEDEV.local script to localize special files
SEE ALSO
hk(4), ra(4), ram(4), rk(4), rp(4), rx(4), si(4), xp(4), dtab(5), autoconfig(8)
DIAGNOSTICS
rl%d: hard error sn%d cs=%b da=%b. An unrecoverable error occurred during transfer of the specified sector of the specified disk. The
contents of the two error registers are also printed in octal and symbolically with bits decoded. The error was either unrecoverable, or a
large number of retry attempts could not recover the error.
rl%d: hard error sn%d mp=%b da=%b. An unrecoverable drive error occured during transfer of the specified sector of the specified disk.
The contents of the two error registers are also printed in octal and symbolically with bits decoded. The error was either unrecoverable,
or a large number of retry attempts could not recover the error.
rl%d: write locked. The write protect switch was set on the drive when a write was attempted. The write operation is not recoverable.
rl%d: can't get status. A ``get status'' command on the specified drive failed. The error is unrecoverable.
BUGS
In raw I/O read and write(2) truncate file offsets to 512-byte block boundaries, and write scribbles on the tail of incomplete blocks.
Thus, in programs that are likely to access raw devices, read, write and lseek(2) should always deal in 512-byte multiples.
DEC-standard error logging should be supported.
A program to analyze the logged error information (even in its present reduced form) is needed.
3rd Berkeley Distribution August 20, 1987 RL(4)