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 Introduction Isattr chattr Attributes List -A -S -a -c -D -d -I -i -j -s -T -t -u -E -X -Z
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...
[Sed] Delete one or more lines from a file Show[Sed] Delete one or more lines from a file Removing one (or several) line (s) of a file Syntax: sed '{[/]||[/]}d' sed '{[/][,][/]d' /.../=delimiters n = line number...
Download CopyTrans Suite ShowCopyTrans Suite is a set of practical tools for your Ipod or Iphone. It contains: · CopyTrans v2.37 · CopyTrans Photo v2.21 · iLibs v1.13 · iCloner v1.07 · CopyTrans Doctor v1.015 · CopyTrans Manager v0.720 · SyncGuardian...
Download HFS (Http File Server) ShowHFS is a ultra-simple way to share files with friends. · Launch HFS · Slide above it the file to be shared. And that’s all ! The directory is accessible from any browser. It is ultra-simple and no installation is necessary (HFS is only...
Download Snap Links ShowDuring an internet search, you normally obtain more than one result at the time. It is not always easy to open all the links one by one. Snap Links is a Firefox extension allowing to select several links at the same time and open them simultaneously....
Linux - The Vi editor ShowIntroduction to Vi Despite its very limited ergonomics, Vi i is one of the most popular text editors texte under Unix type systems (with Emacs and pico). Under Linux, there is a free version of Vi called Vim (Vi Improved). Vi (pronounced vee-eye)...
FTP protocol (File Transfer Protocol) ShowIntroduction to FTP protocol FTP protocol (File Transfer Protocol) is, as its name indicates a protocol for transferring files. The implementation of FTP dates from 1971 when a file transfer system (described in RFC141) between MIT machines...
UNIX - Files ShowIntroduction to UNIX files In UNIX systems any element is represented in the form of a file. All files are architectured around a single tree structure where the base, called the root, is written "/". File types UNIX systems define different...

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