Search Results

Search: Posts Made By: Paulw0t
10,287
Posted By Paulw0t
Running Sed on a file.
I'm taking in an arguement thats sorted in $file.

The $file contains a file name like file1.txt or something all files are in the same directory as the script..

Can I run sed on the file ? I...
1,394
Posted By Paulw0t
Sed Help.
I think I should be able to do this with sed..

I'm taking the QUERY_STRING from a HTML form so it will come out like

sensor=1&status=ON

The number will only go 1 - 4 and the On or Off will...
2,131
Posted By Paulw0t
if statement with or's in it.
I'm trying to run an if statement that takes multiple case's

if [ $# -eq 0 or "$1" = '--help' or "$1" = '-h'] ; then

Thats the current cost i'm using I've tried a few different versions but...
5,150
Posted By Paulw0t
Thank you that worked great.. eval...
Thank you that worked great..

eval "$lastcmd"
5,150
Posted By Paulw0t
lastcmd="sed -e 's/http:/<li><a href=\"http:/'|...
lastcmd="sed -e 's/http:/<li><a href=\"http:/'| sed -e 's/http:.*/&\">&<\/a>Web Link<br>/'| sed -e 's/.*[0-9]. mailto:/<li><a href=\"mailto:/'| sed -e 's/mailto:.*/&\">&<\/a>Email Link<br>/' | sort |...
5,150
Posted By Paulw0t
Thanks the eval worked... but it doesn't full...
Thanks the eval worked... but it doesn't full work with the varible... tried with echo didn't seem to work. Just outputed it to the screen.


t1="sed -e 's/http:/<li><a href=\"http:/'"
t2="sed...
5,150
Posted By Paulw0t
Storing commands in $variables.
Hi I'm trying to store commands in variables... like so..


# lastcmd=" $t1 | $t2 | $t3 | $t4 | sort | uniq"

t1="sed -e 's/http:/<li><a href=\"http:/'"
t2="sed -e 's/http:.*/&\">&<\/a>Web...
4,565
Posted By Paulw0t
Hey thanks.... I'm s till not really explaining...
Hey thanks.... I'm s till not really explaining this to well the code above does one of the things I was doing better. however the output from that will give me

<a...
4,565
Posted By Paulw0t
Sorry I should have explained better .... ...
Sorry I should have explained better ....

When using lynx to I use the -dump command which automatically lists all the links on a page. This is listed after Referances: at the end of the page. So...
4,565
Posted By Paulw0t
Copy / string.
I'm trying to get a script to copy a url then put it in a different place in the file.

Example is currently the script goes to a site takes the urls on it and then puts them into an html file....
Showing results 1 to 10 of 10

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