10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, i have file file.txt with data like:
START
03:11:30 a
03:11:40 b
END
START
03:13:30 eee
03:13:35 fff
END
jjjjjjjjjjjjjjjjjjjjj
START
03:14:30 eee
03:15:30 fff
END
ggggggggggg
iiiiiiiiiiiiiiiiiiiiiiiii
I want the below output
START (13 Replies)
Discussion started by: Jyotshna
13 Replies
2. UNIX for Dummies Questions & Answers
I have the following script:
sed '/string1/,/string2/!d' infile
I want to apply the script to the first occurrence only. I have tried
sed '0,/string1/,/string2/!d' infile
Of course, that does not work
Any help will be greatly appreciated (12 Replies)
Discussion started by: Xterra
12 Replies
3. UNIX for Dummies Questions & Answers
How to find last occurrence of a keyword in a file using sed. (4 Replies)
Discussion started by: nexional
4 Replies
4. Shell Programming and Scripting
I couldn't find the answer anywhere, so I hope you could help me.
I need to change something like the following:
something/bla/aaaa
anything/bbb
to:
something
--bla
----aaaa
anything
--bbb
How do I do this?
Is it possible with sed?
I tried various patterns, but don't know how to... (5 Replies)
Discussion started by: Patwan
5 Replies
5. UNIX for Dummies Questions & Answers
Dear Members,
I have a file which contains data as shown below:
LOAD DATA
APPEND
INTO TABLE xxap.test
( RAW_DATA char(3000) "replace(:raw_data,'*','|')",
LOADING_SEQUENCE "xx_gl_bank_fee_s1.nextval",
CREATION_DATE SYSDATE,
LAST_UPDATE_DATE SYSDATE,
ATTRIBUTE1 "DATE_STAMP",
... (1 Reply)
Discussion started by: sandeep_1105
1 Replies
6. Shell Programming and Scripting
hi
by modifying /etc/shadow
how can I Force a change of password so that user has at least 1 week to login?
I did it by using:
echo "enter username to force password change"
read user;
chage -M 7 $user;
How can I do it by modifying /etc/shadow?? (6 Replies)
Discussion started by: tjay83
6 Replies
7. Shell Programming and Scripting
hi
How can I change the home directory of a user without using usermod -d command?
( by modifying /etc/passwd) (17 Replies)
Discussion started by: tjay83
17 Replies
8. Shell Programming and Scripting
I am trying to get rid of some ending tags but I run into some problems.
Ex.
How are you?</EndTag><Begin>It is fine.</Begin><New> Just about
I am trying to get rid of the ending tags, starts with </ and ending with >. (which is </EndTag> and </Begin>)
I tried the following
sed... (2 Replies)
Discussion started by: quixoticking11
2 Replies
9. Shell Programming and Scripting
hi all,
I have a text file with following content
PAGENUMBER
asasasa
asasasa
PAGENUMBER
sasasasasa
PAGENUMBER
using sed i want to replace PAGENUMBER by occurrence count
eg
1
asasasa
asasasa
2
sasasasasa
3 (4 Replies)
Discussion started by: uttamhoode
4 Replies
10. Shell Programming and Scripting
Hi, I have a file that looks like this
dasdjasdjoasjdoasjdoa SYN dakspodkapsdka
asdasdasdasdasdasdasd SYN sdfsdfsdfsdfdf
shfishifhsdifhsidhfif fsdfsdfsdfsdfs
sdfsdfsdfsdsdfsdfsdff cercercercerce
sdasdajsdoajsodasodoo FIN dasdaskdpasdda... (4 Replies)
Discussion started by: hcclnoodles
4 Replies