here is the screen shot of both the script and output i don't get it??
I have FILE_A which has over 300K lines and FILE_B which has over 30M lines.
I created a bash script that greps each line in FILE_A over in FILE_B and writes the result of the grep to a new file.
This whole process is taking over 5+ hours.
I'm looking for suggestions on whether you see any way of improving the performance of my script.
I'm using grep -F -m 1 as the grep command.
I need a script that could take in a line from one file and match the line up with codes in the order file.
My first file, called names.txt ,contains:
>123456789
>987654321
>15946873
>157987513
The other file, called data,contains:
GB_00012.faa
GB_6789333.faa
GB_100098.faa
GB_1237700.faa
All the data files contain a line startin with ">" symbol, and contai
I am trying to get some patches off of some solaris boxes but my ssh command line in this script is screwing up:
Code:
sh -n -o Batchmode=yes ${HOST} "uname -a ;ls -ltr /var/sadm/patch | grep -v 123456789-01">>${OUT_FILE};
Here is the full script:
Code:
#!/bin/ksh
#
################################################################################
#
# file: get_patch_so
Hello, could you please help with this one.
Hi,all of you!I wrote some codes to test setvbuf function in linux.Here are the codes:#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
char buf[10];
int main()
{
if((setvbuf(stdout,buf,_IOFBF,10)) != 0) {
fprintf(stderr,"setvbuf() failed: %s\n",strerror(errno));
exit(1);
}
printf("123456789&qu
Hi I am trying to write a script which runs until the host is up. i got it figured out that it needs to be in loop till it return $? = 0.
Not getting it through though. I am not sure about the 6th line !!!
Code:
#!/bin/sh
HOSTS="host.txt"
ping(){
for myhost in "$HOSTS"
do
ping -c -1 "$myhost" && $?
Hey everyone, I have a very simple BASH shell script that simply checks what processes I have running on a few different nodes, which are preknown. Currently, my script spews out all the processes on all the nodes, but I'm really only interested in one process per node. The processes I am interested are the only .exe processes on the nodes.
I'm trying to run a node.js script at boot using crontab.
Here's the command
/usr/local/bin/forever -c /usr/local/bin/node start /var/www/html/lights.js >/var/log/lights 2>&1 &
At reboot, the cron log says that the command was executed, but the lights log shows this
/usr/bin/env: node: No such file or directory
Running the command works, just not when cron runs it.