command line question  unix/linux file commands?
822848
head -2 threelines | tail -1 threelines\n\n\nI'll break this statement down to explain it\n\nhead -2 threelines :this command displays the first two lines of the file \n this output is sent as a input to the next command ( this is done by |  (pipe)) \n\ntail -1 will display the last line of the output\n\nso if your file is \n\nabc\ncde\nfgh\n\nhead -2 gives\n\nabc\ncde\n\nwhich is the input to tail -1\n\ntail -1 taking this input will give only cde  which the center line in your file \n\nyou can do it using awk also \n\ncat newlines | awk 'NR==2 {print}'\n\nin this you are printing out the lines in the file using cat,piping the output to the awk statement and saying select Number of record=2 and print it out (NR is number of record)
260441
Simple for ms dos command chk out:\n\nhttp://www.microsoft.com/technet/archive/msdos/07_refer.mspx\n\nhttp://www.dewassoc.com/support/msdos/dos_commands.htm\n\nhttp://www.osdata.com/oses/msdos.htm\n\nhttp://www.computerhope.com/overview.htm\n\nhttp://www.groovyweb.uklinux.net/?page_name=ms%20dos%20command%20list%20tutorial\n\n\nFor books:\n\nhttp://www.amazon.com/exec/obidos/tg/browse/-/3850/103-2129879-9095016\n\nhttp://www.microsoft.com/mspress/books/6321.asp\n\n\n--\nBalakumar Muthu\nhttp://i5bala.blogspot.com
1068097
I'll play your silly game! How Do You Clack A File??
160699
#include <iostream.h>\n#include <fstream.h>\n\nvoid main()\n{\n  ofstream output;\n  output.open("outpu.dat");\n\n  output << "Ouput test data";\n\n  output.close();\n}
720429
I don't think there is a command line option for keepalive.  If you are using plink to start putty then you should create a  session and save it then use the -load sessname parameter.  The saved session can have the keepalive parameter.\n\nhttp://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html#plink
191426
I don't have a SUSE machine handy to test, but \ncertainly with RedHat and other Unix variants\nI've worked with, a couple of places to check \nwould be:\n\n1) The output of the command:\n\n   /bin/uname -a\n\n2) The contents of the file:\n\n   /etc/motd
730416
Go Here\nhttp://linux.about.com/od/commands/l/blcmdl1_lftp.htm?terms=ssh+ftp+software
158420
Hi,\n\nLinux equivalent of a batch file is shell script file with extension .sh. \n\nYou need to know shell scripting to write the same.\n\nCheck this..\nhttp://www.injunea.demon.co.uk/pages/page203.htm\n\nCheers!!!\njAY
26253
BASH it is really easy to use. If you are new to shell scripting then Linux Shell Scripting Tutorial http://www.cyberciti.biz/nixcraft/linux/docs/uniqlinuxfeatures/lsst/
79899
just get to file in your command prompt and rename\n\nex.if ur filenmae f1.ex1 you can type\n\nren f2.ex2 where f2 and e2 are new filename and extensions respectively,you can use the old ones also.
863876
Well, the very best place to start is the horse's mouth, so to speak.  Try the URL below for a good starting point.  Also, searching for the term "Linux +tutorial" without the quotes should get you some great sites.  And as a final tip, check out what the man -k command does in Linux.  It is a great way to search for help on something you've forgotten the command for.  Good luck!
979055
the command line prompt is known as your script prompt..\n\nfor example in unix its like $ or %
5876
Look for detailed information on that command and others under boot.ini
129425
Commands for what?  There are hundreds?
225777
From the DOS prompt, type Format c:
746502
You'd write a new command with the appropriate shell commands similar to the way you'd write a batch file in MS-DOS, then mark the new file "executable". Voila, new command now available!
801970
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!