10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear group,
I have following input text file:
Brit 2016 11 18 12 00 10 1.485,00 EUR
Brit 2016 11 18 12 00 10 142,64 EUR
Brit 2016 11 18 12 00 10 19,80 EUR
Brit 2016 11 18 12 00 10 545,00 EUR
Brit 2016 11 18 12 00 10 6.450,00 EUR... (3 Replies)
Discussion started by: gfhsd
3 Replies
2. Shell Programming and Scripting
Greetings All,
I would like to find all occurences of a pattern and delete a substring from the all matching lines EXCEPT the first. For example:
1234::group:user1,user2,user3,blah1,blah2,blah3
2222::othergroup:user9,user8
4444::othergroup2:user3,blah,blah,user1
1234::group3:user5,user1
... (11 Replies)
Discussion started by: jacksolm
11 Replies
3. Shell Programming and Scripting
I want to check if the string has the substring in IF condition then process...
i tried below but not working
if ];
then
.............
field can be "reserved1" ....reservedn / fillspaces1 ... fillspacesn (4 Replies)
Discussion started by: greenworld123
4 Replies
4. Shell Programming and Scripting
Good morning friends,
how can i remove a string with linux scripting from a file? In specific i want to remove from a file all the tweet names and links
eg
@aerta and links such as http://dst.co/pIiu3i9c
Thanx!!! (4 Replies)
Discussion started by: paladinaeon
4 Replies
5. Shell Programming and Scripting
Here is an example of a file...
foo1,good
foo1,good
foo2,error
foo2,good
Note that both rows for foo1 have good in the 2nd field, but one of the foo2 rows has error...
I need something in ksh/awk/perl that will delete ALL foo2 lines if ANY of them have error in the 2nd field...so:
... (7 Replies)
Discussion started by: dbiggied
7 Replies
6. Shell Programming and Scripting
Hi
Ive been scratching over this for some time with no solution.
I have a file like this
1 bla bla 1
2 bla bla 2
4 bla bla 3
5 bla bla 1
6 bla bla 1
I want to remove consecutive occurrences of lines like bla bla 1, but the first column may be different.
Any ideasss?? (23 Replies)
Discussion started by: jamie_123
23 Replies
7. Shell Programming and Scripting
Hello,
I need to remove a substring from a string in a ksh script, the string is like this:
LOCATION=+DATADG1/CMSPRD1/datafile/system.235.456721
or
LOCATION=/u03/oradata/CMSPRD/SYSTEM.dbf
I need to strip the last file name from that path, and get:
+DATADG1/CMSPRD1/datafile
or,... (8 Replies)
Discussion started by: seafan
8 Replies
8. Shell Programming and Scripting
Hi All,
Can any1 help me out in broadcasting a message to all users if a condtion is meet.
Like I am trying to get values from a directory for service monitoring.
If a condition is meet it should broadcast the message.
I try to use wall command but i m not sure how its works as its... (1 Reply)
Discussion started by: jojo123
1 Replies
9. Shell Programming and Scripting
I want to modify a string in shell script (/bin/sh). Could you please help me.
I have a variable which can store the values like below.
v10.5.2.1p001C_TN1
or v10.5.2.1p002_TN1
I have to search first whether ‘p' character exists into the string which is stored in a variable..... (5 Replies)
Discussion started by: samtekdallas
5 Replies
10. Shell Programming and Scripting
Hi.. when I do a ls -lt, I get a listing of about 200 files.. These are trace files and some of it I might not need..
To be clear, say in a given week , I might not need files that have been traced between 11 and 11:30 am on a particular day. How can I delete based on this condition ?
Thanks,... (4 Replies)
Discussion started by: ST2000
4 Replies