Search Results

Search: Posts Made By: mwrg
2,099
Posted By mwrg
Thanks 47shailesh . That does it :) ...
Thanks 47shailesh . That does it :)

---------- Post updated at 11:33 AM ---------- Previous update was at 11:02 AM ----------

Looks like the source is not that clear. The subject can be wrapped...
2,099
Posted By mwrg
How to extract the subject from a script which uses mailx
Hi,

I need to extract the subject of an e-mail sent using mailx. mailx is in a a file and the command reads like the following

Ex: sendMail.sh

mailx -s ' This is the subject' $recepiant
...
7,590
Posted By mwrg
hi Scrutinizer...
hi Scrutinizer (https://www.unix.com/members/302052697.html)! sed command works. but it shows the rest of the line. i want to retrieve just the next word. it might be separated by "_"s or "."s.
...
7,590
Posted By mwrg
how to find a word in a file that appears next to a given keyword
Hi Experts,

I have a file which contains some text. i need to print the word next to a given keyword. Please help.

Ex: test.txt

=====================
NEXT HOST
=====================
...
5,101
Posted By mwrg
Thanks alot Scrutinizer :)...
Thanks alot Scrutinizer :) (https://www.unix.com/members/302052697.html)
5,101
Posted By mwrg
:) yes Scrutinizer, that was the issue. i just...
:) yes Scrutinizer, that was the issue. i just removed ^ and its inserting fine. could you tel me how to insert the new line with some spaces(predifined) in the begining?

Thanks
5,101
Posted By mwrg
ok i found out the issue. the problem is the...
ok i found out the issue. the problem is the first word(xxx) of the line im searching for starts in the middle of the line. any solution for this?

Thanks
5,101
Posted By mwrg
the line im inserting has characters >> and a...
the line im inserting has characters >> and a parametarized path which looks like ${DIR}/${FILE}. could that be the reason its not working?
5,101
Posted By mwrg
doesn't work
doesn't work
5,101
Posted By mwrg
Adding a line to a file
Hi guys,

How to add a line before a specific line (identified with the starting work ex: xxx) of a file and write it back to the same file?

Thanks
1,726
Posted By mwrg
Hi Yogesh. it works fine. Thanks. but it doesn't...
Hi Yogesh. it works fine. Thanks. but it doesn't return any error code if it was not found. for an instance if i used grep it would return "1" if the text was not found. is there any way we can get...
1,726
Posted By mwrg
Thanks jim. It worked. :) ---------- Post...
Thanks jim. It worked. :)

---------- Post updated at 07:03 AM ---------- Previous update was at 06:45 AM ----------

One more question. how can i search for this in a particular line in the...
1,726
Posted By mwrg
Search for a string with different cases
Hi Guys,

I am using the following command in a script.

cat $sql_file_path"/"${sql_file_list[$i]} | grep "ABCDE"

but it returns only exactly matching lines (ABCDE)

how can i modify this...
3,574
Posted By mwrg
Thanks a lot Pludi :b:
Thanks a lot Pludi :b:
3,574
Posted By mwrg
Thanks. how can i search all the sub directories?
Thanks. how can i search all the sub directories?
3,574
Posted By mwrg
How to search all the files in a directory for a specific string
Hi Guys,

I want to search the content of all the files (of a particular type like .txt)
in a directory for a specific string pattern. Can anyone help me?

Thanks
3,608
Posted By mwrg
Thanks it worked. Could you please explain the...
Thanks it worked. Could you please explain the code?
3,608
Posted By mwrg
How to append a string to a specific location in a line
Hi,

I have a to modify a line and insert a keyword in the middle to a specific location.
My line looks like this

FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS (ABC,...
4,622
Posted By mwrg
How to delete a string pattern in a file and write back to the same file
I have a control file which looks like this

LOAD DATA
INFILE '/array/data/data_Finished_T5_col_change/home/oracle/emp.dat'
PRESERVE BLANKS
INTO TABLE SCOTT.EMP
FIELDS TERMINATED BY '|'...
4,174
Posted By mwrg
You are correct durde. thats how my file looks....
You are correct durde. thats how my file looks. in your code how can i specify the input file and output file?

---------- Post updated at 09:50 AM ---------- Previous update was at 09:31 AM...
4,174
Posted By mwrg
dos2inix removes windows newline characters. but...
dos2inix removes windows newline characters. but still 1 character per run. even then the second line is not merged with the first.

tr -d '\r\n' < infile.csv > outfile.csv removes all terminations...
4,174
Posted By mwrg
tried dos2unix < inputfile | gawk -v ORS=" " '1'...
tried dos2unix < inputfile | gawk -v ORS=" " '1' > output_file
but the output im getting is

ABC^M DEF

---------- Post updated at 05:44 AM ---------- Previous update was at 05:43 AM ----------...
4,174
Posted By mwrg
Removing ^M characters from a file
Hi,

I want to removing ^M characters from a file and combine the line with the next line.

ex:

issue i have:
ABC^M^M
DEF

solution i need:
ABCDEF

I found that you by using the...
2,208
Posted By mwrg
:b: Thanks buddy :)
:b: Thanks buddy :)
2,208
Posted By mwrg
Thanks buddy :) one more thing. How can i add a...
Thanks buddy :) one more thing. How can i add a new line before the third line (Which is PRESERVE BLANKS) so the new file will look like this

LOAD DATA
INFILE '/home/scott/XXX.dat'
<New Line>...
Showing results 1 to 25 of 28

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