If there are fifty lines in a file. i must extract the middle ten line and must stored it in another file using PERL commands
124913
#!/usr/bin/perl -w\n\nuse strict;\n\nopen( INPUTFILE, "input.txt" ) ;\nmy $startCaptureLine = 10;\nmy $numLinesToCapture = 10;\nmy $curLine = 1;\nmy $capturedLines = "";\nforeach (<INPUTFILE>) {\nif( $curLine >= $startCaptureLine \n     and $curLine <= $startCaptureLine + $numLinesToCapture - 1 ) {\n$capturedLines .= $_ ;\n}\n++$curLine;\n\n}\nprint "$capturedLines";\n\nexit 0;
413648
you should research the "awk" / "gawk" commands in unix. they can do this work.  you may also need "sort"
417921
Frankly, the quickest way to do this from Perl is to use backticks (the ` which is by numeral 1 on top of the keyboard), which executes the contained string as a system call. You can issue `cp -R $whatever /$where/$ever` to recursively copy, and `rm -rf $whatever` to recursively delete. This is assuming that you're operating on a Linux/Unix/MacOSX environment (I hope so--I don't feel great about Perl on Windows).\n\nOtherwise if you're bent on doing this yourself, check CPAN for File::Find, which has great recursive file handlers. One line of code does most things you want, it's just not particularly pleasant trying to get it working.\n\nWhen I program in Perl, I take every shortcut the language give me. As it's founder said (something like this): Make the easy things easy and the hard things possible.\n\nGood luck!
554630
You can generate this in one line of Perl, Unix scripting, or a small C/C++ program.  Simply write one number per line from your program counter.  You may have to get tricky and use two long ints, but it's not hard.\n\n Realize that your document may be very large, and for most purposes, you don't need a document, just use the variable(s) in your final program.
541406
50 (5 x 10, 2 x 5 x 5, and 50> 49)
677132
file-save as and select other format
352626
what u have done in ur coding is, simply get and input from the user and then display it...\nwhat u need to do is save those inputs into an array..so that the user will be able to at least enter the information about 100 Hobbits\nU can use a two dimensional array to save the user inputs..\nAlso the user should be given the option to continue entering more hobbit information, or view already entered information..
405955
Use any zip softwares and use extract to option to unzip the specific file. Make sure the destination you have chosen is right.
481426
lookup the man pages for "ls", "sort" and possibly "exec"\n\nthese commands can everything you're asking.  every answer is less than 100 characters on a single line.\n\n have fun!  welcome to unix
353002
Insert:  <br><br>\n\nIf you want more line breaks, just another <br> for each one..
625276
You can convert one of the lines to a PLine and then join the rest.\n\ncommand line: pedit  - pick one line - say yes to covert it.  Then type 'J' to select join.  The last thing to do is select all the lines.  Hit enter and your done.\n\nAs long as all the endpoints meet (and they are all on the same 'Z' plane) you will have one object.
16439
The next line is 312211. First line : 1\nSecond line describes the first line : One-one (11)\nThird line describes the second line : Two-ones(21)'\nFourth line describes the third line : One-two, One-one (1211).\n\nEtc.\n\nSo, the sixth line would be 3 one's, two two's, and one one = 312211
203831
grep -v "^$" filename > newfilename\n\nThe ^$ within the quotes is a regular expression: ^=beginning of line, $=end of line, with no characters between.
215596
Ok, basically your command is displaying a list of all files in the current directory based modification time that have a file name pattern of fork*.c where the * is any combination of characters followed by a period and then a c.    Next that listing is passed to the cut program which does something about further slimming down the results.  finally all the information is passed to sort which will return results removing any duplicates.    \n\nalright.. well with that said, hopefully that makes sense... now how you could simplify that into 2 commands is a bit beyond my know how but.. but i imagine you could probably use ls and grep only.  grep is a very powerful application and you can do many things with it.. i'd do some research on it and see what you can figure out.
36564
Use the following syntaxis:\n\nLike *[#]*
298650
Go to Perls they have a lot of stuff
550038
Type your line then put <br> or <p> between the lines like:\nblah\n<br>\nblah\nor \nblah\n<p>\nblah