Search Results

Search: Posts Made By: rwu
2,568
Posted By rwu
Try this. file1 is the file with fewer lines. ...
Try this. file1 is the file with fewer lines.

#!/bin/bash
PATH=/usr/bin:/bin
export PATH

exec 3<file1
exec 4<file2

while read a 0<&3; do
read b 0<&4
echo $a $b
done
4,148
Posted By rwu
How about: grep -A1 -B1...
How about:

grep -A1 -B1 "some_string"
2,125
Posted By rwu
I would try to get tar.exe from the same place...
I would try to get tar.exe from the same place you got gzip.exe.

A quick google search gives me this:
Tar for Windows (http://gnuwin32.sourceforge.net/packages/gtar.htm)

If you are doing this...
3,431
Posted By rwu
You can try the following bash script. ...
You can try the following bash script.

#!/bin/bash
PATH=/usr/bin:/bin
export PATH

exec 3<file1
exec 4<file2

while read a 0<&3; do
read b 0<&4
echo ${a:-$b}
done

#...
9,802
Posted By rwu
Something like this would probably be better done...
Something like this would probably be better done with perl, as you can put the whole matrix in memory.

If you still want to use a shell script, here is one. By the way, I think you meant a...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 10:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy