10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I would like to know how to remove lines which has the same pattern as the next line through sed/awk.
Stream 39 (wan stream 7)
Stream 40 (wan stream 8)
WINQ Counter 115955 1 1613
(BYTE) 11204787 163 ... (2 Replies)
Discussion started by: sarn_nat
2 Replies
2. Shell Programming and Scripting
I have a file and when I match the word "initiators" in the first column I need to be able to print the rest of the columns in that row. This is fine for the most part but on occasion the "initiators" line gets wrapped to the next line. Here is a sample of the file.
caw-enabled ... (3 Replies)
Discussion started by: kieranfoley
3 Replies
3. Shell Programming and Scripting
Hi,
I am writing an awk script and I have got stuck. I am trying to find a word that has 2 dollar signs in it but its failing. I have already tried to escape it with single and double back slash and also I have tried to use \044 in the search but even that doesnt work. can you please help me... (7 Replies)
Discussion started by: hitmansilentass
7 Replies
4. Shell Programming and Scripting
Hi All,
Please help me how to remove the records from the file if it is having more number of fields than the required one, before loading into stage
Here is the sample records. File is space delimited one
chandu 1121324 CC ( 2 spaces)
chandu balu 434657 DD (3 spaces) -- failing due to... (10 Replies)
Discussion started by: bbc17484
10 Replies
5. Shell Programming and Scripting
Hi,
I am trying to create a text file from data retrieved from a query.The data retrieved is having this character '^L' at regular intervals of the data.
How can i eliminate this, Please find below the sample data.
I tried sed -e "s/\^L//g" to convert it, but with no luck
^LCODE*SERIAL... (11 Replies)
Discussion started by: ramkiran77
11 Replies
6. Shell Programming and Scripting
I'm writing a wrapper script (in bash) that wraps another (bash) script. When calling the wrapped script, I need to pass all the received arguments/options to it. Is there a built in variable that holds all the options? I wrote a little while loop (see below) which works. But I wanted to know if... (1 Reply)
Discussion started by: Dilbert
1 Replies
7. Shell Programming and Scripting
Hello,
I am about 3 weeks new to CGI/ Perl scripting and so far some concepts I can wrap my head around perfectly but others not so much.
I was wondering if I could get some help in making a script that will pull from a text file and put back into a form. I can make a script that takes input... (15 Replies)
Discussion started by: sennex
15 Replies
8. UNIX for Advanced & Expert Users
I need to convert a file i.e
cat list
1000:
1001:
1002:
to
cat wrappedfile 1000:1001:1002:
currently I am using a while loop, paste and mv command to achieve desired outcome.
touch wrappedfile
cat list | while read line ;do echo $line > /tmp/$line;paste /tmp/$line wrappedfile >... (7 Replies)
Discussion started by: jouuu
7 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
How can I eliminate the blank lines from a file.
For e.g.
File1 contains
ABCD
EFGH
ZZZZ
HJHH
KJKJ
IUYU
I need the file to be as follows....
ABCD
EFGH (4 Replies)
Discussion started by: shashi_kiran_v
4 Replies
10. Shell Programming and Scripting
Hi,
Can someone tell me how i can merge the lines that are wrapped.
My file has content somethig like this
Line1 -> xxxx bbbb ccc dddd bababab11
Line2 -> 2222 nnn cccc
Line 3-> yyyyy zzzz uuzuz ioouo oououou11
Line 4 -> 3333 pppp dddd
Line 5-> zzzz kjkj uuzuz ioouo oououou11
Line 6->... (1 Reply)
Discussion started by: braindrain
1 Replies