Search : in
By :

Copy some lines from one file to another

Last answer on Dec 15, 2008 1:31:43 pm GMT Rahul, on Jul 7, 2008 5:40:08 am BST 
 Report this message to moderators

Hello Gurus,

I am extremnely new to scripts

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\­fcharset0 Courier New;}{\f1\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 ProMAX Data Export: Parameter Table - PreSTM_VELO_RMS\par
Area: 3d Line: khag-matim-sps\par
CDP X Coor Y Coor Inline
------------------------------------------------------------­----
17533.0 3239887.5 1081418.2 1020.0

up to the six line it is the header of the file ,Whic may be the 10 in another file so i have to ask user that upto when your header is and say user type 10 in the above file it will be 6 then it should copy upto 6+1 in the another file.

can any body please guide me on this ?

Thanks & regards

Configuration: Windows XP
Firefox 2.0.0.15

Best answers for « copy some lines from one file to another » in :
[Linux]Managing file attributes on ext2 Show[Linux]Managing file attributes on ext2 chattr Attributes List -A -c -I -E lsattr - chattr ==Introduction== The Second Extended Filesystem (ext2) and the Third Extended Filesystem (ext3) contains file attributes that are less...
Detect the type of file ShowDetect the type of file Under the system Unix and Linux, the file extension does not have any importance, i.e a file named file.jpg can even be an HTML page like a sound file under format WAV which can be accessed with the existing...
How to read a file line by line ShowHow to read a file line by line Intro Tips Bonus Intro One of the most common errors of learning scripts bash on GNU / Linux is to read a file line by line, is to use a loop "for" (for line in $ (cat file.txt) do. ..), which in this...
Download Codec pack all in one ShowCodec Pack All-In-One is a codec collection allowing to read films in DivX format and the similar formats (DivX, XviD, AC3, etc.). Codec Pack All in 1 6.0.3.0 contains: · DivX 6.1.1 · XviD Codec 1.1 · DivX, XviD - FFDShow 17.02.2005 Alpha...
Download Locked Files Wizard (ex CopyLock) ShowA program, a folder or a fil used by a process can't be moved or erased. Locked Files Wizard (LFW) is a wizard allowing to move, delete or rename a file or a folder, even if it's used by a process. This program also allows to stop running process...
Download Extract Link ShowDescription The application is designed by spadix software. Extract Link is a tool that allows you to search and extract link from any type of file. Simple and easy to use, the application has been awarded from various popular places. Offering an...
Linux - Tree structure of files ShowFile hierarchy under Linux To ensury compatibility and portability, Linux systems comply with the sole FHS (File Hierarchy Standard) standard. The basic hierarchy is as follows: /the root, containing the main directories /bincontains...
File sharing in Windows XP ShowAdvantages File sharing involves making the content of one or more directories available through the network. All Windows systems have standard devices making it easy to share the content of a directory. However, file sharing may lead to security...
Linux - The shell ShowIntroduction to the shell The command interpreter is the interface between the user and the operating system, hence the name "shell". The shell therefore acts as an intermediary between the operating system and the user thanks to command lines...

1

softwins, on Jul 7, 2008 10:18:06 am BST
  • +3

I think that there is a command missing




Search for the linking command it will copy automaticly .

Reply to softwins

2

 nitin jain, on Dec 15, 2008 1:31:43 pm GMT
  • +8

Hi,
i depirately need a DOS command that can copy a function/some line of code from network/share area and paste it to the another function (this function is inside one class. we know the class and function name already just want to append sone line in that function), I want to make a batch file that contain DOS command so that when user run this Batch file all the replacement work will done automatically. Please repply

Reply to nitin jain