Search Results

Search: Posts Made By: kenray
2,024
Posted By kenray
get value outside loop
Hi Gurus,

Need a little help in storing a value outside a loop, see below.


#!/bin/sh
db[0]="db"
db[1]="a_db"
db[2]="b_db"
db[3]="c_db"
db[4]="d_db"
db[5]="e_db"
db[6]="f_db"...
1,292
Posted By kenray
rsync delema
Hi Gurus,

I've been searching for quite sometime but can't find the right answer for this.

I need to rsync symbolic files from sender -> receiver without replacing the receiver's existing...
1,850
Posted By kenray
Thanks, both should do the trick
Thanks, both should do the trick
1,850
Posted By kenray
array to choices .. lost
Hi Im' trying to output a list of files then make the list files as choices, need someone to give me hand.

so far here is what i got.. a bit messy

#!/bin/sh

menu_str=`ls -1 file*`

cnt=0...
3,385
Posted By kenray
am i causing trouble? sorry for that. ill try to...
am i causing trouble? sorry for that. ill try to be much clearer

my first post is:

file1
$1 $2

file2
$1 $2
####################
while my 2nd post is:
file1
$1 $2 $3

file2
$1 $2

...
3,385
Posted By kenray
hi thanks for the reply, i missed something...
hi thanks for the reply,

i missed something during my first post since it was 2 strings only...like:

file1:
a 1
b 2

file2:
1 something
2 nothing

output to:
a 1 something
b 2 nothing...
3,385
Posted By kenray
yes but i was using 2 lines on both files, can't...
yes but i was using 2 lines on both files, can't seem to do it on 3 lines
3,385
Posted By kenray
awk compare 2 files
Hi i hope some awk gurus here can help me.. here is what i need i have 2 files:

File1
152445 516532 405088.pdf
152445 516533 405089.pdf
152491 516668 405153.jpg
152491 520977 408779.jpg...
4,859
Posted By kenray
wow thanks a lot!!! the really helped!
wow thanks a lot!!! the really helped!
4,859
Posted By kenray
ahh yes, sorry for that file1: ...
ahh yes, sorry for that

file1:

404905.jpg 516167
404906.jpg 516168
404917.psd 516183
404947.pdf 516250

file2:

516250 /tmp/RecyclePoster18241.pdf
516167 /tmp/ReunionCardFINAL.jpg...
4,859
Posted By kenray
hi thanks for the reply, example in line 1...
hi thanks for the reply,

example in line 1 of file1 which is:
404905.jpg 516167

i need to replace 404905.jpg with /tmp/ReunionCardFINAL.jpg using file2 line which would result in

516167...
4,859
Posted By kenray
shell script to find and replace a line using a identifier
Hi all

im having trouble starting with a shell script, i hope someone here can help me

i have 2 files

file1:

404905.jpg 516167
404906.jpg 516168
404917.psd 516183
404947.pdf 516250...
Showing results 1 to 12 of 12

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