Search Results

Search: Posts Made By: Jomeaide
6,357
Posted By Jomeaide
[Python] Search a file with paramiko
I need to compare the output files in a directory for sftp, looking through a mask.

Return the full file name.

Eg.

I have a file named locally:

test.txt

I must check through sftp, if...
5,458
Posted By Jomeaide
Sorry, my English is not good. I think I put code...
Sorry, my English is not good. I think I put code tags, and ouput result.

I need to get out IDs of all messages stored in the file 1.txt, performing a search in the maillog file.


Not if I...
5,458
Posted By Jomeaide
Filter maillog
Hi,

I need to take them all fields SendTo and ip address from a file maillog


First I look at all emails from containing the empty field.

# zcat /var/log/mail/maillog-20140331.server1.gz |...
1,349
Posted By Jomeaide
I currently solved temporarily. But I do not like...
I currently solved temporarily. But I do not like the solution I have now.


SERVICE="BJBuser"
DIRRECIBIDOBJB="/tmp/home/usuariossftp/BJBuser/archivos/"...
1,349
Posted By Jomeaide
This: mover_fichero(){ ## Compramos los...
This:

mover_fichero(){
## Compramos los ficheros y los movemos.
ls *_FX_* | awk '{system("mv " $0 " " sprintf("userbjbfx%02d", ++i))}'
ls *_SP_* | awk '{system("mv " $0 " "...
1,349
Posted By Jomeaide
Rename files
I am getting some files with this mask:

aaaa_SP_bbb.txt
aaaa_FX_bbbb.txt
aaaabbbb.txt

I want to rename the files containing:

_SP_ -> Rename - >> fileSP.TXT
_FX_ -> Rename - >>...
14,841
Posted By Jomeaide
Honestly, it's a temporary solution. When you can...
Honestly, it's a temporary solution. When you can be able to compare files using md5sum, then I'll change the script.

Of course I prefer to use the md5sum method.
14,841
Posted By Jomeaide
Thank you all for your support. At the end I...
Thank you all for your support. At the end I resolved well.
for a in `ls *.TXT`; do
if [ -f $RECIBIDOS$a ]
then
rm -f $a
fi
done

cp *.TXT $RECIBIDOS

.......

And then...
14,841
Posted By Jomeaide
Sorry, my English is not good. I can also...
Sorry, my English is not good.

I can also use bash.

I have downloaded some files from a url.

Files are downloaded to a directory.

wget --mirror --no-check-certificate --no-directories...
14,841
Posted By Jomeaide
Compare files in directories with md5sum
And not to start. I can compare files, that's easy. The problem is that I compare files in a directory, and check if these files exist in another directory. The problem is that the file names are not...
1,913
Posted By Jomeaide
My recommendation is VirtualBox.
My recommendation is VirtualBox.
Showing results 1 to 11 of 11

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