Sponsored Content
Full Discussion: % File Copy
Top Forums UNIX for Dummies Questions & Answers % File Copy Post 6050 by Enda Martin on Wednesday 29th of August 2001 03:46:42 AM
Old 08-29-2001
% File Copy

is there a command within unix which will allow you to copy a certain % of the file to a new file.

EG : File a --> Copy 65% of a to give File b
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to copy a file to a directory ,where file and dir are sent as args to a function?

Hi all, I wanted to know how i can copy a file to a directory and then verify if that file is completely copied or not? Now the issues here is that the dir and the source file are to be sent as arguments to a function( this function should actually copy the files to a dir, then check if its... (0 Replies)
Discussion started by: wrapster
0 Replies

2. Shell Programming and Scripting

Bash copy file contents into an existing file at a specific location

Hi all I need to copy the entire contents of one file into an existing file at a specific location. I know the exact line number where I need to put it. It appears I would use either sed or awk to do this, but I have been unsuccessful so far: File A line 1 line 2 line 3 line 4 ... (6 Replies)
Discussion started by: gshepherd7
6 Replies

3. UNIX for Dummies Questions & Answers

Copy a file from a dvd to the local AIX file system

Hi, I am a newbie to AIX, so please bear with me. I have mounted a dvd drive on AIX. I am trying to copy the file that is on the dvd drive on to the local machine. However, I get an error: cp: c1m_0001.gz: A system call received a parameter that is not valid. Can some one point me to the... (1 Reply)
Discussion started by: anurag1510
1 Replies

4. UNIX for Dummies Questions & Answers

Copy a windows CVS file to the unix server as a svs file

I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Discussion started by: zhegal
1 Replies

5. Red Hat

Copy certain file types recursively while maintaining file structure on destination?

Hi guys, I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash. I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also... (1 Reply)
Discussion started by: rockf1bull
1 Replies

6. Programming

how to copy downloaded file into my source file folder (putty/unix)

I need to "Ensure that when you download libchat.a from the VLE you have copied it to the same folder on ius as your source files. You then refer to the library (and the libraries it needs) with: gcc -o outputfile sourcefile.c -L. -lchat -lsocket -lnsl" But I have no idea what this means! (I... (2 Replies)
Discussion started by: fakuse
2 Replies

7. Shell Programming and Scripting

how to copy the directory but not copy certain file

Hi experts cp bin root src /mnt but not copy bin/bigfile any help? ( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum) Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies

8. Shell Programming and Scripting

Change the file name and copy old file content to new file names.

Hi, I have a files in a directory as below :- ls -1 mqdepth-S1STC02 proc-mq-S1STC01 proc-mq-S1STC02 proc-mq-S1STC03 Whereever i have S1STC i need to copy them into new file with file name S2STC. expected output :- ls -1 mqdepth-S2STC02 proc-mq-S2STC01 proc-mq-S2STC02... (3 Replies)
Discussion started by: satishmallidi
3 Replies

9. UNIX for Beginners Questions & Answers

Copy the content from txt file and create a html file

I have a txt file with a list of error messages in a xml tag format, and each error message is separated with a identifier(endresult).Need to split that and copy and create a new html file.Error message has some special character. how to escape the special character and insert my data into the... (7 Replies)
Discussion started by: DevAakash
7 Replies
tail(1) 						      General Commands Manual							   tail(1)

NAME
tail - deliver the last part of a file SYNOPSIS
number] [file] number] [file] number] [file] Obsolescent: [file] DESCRIPTION
copies the named file to the standard output beginning at a designated place. If no file is named, standard input is used. Command Forms can be used in three forms as indicated above: Copy file starting at number blocks from end or beginning of file. Copy file starting at number bytes from end or beginning of file. Copy file starting at number lines from end or beginning of file. with no options specified is equivalent to Options and Command-Line Arguments recognizes the following options and command-line arguments: Follow option. If the input file is a regular file or if file specifies a FIFO, do not terminate after the last line of the input file has been copied, but read and copy further bytes from the input file when they become available enters an end- less loop wherein it sleeps for one second then attempts to read and copy further records from the input file). This is useful when monitoring text being written to a file by another process. If no file argument is specified and the input is a pipe (FIFO), the option is ignored. number Decimal integer indicating quantity of output to be copied, measured in units specified by accompanying option. If number is preceded by a character, copy operation starts number units from beginning of file. If number is preceded by a character or the option name, copy operation starts number units from end of file. If number is not preceded by a or option, is assumed. If both the option and number are not specified, is assumed. Copy file beginning number 512-byte blocks from end or beginning of file. If number is not specified, is assumed. See number descrip- tion above. Copy file beginning number bytes from end or beginning of file. If number is not specified, is assumed. See number description above. Copy file beginning number lines from end or beginning of file. If number is not specified, is assumed. See number description above. file Name of file to be copied. If not specified, the standard input is used. If the option is specified, the input file can contain arbitrary data. Otherwise, the input file should be a text file. Obsolescent Form In the obsolescent form, option letters can be concatenated after the number argument to select blocks, bytes, or lines. If this syntax is used, must be the first argument given. If number is not specified, -10 is assumed. This version is provided for backward compatibility only. The forms discussed previously are recommended for portability. EXTERNAL INFLUENCES
Environment Variables determines the locale for the interpretation of sequences of bytes of text data as characters (e.g., single- versus multibyte characters in arguments and input files). determines the language in which messages are displayed. If or is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty variable. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5). International Code Set Support Single- and multi-byte character code sets are supported. However, the and options can break multi-byte characters and should be used with caution in a multi-byte locale environment. EXAMPLES
Print the last three lines in file to the standard output, and leave in ``follow'' mode: Print the last 15 bytes of file followed by any lines that are appended to after is initiated until it is killed: Three ways to print an entire file: WARNINGS
Various kinds of anomalous behavior may occur with character special files. For piped output, is limited in its output and depends on process limits. SEE ALSO
dd(1), head(1). STANDARDS CONFORMANCE
tail(1)
All times are GMT -4. The time now is 12:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy