10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
sorry I messed up the last post with too many mistakes and corrections so I closed it and opening a new one which should be clear to everyone .my apologies to the admins.
I am using sun solaris and Linux , what I want is SED to print any string (or output it to a file preferably) that does... (2 Replies)
Discussion started by: boncuk
2 Replies
2. Shell Programming and Scripting
I'm using sh under AIX 5.3 and after grep'ing, awk'ing, splitting a file, I end up with two variables as:
0123456 789Can these values be somehow passed into a grep as two different variables using xargs or something? What I want to do is this (the echo is just for effect here):
echo 0123456 789... (2 Replies)
Discussion started by: say170
2 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I am writing a python code. The output of the python code needs a little bit of parsing. From the output of python code, which has a lot of redundant data, I need to cut only those words or numbers which end with &. for example: if the output is--
"This is an example of tgbn123& what i... (0 Replies)
Discussion started by: Screech_you
0 Replies
4. Shell Programming and Scripting
What is the shortest & right way to remove the string "" with a sed statement ?
echo 'whateverwhatever' | sed ........
? :) (2 Replies)
Discussion started by: ctsgnb
2 Replies
5. Shell Programming and Scripting
In part of my script I use awk to pull out the urls.
awk '{print $8}' then I take them and send them to grep.`
Some of them are straight .com/ or .org or whatever (address bar entries), while others are locations of images, js, etc.
I'm trying to only pull any line that ends with .com/... (11 Replies)
Discussion started by: druisgod
11 Replies
6. Shell Programming and Scripting
All,
Can somebody provide me with some sed expertise on how to parse the
following line.
27-MAR-2011 10:28:01 * (CONNECT_DATA=(SID=dmart)(CID=(PROGRAM=sqlplus)(HOST=mtasnprod1)(USER=mtasnord))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.197.7.47)(PORT=54881)) * establish * dmart * 0
I would like... (3 Replies)
Discussion started by: BeefStu
3 Replies
7. Shell Programming and Scripting
Hello
I want to convert my cron list into a csv
Can you please help me with sed ?
eg:
Convert
#06,21,36,51 * * 1,2 * (. ~/.profile ; timex /some/path/script -30 -15) >> /some/path/logfile2 2>&1
* * * * * (. ~/.profile ; timex /some/path/script2) > /some/path/logfile2
To:... (1 Reply)
Discussion started by: drbiloukos
1 Replies
8. Shell Programming and Scripting
I want to delete corrupt records from a file through awk or sed.
Can anyone help me with this
Thanks
Striker
Change subject to a descriptive one, ty. (1 Reply)
Discussion started by: Rahul_us
1 Replies
9. Shell Programming and Scripting
I'm having a problem with a sed script.
A programmer needs to change columns 942,943,944 to blank spaces only where it has the number 999 in every line.
I didn't have a copy of the data file to test with originally so made my own up with a bunch of x's and put 999 in columns 5-7. The sed... (1 Reply)
Discussion started by: gravy26
1 Replies
10. Shell Programming and Scripting
hi , i would like to parse some file with the fallowing data :
data data data "unwanted data" data data "unwanted data"
data data data data #unwanted data.
what i want it to have any coments between "" and after # to be erased using awk or/and sed.
has anyone an idea?
thanks. (3 Replies)
Discussion started by: Darsh
3 Replies