Search Results

Search: Posts Made By: aspire
1,716
Posted By aspire
Wow!!! Thank you @yazu, '"$name"' works like a...
Wow!!!
Thank you @yazu, '"$name"' works like a charm!
Thanks again for your help :)
1,716
Posted By aspire
(i want to send messages through a script) ...
(i want to send messages through a script)

Thank you @itkamaraj for your help :), however "$name" seems not working...


sed: -e expression #1, char 5: unterminated address regex
Name1...
1,716
Posted By aspire
sed error
Please, i need a little help :)

#!/bin/bash

for file in *myfile*; do
read name
echo "$name" #ok!
lynx -dump "$file" >> lynxdump.txt #ok!
cat lynxdump.txt | sed '/'$name'/!d'
done <...
8,774
Posted By aspire
$ date --date "Jan 1, 1970 + 365 days" Fri Jan...
$ date --date "Jan 1, 1970 + 365 days"
Fri Jan 1 00:00:00 CET 1971

...this is another way but i think you must search trough all options in date man pages...

ps: i dont use ksh

EDIT/ADD:...
3,916
Posted By aspire
LOL...Thank you :P
LOL...Thank you :P
3,916
Posted By aspire
Thank you @radoulov :) Last question: ...
Thank you @radoulov :)

Last question:

So, how can i unset http_proxy variable before exit to the script?
8,774
Posted By aspire
like this? $ date -d @1 output: Thu Jan ...
like this?

$ date -d @1
output:
Thu Jan 1 01:00:01 CET 1970
You must convert days in seconds i think...

(Sorry...I dont know if there is a better solution :P )
8,774
Posted By aspire
Sorry I dont know well bash script and sed :P but...
Sorry I dont know well bash script and sed :P but i think you can start from this:

$ chage --list [user] | sed -e '1!d' -e 's/^.*\: //'

change [user] with a true user and you can make a script...
3,916
Posted By aspire
export variable question
simple question:

for example if i use:

export http_proxy=proxy:8080

and i have this script:

while true; do
....
lynx Google (http://www.google.it)
;;
wget The UNIX and Linux Forums -...
20,556
Posted By aspire
After some tests I think zenity have some...
After some tests I think zenity have some limitations..

So for example:

while true; do
blablabla...
"browser")
exec iceweasel
zenity --info --title "title" --text "text"
;;
open browser...
1,452
Posted By aspire
Many many thanks :)
Many many thanks :)
1,452
Posted By aspire
Simple sed command
I have some troubles with this:

insert (at the beginning of line) character "#" from line 5 to line 15
6,248
Posted By aspire
thank you for your help sauron :)
thank you for your help sauron :)
6,248
Posted By aspire
how to use in bash variables and quotes
I have some troubles with variables and quotes...

I want:

if $URL is empty (no user input) go to http://www.localhost/index.php/ else add this string (search) "?s=+$URL"

EXAMPLE:
No user...
20,556
Posted By aspire
Solved, thank you! ;)
Solved, thank you! ;)
20,556
Posted By aspire
Zenity Menu
I have some troubles with zenity and menu.

I seach for:

MAIN MENU
CHOICE 1
"do something"
CHOICE 2
"do something 2"
CHOICE 3
"do something 3"

But then in "do someghing [1-3]"...
7,908
Posted By aspire
Many thanks vgersh99, I solved in another...
Many thanks vgersh99,

I solved in another way but i use aspire.awk in another my script :)
Very usefull for me!!!

Thanks again for your help and ypur time :)
7,908
Posted By aspire
very thanks vgersh99 :) So, now your script...
very thanks vgersh99 :)

So, now your script is good for google.com but i have some problems with others pages...

I try aspire.awk with lots of random www pages... and the result isn't always...
2,266
Posted By aspire
solved, with a pipe :) ... | zenity...
solved, with a pipe :)

... | zenity --text-info

very simple :)
7,908
Posted By aspire
If you use my example your script is ok, thanks...
If you use my example your script is ok, thanks ;)

but if you try with others www pages there are some problems...

so for example try this:

$ lynx -dump http://www.google.com > foo1.txt ;...
7,908
Posted By aspire
Thanks for your help :) @vgersh99 $...
Thanks for your help :)

@vgersh99

$ chmod +x aspire.awk
$ nawk -f ./aspire.awk google.com
$

Uhm...no otuput... my mistake?
2,266
Posted By aspire
So... a little help... while read name;...
So... a little help...


while read name; read line
do
printf "%s\n" "$name"
wget -O - [other options] "$line" | sed ...
echo
done < "$FILE"


How can view this output inside zenity?
7,908
Posted By aspire
... [edit]
...
[edit]
7,908
Posted By aspire
Thanks for your help quirkasaurus :) $ lynx...
Thanks for your help quirkasaurus :)

$ lynx -dump Google (http://www.google.com/intl/en/) > google.com

var change:
#!perl
$fin = "google.com";
....

script output:


.


.


...
7,908
Posted By aspire
[lynx dump] Order (by name/URL)
Hi :)

How to use dump in lynx.

$ lynx -dump http://www.google.com
So, this is an example of a lynx dump:


[1] txt1 [2]blabla [3]Other txt
[4] some text
1. http://url_of_txt1
2....
Showing results 1 to 25 of 28

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