10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to create a script to change a file depending of 3 conditions using a target as parameter...
first condition
<chamada>
<numeroTerminalOriginador>CALLER</numeroTerminalOriginador>
<imeiOriginador></imeiOriginador>
<cgiPrimeiraErbOriginador></cgiPrimeiraErbOriginador>... (2 Replies)
Discussion started by: poulis
2 Replies
2. Shell Programming and Scripting
I need help with sed and awk scripts to search for Symmetrix ID=000090009902 and then grep its child disk devices associated to the dead paths and display them only, so that those dead devices can be removed.
test01:/#powermt display dev=all
Pseudo name=hdiskpower0
Symmetrix ID=000090009902... (4 Replies)
Discussion started by: aix_admin_007
4 Replies
3. Shell Programming and Scripting
Hi expert,
i need URGENT help in bash shell scripting using sed:
i woud like to search for the word XMLRPC which is at theend of the line below in up2date file. Once found or match
serverURL=https://redhat.com/XMLRPC
replace with myserver.com like this
... (1 Reply)
Discussion started by: lamoul
1 Replies
4. Shell Programming and Scripting
Hi all!
I was wondering if anyone could help suggest some solutions to an issue i'm having using the Sed command. I'm still a relative novice at this, but slowly learning and enjoying the power of batch processing.
I am using Sed to extract values from a .txt file containing hundreds of... (2 Replies)
Discussion started by: StudentFitz
2 Replies
5. Shell Programming and Scripting
Hi,
In one of my scripts, I am using sed to do an expression replacement. The code in the script is as under
sed "s|MY_INP_Lab=""|MY_INP_Lab="${2}"|" file1, where $2=xyz_abc_mbk
The EXPECTED output is in file1, all the instances ofMY_INP_Lab="" shall be replaced by... (2 Replies)
Discussion started by: vivekmattar
2 Replies
6. Shell Programming and Scripting
hi all,
i want to display output of sar, whichever idle time is less than 30%..i want to add HI and BYE at the starting and ending of the line.
For an example:
sar
Linux 2.6.9-78.0.1.ELsmp (hostname) 07/10/2009
07:10:01 AM CPU %user %nice %system %iowait %idle... (7 Replies)
Discussion started by: raghur77
7 Replies
7. UNIX for Dummies Questions & Answers
I have a folder with many subdirectories and i need to set the modified date to today for everything in it. Please help, thanks!
I tried something i found online, find . -print0 | xargs -r0 touch
but I got the error: xargs: illegal option -- r (5 Replies)
Discussion started by: glev2005
5 Replies
8. Shell Programming and Scripting
Say I have a file 'example.txt' with these lines of code in it:
hello:anddasd:cheese:gerg
whatever:sdadsa:asdfasdfa:wwew
hmmmm:something:gfhfhgf:sdasdas
Question:
1. How would I write a script which is able to take all the words before the first ':'?
2. How would I write a script which is... (6 Replies)
Discussion started by: i_am_a_robot
6 Replies
9. Shell Programming and Scripting
hey all,
i was just wondering if it was possible to to get data from user input , and parse it through sed to remove or add what that user has entered into a flat file?
do i need awk ?
any help is greatly appreciated
~shan2on (2 Replies)
Discussion started by: shan2on
2 Replies
10. Shell Programming and Scripting
Hi,
I have a script abc.sql which contains a word 'timestamp'.
I have another script xyz.txt genrated everyweek, which has a new timestamp value every week.
How do I replace the word 'timestamp' in script abc.sql with the value mentioned in the script xyz.txt, so that I can run the script... (3 Replies)
Discussion started by: kaushys
3 Replies