Explain the task by the following pipeline. Can u simplify to use 2 commands instead of 4 ls -t `grep fork* .c
414780
I believe you're trying to do some kind of piping with Unix script commands... It's been ages since I've done it myself, but I'm sure you'll find plenty of documented sources on the Net. You can also try and install one of those free Linux distributions to test the script.
989627
Here's a tutorial on creating makefiles.
284746
go to pimpthespace.com and you're set from there you'll actually have to copy and paste a bunch of commands
160039
or you could write a batch file that has something like\n\nexec C:/path/to/file.exe\nexecC:/path/to/next/file.exe\n\nput this into a txt file then save it as a .bat it will execute the first program then when it is done it will execute the second program
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)
887610
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
674232
Basic Linux Commands:\nhttp://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html\n\nAn A-Z Index of the Linux BASH command line\nhttp://www.ss64.com/bash/
966120
try this stuff... pls understand the logic...\n\n#include<stdio.h>\n\nint main()\n{\nint no,rem;\nscanf("%d",&no);\nwhile (no)\n{\nrem = no % 10;\nprintf("%d",rem);\nno = no / 10;\n}\n}
851770
take the log\nso log b= log (1+(r/n))^n*t\nlog b = nt log (1+(r/n))\n{(log b)} / {log (1+(r/n))} = nt\n[{(log b)} / {log (1+(r/n))}] / n = t\ni hope those parenthesis dont mess u up lol\ni just learned this in school
405813
but... why?\n\nand how is your command a question?
1058367
Almost all unix commands work with parameters - are you looking for a program which would interactively let you specify the parameters for all commands? That's actually an interesting idea, but I think you would need to just take one of the unix shells (bash, sh, ksh), go through all of the commands manually and write an interactive version for each one. You would in effect be creating a new type of shell...
849130
sort +3 filename | head -4| tee /dev/tty output.txt\n\n\nhere what you are doing is sorting the lines on the 4rth field ,taking the first 4 lines and then sending it to the terminal as well as redirecting it to output.txt ,the tee command does that...to learn more about it\n\nhttp://www.computerhope.com/unix/utee.htm\nhttp://softpanorama.org/Tools/tee.shtml
977307
well your question is quite confusing are you asking to list all the processes created by a specific user and then kill them ? \n\nto list the processes by a specific user \n\nps -Ul mervin\n\n(where mervin is the user name)\n\nto kill them ...this script would do\n\nps -Ul mervin | awk '{print $1,$4}' | \n  while read line\n     do\n        print "&#92;n Do you wish to kill the process $line "\n       read ans;\n        if [ ans=="Y" ] ;\n           then\n              proc=cat $line | awk '{ print $4 }'\n              kill -9 $proc\n        fi\n   done\n\n\nlet me know if this was what you wanted
603755
I assume you are trying to calculate the speedup due to pipelining.\n\nWithout pipelining there are still k pieces of n-instruction work to be done, so the time to complete the non-pipelined (scalar) work will be:\n\nTs = n * k * t\n\nWith pipelining where the pipeline latency is one clock cycle, then the time to complete the pipelined work will be:\n\nTp = (k + (n - 1)) * t\n\nThe speedup will be:\n\nS = Ts / Tp\nS = (n * k * t) / ((k + (n-1)) * t)\nS = n * k / (k + (n-1))
932108
The grep command has a -v switch that tells it to spit out everything EXCEPT what matches the next parameter.  Backticks (`) tell Unix to run what's between them and substitute the result for that part of the command line.  So...\n\nwho | grep -v `whoami`\n\n...should do the trick
510863
http://www.gnu.org/software/make/manual/html_node/How-Make-Works.html
680504
/*\nOriginal Question:\nI am writing a C program in Solaris environment...if i\nwant to execute some system command i can do it using\nsystem("string to be executed")....but it accepts string\nonly. what if i want to pass some variables to system at\nrun time....suppose i was to use this commands at runtime\n"cat file1 file2 >file3"....how i wud pass the file names?\nany suggestions !  thnx in advance Amardeep Sidhu\n*/\n\n#include <stdlib.h>\n#include <stdio.h>\n\nint\nmain(int argc, char* argv[])\n{\n\n  /* First, get some values into variables */\n\n  char *str1 = "ls";\n  char *str2 = "-l";\n  char *str3 = "/tmp";\n\n  /* One common trick to using "system()" is */\n  /* to "sprintf()" the arguments into a buffer */\n  {\n    char buffer[100];\n    sprintf(buffer, "%s %s %s", str1, str2, str3);\n    system(buffer);\n  }\n\n  return 0;\n}