Search Results

Search: Posts Made By: maxlamax
3,511
Posted By maxlamax
Thx a lot Scrutinizer i have tested your code and...
Thx a lot Scrutinizer i have tested your code and is working exacly as i need...

Let me see an awk tutorial and then i try to explain your code, if u find that i have misunderstood someone scold...
3,511
Posted By maxlamax
Thx to all, i've tried both sed solution but it...
Thx to all, i've tried both sed solution but it doesn't work...

Like kcoder24 said the intent was to change the first occurrence for a single line and pass to next line on every cicle of for...
3,511
Posted By maxlamax
sed problem in a for cycle
Hi, i have a problem with a sed command runned in a for cycle...

I have a file named fileX which contains (i have crippled the line to minimal for easy):


load data dbfoo - TOCHANGE -...
2,402
Posted By maxlamax
Thx for the suggest i try right away... ...
Thx for the suggest i try right away...

P.S. Get in touch with shell programming i have found that is really hard and request a lot of time and practice anyway... Fortunately "exist" this forum...
2,402
Posted By maxlamax
Compare file of hostnames with table in MySQL DB
Hi all,

i have a list of files that contains some PC hostname, then i need to enumerate every hostname and check if there's a table with same name of the hosts in MySQL database XYZ.
I need this...
2,458
Posted By maxlamax
Great! Corona688 you are a lifesaver! Although...
Great!
Corona688 you are a lifesaver! Although your code has to be refined like this:

ststr2=$(sed 's/\\n/\\n/g' <<< "$ststr2")

so the result in the file are now:


insert blah blah......
2,458
Posted By maxlamax
Thx all for the suggest... I try right now... ...
Thx all for the suggest...
I try right now...

P.S. Ugly but short and functional? What's the matter... Better than long and heavy... Ops! and beautiful obviously... :D
2,458
Posted By maxlamax
\n have to make a newline forever?
I'm trying to make a little script, but I have a problem...

I'm trying to sed a list of files made with a ls > filename.txt...

Two variables (or i may call them constant because they are...
Showing results 1 to 8 of 8

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