Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: muay_tb
3,126
Posted By muay_tb
Hi, Thanks for your replies. I am...
Hi,

Thanks for your replies.

I am trying to validate URLS entered.

They all will have a protocol such as http://, https://, ftp://.

I also want to ensure that URLs that are files such as...
3,126
Posted By muay_tb
Regex for URLs and files
Hi,

I am looking for a regex that will validate a URL and files accessed in a browser.

For example:http://www.google.co.uk
http://www.google.com
https://www.google.co.uk...
1,485
Posted By muay_tb
Issue: Unzipping file containing files/folders with a similar name
Hi,

I have a zip file created on a Linxux server that I need to extract on a Windows machine...

The zip file containing folders with the same name but they each have a different case, one if...
849
Posted By muay_tb
Excellent! Thanks...knew it would be simple......
Excellent! Thanks...knew it would be simple... :rolleyes:
849
Posted By muay_tb
Simple list question
Hi,

Can someone tell me how to do this...

I want to concatenate a list of files with a ':' using the find command...

I have tried


find ${dir} -type f -print | sed 's/$/:/g'


but...
986
Posted By muay_tb
Hi Ludwig, My base file looks like this: ...
Hi Ludwig,

My base file looks like this:


<TagName>
<TagA>/MyBasePath/MyBaseFile/</TagA>
<TagB>MyBasePath/MyBaseFile/FileA</TagB>
</TagName>
<TagName>
<TagA>/MyBasePath/MyBaseFile/</TagA>...
986
Posted By muay_tb
Hi Ludwig! Thanks for the reply. Will...
Hi Ludwig!

Thanks for the reply.

Will this still work where File A has multiple <TagName> sections? will it only replace one <TagName> section that I am concerned about?

File A has numerous...
986
Posted By muay_tb
File Replacement Help
Hi all,

I have two files, one is a base file and the other is a dependency file.

I need to replace a section in the base file (File A) with a section from the dependency file (File B), for...
11,564
Posted By muay_tb
hey joeyg, thanks. However trying your approach...
hey joeyg, thanks. However trying your approach doesnt work on the every line, it only works on the first words:

i.e echo "as bg bh bh nj mk mu bg nh dr g y jj ko ll oo ss ff gg yy hh hh" | sed...
11,564
Posted By muay_tb
thanks all for your help
thanks all for your help
11,564
Posted By muay_tb
How do you split a sentence after every nth word
Hi,

I think my problem is a "simple" one to resolve. What i am looking for is a way in sed/awk to split a long line/paragraph into say 5 words per line.

For example:

Sentence/paragraph...
7,846
Posted By muay_tb
Help needed to format mysql output
Hi all,

Does anyone know how to format the output from mysql from within a shell script?

i.e.


RESULT=`mysql command`

echo ${RESULT}

the ${RESULT} only displays the output on one line...
Forum: Web Development 12-21-2009
10,877
Posted By muay_tb
Hi Hammadi, Thanks for your idea. However i...
Hi Hammadi,

Thanks for your idea. However i cannot do this on a column by column basis...

instead, im thinking to do a mysqldump using the --opt option on one server and then using this dump...
Forum: Web Development 12-11-2009
10,877
Posted By muay_tb
How do you sync tables in mysql between two different servers?
Hi all,

I have 2 mysql databases running on two different servers (both can be accessed via ssh to each other).

If I have say table ABC on server 1, how can I sync it with table ABC on server 2...
15,006
Posted By muay_tb
Thanks Jean-Pierre but i am afraid i cannot use...
Thanks Jean-Pierre but i am afraid i cannot use the -d option.

I get the following:

date: illegal option -- d
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
...
15,006
Posted By muay_tb
Obtaining day before a given date
Hi all,

is there a way using GNU (Solaris 8) methods of obtaining the day before a given day?

i.e. 2007-09-09.... I would like the date a day before it so output would be 2007-09-08. Format...
1,414
Posted By muay_tb
rsync question...
hi all,

i didnt know where to place the question on this site but seen as though it relates to a script i have done so here...

my issue is this...

i have 2 servers.

On server 1 (master) I...
1,974
Posted By muay_tb
Unfortunately I do not have the grep -A option as...
Unfortunately I do not have the grep -A option as I am on older systems.

All i want is to extract the information, at this stage no formatting is required so:

id=123
time=10:00:00...
1,974
Posted By muay_tb
Extracting line matching a phrase and then the next lines after it
Hi all,

I was wondering if someone could tell me a way to extract from a file lines where you search for a phrase and then also extract the next X lines after it (i.e. take a block of text from...
1,673
Posted By muay_tb
I dont get anything? What if the input file...
I dont get anything?

What if the input file has comma separated values?
1,673
Posted By muay_tb
Help: Find line where column has max vlaue
Hi all,

Ive searched the forum but with no luck...

I have a file:

ID Name Val
1 bob 45
2 joe 89
3 ...
Forum: Web Development 10-01-2009
8,887
Posted By muay_tb
:b: Many thanks Scottn I think I am going...
:b: Many thanks Scottn

I think I am going down the road of creating a script to run in the background (as a cron task) and commit every X thousand records. I just didn't want to run the update all...
Forum: Web Development 09-30-2009
8,887
Posted By muay_tb
Mysql question: Best way to update a column containing 8 million rows
Hi all,

I was wondering if anyone knew a good/safe way to update a single column in a table that could contain upto 8 million rows...

simple command like:

UPDATE set blah=foo where bar=XXX;...
1,550
Posted By muay_tb
thanks pludi :b:
thanks pludi :b:
1,550
Posted By muay_tb
Simple date issue
Hi all,

i have used the search already before someone shouts at me and i have seen the 'datecalc' program but this is not working correctly for me in the shell and environment i am using.

I am...
Showing results 1 to 25 of 47

 

Featured Tech Videos

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