Search Results

Search: Posts Made By: Euler04
2,242
Posted By Euler04
vi calling template
Hello.
I want to copy temp files when I make a new file by vi.
For example,
09:32:52 ~/ $ mkdir test
09:33:03 ~/ $ cd test/
09:33:09 ~/test/ $ ls
09:33:16 ~/test/ $ vi test.cpp
09:34:37...
2,821
Posted By Euler04
FTP repeat sending files
Hi everyone.
I wrote a ftp script for sending files.
while read FNAME
do
# Begin ftp
ftp -i -n $HOST << END
user $USER $PASSWD
put $FNAME $FNAME
quit
END
# End ftp
done <...
1,700
Posted By Euler04
Thanks All!!
Thank you cbkihong.
I think (?<!End) in your script doesn't work:
22:18:22 ~/ $ cat test.pl
#!/usr/bin/perl

chomp($line = <>);
$pat = qr/(?<!End).*?<a\ href\=\"(.*?)\">(.*?)<\/a>/;
$count =...
1,700
Posted By Euler04
Perl or RE help!
Hi everyone.

I have an chomped html 1.html:
<html>somestringEnd<br></html>
and 2.html
<html>somestring<a href="URL3">NAME1</a>End<br>hello2</html>
and 3.html
<html>somestring<a...
33,490
Posted By Euler04
Thank you for your help. Well I will give it...
Thank you for your help.
Well I will give it up, and do it with C.
Thanks!
33,490
Posted By Euler04
Float and Double in Perl
HI!

What is the notation which correspond to C's
doubleandfloatin Perl??

Please tell me.
Thanks.

Well what I want to do is, for example, calculatingsqrt(2)in two way: float and double.
24,118
Posted By Euler04
I will learn this. THANK YOU!
I will learn this.
THANK YOU!
24,118
Posted By Euler04
Thank you for kindness. This is my env. ...
Thank you for kindness.
This is my env.

ftp> help
Commands may be abbreviated. Commands are:

! disconnect lpage nlist rate sndbuf
$ ...
24,118
Posted By Euler04
rsync in ftp
Hello, everyone.

I want to UP files in folder: FROM which is in local.
to server folder: TO by ftp script.

cd /$HOME/FROM

# Begin FTP
ftp -i -n $HOST << END
user $USER $PASSWD

#...
3,573
Posted By Euler04
Thank you very much, cbkihong. I understood a...
Thank you very much, cbkihong.
I understood a lot.
3,573
Posted By Euler04
Perl help!! (pack()?)
Hello everyone.

I wrote a perl script to get the two answers from a value: x.
By this, I want to do sqrt($x) in different precision.
#!/usr/bin/perl

print "Input the initial value x:\n";...
Forum: IP Networking 10-10-2005
5,596
Posted By Euler04
SMTP mail
I want to send e-mail from my yahoo account.
But
mail -s "title" *@yahoo.com < line.txt
is from my local address to *@yahoo.com.
How can i do this?
7,937
Posted By Euler04
Thanks
Thank you Perderabo.

But I want to do this on variables, so sed -e will do.
7,937
Posted By Euler04
capital sed
Hi everyone.
I wanted to convert capital characters to small one.
So i tried to use:
sed -e "y/[A-Z]/[a-z]/"
but this won't work.
And
sed -e...
2,045
Posted By Euler04
I was fool. Thank you for your help. ...
I was fool.
Thank you for your help.

Euler04
2,045
Posted By Euler04
dot files
Hi, everyone.

I'm now using rsync command, and please tell me what is the wildcard for below looks like.
I want to chose dotfiles, such as
.ipod
.apple
but i don't want to chose
.
and
.....
6
13,783
Posted By Euler04
Well, I have some info about the file name, so...
Well, I have some info about the file name, so it's not the point for me.
Also, wget can get the directory, so we can use wildcards after the download, i think.

Thank You.
6
13,783
Posted By Euler04
Thank you vino! wget is perfect, i think. ...
Thank you vino!
wget is perfect, i think.

Ah... in fact, I don't want to download this forums' files.
6
13,783
Posted By Euler04
curl
Aren't there any way to download files as below?
For example, I want to download all .html files under the root directory of unix.com/
curl -O https://www.unix.com/*.html
This won't work, but...
4,635
Posted By Euler04
Thanks vino. I can use this. And your code is...
Thanks vino.
I can use this.
And your code is simple!
4,635
Posted By Euler04
search and replace by bash
Hello everyone!

I have a file: text.txt

and also a list of replacement: replace.txt (tabbed)

is isn\'t
Mac Windows
will won\'t
\.\n \! <--- ! plus 2 spaces


I want a script which...
90,149
Posted By Euler04
My env is Japanese, so this happened. Thank you...
My env is Japanese, so this happened.
Thank you for modification!
90,149
Posted By Euler04
This does works exept for the 1st day of the...
This does works exept for the 1st day of the month.
date | awk '{printf"%4d%2d%2d\n",$6,$2,($3-1)}' | sed 's/ /0/g'
2,736
Posted By Euler04
Thank you. It's beautiful! And it can be...
Thank you.
It's beautiful! And it can be applied to other scripts.

Well, how about the real expression that matches only top of a file?
2,736
Posted By Euler04
using date for a file name
Hi everyone.
I've made a script which rename *.jpg files by the date: *.jpeg becomes 050713*.jpeg.
#!/bin/bash

echo Please input the YearMonthDate \(each in two numbers\).
read date
ls -l |...
Showing results 1 to 25 of 31

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