Search Results

Search: Posts Made By: samit_9999
12,519
Posted By samit_9999
FTP Files from one server to another
Hi,

I want to run a process on server a, pulling files from server b and pushing it to server c.

Can i do that without dropping the files on server a?

Thanks,
Samit
7,195
Posted By samit_9999
Compare 2 files for a single column and output differences
Hi,

I have a column in 2 different files which i want to compare, and output the results to a different file. The columns are in different positions in those 2 files.
File 1 the column is in...
4,303
Posted By samit_9999
Thanks , that worked perfectly as required.
Thanks , that worked perfectly as required.
4,303
Posted By samit_9999
Count occurances in a file
Hi,

I have a fixed width file in the following format

Sr.No A.No Name
1 2 PPP
3 4 PPP
5 6 TTT
7 8 OOO
9 10 OOO
11 12 OOO

The 3rd column starts at position 10 and ends at...
2,069
Posted By samit_9999
Thanks a lot!
Thanks a lot!
2,069
Posted By samit_9999
Cut Question
Hi,

I have created a variable abc within my script which can have values as follows

abc = Ram,Iam
or it can be
abc = Uam
or it can be
abc = Sam,Tam,Pam

Basically it can have a max of 3...
28,940
Posted By samit_9999
Thanks Darwin
Thanks Darwin
28,940
Posted By samit_9999
Variable check for existence ?
Hi ,

I have a script wherein i have a For Loop.
Within this for loop i create a variable and assign it a value.

The script goes to a For Loop only if certain conditions are met , which means...
5,346
Posted By samit_9999
Hi Darwin, What i am really looking for is...
Hi Darwin,

What i am really looking for is to write a ftp script which would accept the following parameters
Server
Userid
LocalFilePath
RemoteFilePath
FTPType - whether binary or ascii...
5,346
Posted By samit_9999
For Loop
Hi,

I have a script to which i can pass n number of parameters.

Example unix_script.sh abc.txt pqr.txt

I want to check if the the files have any records or not .

I want to do this using...
3,490
Posted By samit_9999
Thanks Jim Sam
Thanks Jim

Sam
3,490
Posted By samit_9999
Assigning a Variable all the Parameters passed
Hi,

I have a unix script which can accept n number of parameters .

I can get the parameter count using the following command and assign it to a variable
file_count=$#

Is there a similar...
7,958
Posted By samit_9999
Great. Thanks a lot
Great.

Thanks a lot
7,958
Posted By samit_9999
File Concatenation
Hi,

I want to write a generic shell script, which can concatenate n number of files passed as parameter ;to an output file which is again a parameter

Example
catfl.sh outfl.txt a.txt b.txt...
4,852
Posted By samit_9999
Hi Ygor, I tried using this grep...
Hi Ygor,

I tried using this

grep emailkey1 abc.txt | cut -d: -f2 | paste -s -d,

However it errored out saying

paste: Usage: paste [-s] [-d List ] File1 ...
4,852
Posted By samit_9999
Thanks all of you for the various solutions. ...
Thanks all of you for the various solutions.

Appreciate your help
4,852
Posted By samit_9999
Thanks for those answers. Appreciate your help ...
Thanks for those answers. Appreciate your help

i tried something from my end

for sAddress in `grep ^emailkey1 abc.txt | sed 's/^.*\://'`
do
sMailGroup=$sAddress","$sMailGroup
done
...
4,852
Posted By samit_9999
Vow!! Any other simpler way for a novoice...
Vow!!

Any other simpler way for a novoice like me to understand :)
4,852
Posted By samit_9999
Let me put this in better words I want to...
Let me put this in better words

I want to write a shell script where i pass key as the parameter and i want all the email addresses within that key concatenated by a comma
4,852
Posted By samit_9999
Its a simple script.. wherein i just pass...
Its a simple script.. wherein i just pass emailkey as the parameter. It shoud search for all the email addresses corresponding to the email key , based on which i have to send emails to people.

It...
4,852
Posted By samit_9999
For Loop and concetnating values in a variable
Hi,

I have file abc.txt which has keys and emails addresses

abc.txt
emailkey1:sam@abc.com
emailkey1:tom@abc.com
emailkey2:rqw@abc.com
emailkey2:tut@abc.com

I have a shell script where i...
Showing results 1 to 21 of 21

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