04-28-2011
I think you havent copied the code completly , you have missed copying "done" .
This User Gave Thanks to palanisvr For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I use the grep command to take mutiple text files in a folder and make one huge text file out of them. I'm using Mac OS X and can not find a text tool that does it so I figured I'd resort to the BSD Unix CLI for a solution... there are 5,300 files that I want to write to one huge file so... (7 Replies)
Discussion started by: coppertone
7 Replies
2. UNIX for Advanced & Expert Users
Hello all,
I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written.
I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Discussion started by: Bashar
2 Replies
3. Shell Programming and Scripting
Hi all,
*I use Uwin and Cygwin emulator.
I´m trying to search for all text files in the current folder (C/Files) and its sub folders using
find -depth -name "*.txt"
The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
Discussion started by: cgkmal
4 Replies
4. Homework & Coursework Questions
Hi
Guys , I am new to this and Hi to all ,Need your help
I am trying to copy Files which are inside file.txt
The files inside file.txt are inthe below order
file1.log
file2.log
file3.log
.......
I want to copy these files to an output Directory ,
Please help (1 Reply)
Discussion started by: hc17972
1 Replies
5. UNIX for Dummies Questions & Answers
Hi all...
Below is what I am trying to do:
1. Having the following folder with the files...
/source_folder/dodiddone.tar.gz
/source_folder/gowentgone.tar.gz
/source_folder/gowentgone.log
2. I need to copy and chown files with extension .tar.gz to another folder
copy... (1 Reply)
Discussion started by: pedroz
1 Replies
6. Shell Programming and Scripting
Hi,
I am looking for assistance over shell or perl (without XML twig module) which replace string in XML file under particular branch..example of code file sample..
Exact requirment : Replace "Su saldo es" in below file with "Your balance" but only in XML branch of Text id=98 and Text Id=12... (7 Replies)
Discussion started by: Ashu_099
7 Replies
7. Shell Programming and Scripting
Hi All,
I want to copy all the contents of a list of files in a folder to a particular file. i am using following command:
cat dir/* >> newFile.txtIt's not working.
Could you please help?
Thanks,
Pranav (3 Replies)
Discussion started by: Pranav Bhasker
3 Replies
8. Shell Programming and Scripting
Hello All
A similar question like this was asked before but I need to change part of the question.
I've two folders, Folder A contains some image files in 150 subfolders;
Folder B contains text files in 350 subfolders.
All image files in Folder A have the same filename as the text... (5 Replies)
Discussion started by: chlade
5 Replies
9. Shell Programming and Scripting
I have a really big XML file. I need copy the value of one tag inside another one tag. I try to publish one example.
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1">Rai 1</channel>
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1 +2HD">Rai 1... (6 Replies)
Discussion started by: Tapiocapioca
6 Replies
10. Programming
Hello Team,
I have 2 files.one contains english text and another contains Japanese. so i have to read english text and replace the text with Japanesh text in third file.
Basically, I need a help to write japanese language in text/xml file.I heard wstring does this.Not sure how do i write... (2 Replies)
Discussion started by: SA_Palani
2 Replies
memory(3C) memory(3C)
NAME
memory: memccpy(), memchr(), memcmp(), memcpy(), memmove(), memset(), bcmp(), bcopy(), bzero(), ffs() - memory operations
SYNOPSIS
Remarks
and are provided solely for portability of BSD applications, and are not recommended for new applications where portability is important.
For portable applications, use and respectively. has no portable equivalent.
DESCRIPTION
These functions operate as efficiently as possible on memory areas (arrays of bytes bounded by a count, not terminated by a null byte).
They do not check for the overflow of any receiving memory area.
Definitions for all these functions, the type and the constant are provided in the header file.
Copy bytes from the object pointed to by
s2 into the object pointed to by s1, stopping after the first occurrence of byte c has been copied, or after n bytes have
been copied, whichever comes first. If copying takes place between objects that overlap, the behavior is undefined.
returns a pointer to the byte after the copy of c in s1, or a NULL pointer if c was not found in the first n bytes of s2.
Locate the first occurrence of
c (converted to an in the initial n bytes (each interpreted as of the object pointed to by s. returns a pointer to the
located byte, or a NULL pointer if the byte does not occur in the object.
Compare the first
n bytes of the object pointed to by s1 to the first n bytes of the object pointed to by s2. returns an integer greater
than, equal to, or less than zero, according to whether the object pointed to by s1 is greater than, equal to, or less than
the object pointed to by s2. The sign of a non-zero return value is determined by the sign of the difference between the
values of the first pair of bytes (both interpreted as that differ in the objects being compared.
Copy n bytes from the object pointed to by s2 into the object pointed to by s1. If copying takes place between objects that
overlap, the behavior is undefined. returns the value of s1.
Copy n bytes from the object pointed to by s2 into the object pointed to by s1. Copying takes place as if the n bytes from the
object pointed to by s2 are first copied into a temporary array of n bytes that does not overlap the objects pointed to by
s1 and s2, and then the n bytes from the temporary array are copied into the object pointed to by s1. returns the value of
s1.
Copy the value of
c (converted to an into each of the first n bytes of the object pointed to by s. returns the value of s.
copies n bytes from the area pointed to by s1 to the area pointed to by s2.
Compare the first
n bytes of the area pointed to by s1 with the area pointed to by s2. returns zero if they are identical; non-zero other-
wise. Both areas are assumed to be n bytes in length.
Clear n bytes in the area pointed to by s by setting them to zero.
Find the first bit set
(beginning with the least significant bit) and return the index of that bit. Bits are numbered starting at one. A return
value of 0 indicates that i is zero.
International Code Set Support
These functions support only single-byte byte code sets.
WARNINGS
The functions defined in were previously defined in
FILES
SEE ALSO
string(3C), thread_safety(5), glossary(9).
STANDARDS CONFORMANCE
memory(3C)