Search Results

Search: Posts Made By: lostincashe
27,794
Posted By lostincashe
Many thanks again Agama Regards
Many thanks again Agama
Regards
27,794
Posted By lostincashe
Thankyou very much Will that change do the same...
Thankyou very much
Will that change do the same for all instances of those patterns searched?
In the files I search, there are many instances of one or the other of the patterns, I assume this will...
27,794
Posted By lostincashe
SED multiple pattern matching
Hello sorry for the probably simple question - searching about the forums and Internet, I have not found the answer.

Could you tell me please how to do a multiple pattern match with SED

So it...
11,183
Posted By lostincashe
Thanks Agama I will re-write the script with...
Thanks Agama
I will re-write the script with what you showed me there and let you know.

---------- Post updated at 05:12 PM ---------- Previous update was at 12:05 PM ----------

Hi I tried the...
11,183
Posted By lostincashe
Thanks yes. I tried with a number of senarios...
Thanks yes. I tried with a number of senarios with " " around the
-e "x;/12345/!d; -e 'x;/8888/!d" and have tried -e "x;/12345/!d"; -e "x;/8888/!d" and tried -e "x;/12345/!d;" -e "x;/8888/!d"...
11,183
Posted By lostincashe
Thanks yes I did try that but it did not print...
Thanks yes I did try that but it did not print out. when I changed the command from
-e "x;/$string1/!d;" to -e "x;/$string/d"
then I get a limited print out.
It closes with
11,183
Posted By lostincashe
Hello. Yes, the strings are user input, just...
Hello.
Yes, the strings are user input, just numbers or straight text no special characters or symbols.
Regards.
:(

---------- Post updated at 02:55 PM ---------- Previous update was at 12:47...
11,183
Posted By lostincashe
Help with passing multiple variables into SED
Hello I am hoping you can help.
I use ksh in Solaris9

I am trying to pass user imputed variables into SED but for some reason can only get SED to recognize one variable.
I have experimented with...
8,058
Posted By lostincashe
Thanks very much, I will try this when I am next...
Thanks very much, I will try this when I am next at work on Monday.
I was not aware of the IFS "/" so it was interesting to read your post.
Thanks again:b:
8,058
Posted By lostincashe
Thanks for the site. That find command is very...
Thanks for the site. That find command is very handy and powerful but I am not sure I can use it in my case.
Some problems I have are.
-That the directory contains upto 2 weeks of files.
-Can...
8,058
Posted By lostincashe
Search on date range of file based on user input
Hello I would like to ask for help with a script to search a directory that contains many log files and based on a users input after being prompted, they enter a date range down to the hour which...
3,944
Posted By lostincashe
Thanks again, I think it must be the way Iam...
Thanks again, I think it must be the way Iam trying to use the user input (there typed serached word) I may not be setting it right as the variable (string)

date=$( date +%d%m%y$h%m%s ) ...
3,944
Posted By lostincashe
Hello what I am am trying to do is indent the...
Hello
what I am am trying to do is indent the paragraph containing OUT
and at the same time extract on any paragraph that contains both OUT and string (user input).
The NAWK works beautifully for...
3,944
Posted By lostincashe
Thanks for replying Chubler For some reason it...
Thanks for replying Chubler
For some reason it still seems to ignore the $string variable and prints out the paragraphs with the defined OUT contained in it.
I tried both methods you gave me...
3,944
Posted By lostincashe
Hello may I ask I have been having trouble with...
Hello may I ask
I have been having trouble with user input that produces a variable to put into this NAWK command. Other words the user inputs data when prompted and that data is inserted into the...
4,122
Posted By lostincashe
Thankyou that description you gave is exactly...
Thankyou that description you gave is exactly right, the user enters the filename to be searched followed by the text they wan to search for.

what I found is the SED commands do strip out in the...
4,122
Posted By lostincashe
Thankyou Yes sorry, the command you mentioned ...
Thankyou
Yes sorry, the command you mentioned
sed ..... <$filename >$newfilename # incomplete command, not sure what you need the sed to doI am using a SED command to delete a blank lines...
4,122
Posted By lostincashe
Variables into SED or AWK and multiple commands
Hello I am hoping you may help.

I am not sure how to go about this exactly, I know the tools but not sure how to make them work together.

I have two SED commands that I would like to run in a...
3,944
Posted By lostincashe
Thankyou so much, that worked perfectly. Thanks...
Thankyou so much, that worked perfectly.
Thanks for all the suggestions.
Much appreciated, regards
3,944
Posted By lostincashe
Hello thankyou very much it really worked well,...
Hello thankyou very much it really worked well, however it seemed to only indent the paragraph by a few spaces, is it possible to increase the spaces or indent - perhaps by 2 tabs?
Thankyou again...
3,944
Posted By lostincashe
Thankyou very much I will try this. Kind...
Thankyou very much I will try this.
Kind regards

---------- Post updated 03-19-12 at 10:33 AM ---------- Previous update was 03-18-12 at 11:30 AM ----------

Thanyou, I tried this but the awk...
3,944
Posted By lostincashe
Yes sorry hard to demonstrate, here is some more...
Yes sorry hard to demonstrate, here is some more example.
If I have a file which I want to search for patterns located in paragraphs patterns - bobby, larry, sally. using command
sed -e...
3,944
Posted By lostincashe
Hello yes apologies, I am trying to align or...
Hello yes apologies, I am trying to align or offset a paragraph slightly - either center or by a few spaces.
For example on these searched AAA BBB CCC strings . I would like the desired output...
3,944
Posted By lostincashe
Align or move paragraph right
Hello I am a newbie in scripting and I am hoping someone may help with a method of aligning or tabbing selected text as its output.

For example, using the SED command to extract paragraphs...
Showing results 1 to 24 of 24

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