01-18-2011
Multi line document to single lines based on occurance of string
Hi Guys,
I am new to awk and sed, i am working multiline document, i want to make make that document into SINGLE lines based on occurace of string "dwh".
here's the sample of my problem..
dwh123 2563 4562 4236 1236 78956 12394 4552 dwh192 2656 46536 231326 65652 6565 23262 16625623 dwh956 2365 12232 46656 56522 464646 66262 65522...so..on
desided out put is..
dwh123 2563 4562 4236 1236 78956 12394 4552
dwh192 2656 46536 231326 65652 6565 23262 16625623
dwh956 2365 12232 46656 56522 464646 66262 65522
I really appertiate your help.
Thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Can anyone help me for merge the following multi-line log which beginning with a number and time: into one line. For each line need to delete the return and add a space. Please see the red color line.
*****Original Log*****... (4 Replies)
Discussion started by: happyday
4 Replies
2. Shell Programming and Scripting
Hello,
Can anyone let me know how to use Perl script to Merge following multi-lines into one single line...
***** Multi-line*****
FILE_Write root OK Tue Jul 01 00:00:00 2008 cl_get_path
file descriptor = 1
FILE_Write root OK ... (5 Replies)
Discussion started by: happyday
5 Replies
3. Shell Programming and Scripting
The symbols are \t and \t\t (note: not tab)
If the line starts with \t merge them into a single line upto symbol \t\t
\t\t to end and start new line
I able to join in a single line but not ending at \t\t and I completely confused
help would be appreciated:b::D
Input
\ta tab XXXXXXXXXX
\te... (5 Replies)
Discussion started by: repinementer
5 Replies
4. Shell Programming and Scripting
HI,
My input file contains the data as like below:
A1234119993
B6271113
Bghjkjk
A1234119992
B6271113hi
Bghjkjkmkl
the output i require is :
A1234119993 B6271113 Bghjkjk
A1234119992 B6271113hi Bghjkjkmkl
Please help me in this.
Thanks (6 Replies)
Discussion started by: pandeesh
6 Replies
5. Shell Programming and Scripting
I have a file with data records separated by multiple equals signs, as below.
==========
RECORD 1
==========
RECORD 2
DATA LINE
==========
RECORD 3
==========
RECORD 4
DATA LINE
==========
RECORD 5
DATA LINE
==========
I need to filter out all data from this file where the... (2 Replies)
Discussion started by: Finja
2 Replies
6. Shell Programming and Scripting
Hi,
I have a file like mentioned below..For each specific id starting with > I want to join the sequence in multiple lines to a single line..Is there a simple way in awk or sed to do this
>ENST00000558922 cdna:KNOWN
TCCAGGATCCAGCCTCCCGATCACCGCGCTAGTCCTCGCCCTGCCTGGGCTTCCCCAGAG... (2 Replies)
Discussion started by: Diya123
2 Replies
7. Shell Programming and Scripting
Hello,
I am trying to return a time multiple times from a file that has varying output just before the time instance, i.e.
cat jumped
cat jumped
cat jumped
time = 1.1
cat jumped
cat jumped
time = 1.2
cat jumped
cat jumped
time = 1.3
In this case i would like to output a time.txt... (6 Replies)
Discussion started by: ryddner
6 Replies
8. UNIX for Beginners Questions & Answers
I Want to merge multiple lines based on the 1st field and keep into single record.
SRC File:
AAA_POC_DB.TAB1
AAA_POC_DB.TAB2
AAA_POC_DB.TAB3
AAA_POC_DB.TAB4
BBB_POC_DB.TAB1
BBB_POC_DB.TAB2
CCC_POC_DB.TAB6
OUTPUT
-----------------
'AAA_POC_DB','TAB1','TAB2','TAB3','TAB4'... (10 Replies)
Discussion started by: raju2016
10 Replies
9. Shell Programming and Scripting
Input File:
>Seq1
ASDADAFASFASFADGSDGFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSD
>Seq2
SDASDAQEQWEQeqAdfaasd
>Seq3
ASDSALGHIUDFJANCAGPATHLACJHPAUTYNJKG
......
Desired Output File
>Seq1
ASDADAFASF
ASFADGSDGF
SDFSDFSDFS
DFSDFSDFSD
FSDFSDFSDF
SD
>Seq2 (4 Replies)
Discussion started by: patrick87
4 Replies
10. UNIX for Beginners Questions & Answers
Hi,
Can anyone help me for merge the following multi-line log which beginning with a " and line ending with ": into one line.
*****Original Log*****
087;2008-12-06;084403;"mc;;SYHLR6AP1D\LNZW;AD-703;1;12475;SYHLR6AP1B;1.1.1.1;0000000062;HGPDI:MSISDN=12345678,APNID=1,EQOSID=365;... (3 Replies)
Discussion started by: rajeshlinux2010
3 Replies
LEARN ABOUT DEBIAN
config::model::models::lcdd::cwlnx
Config::Model::models::LCDd::CwLnx(3pm) User Contributed Perl Documentation Config::Model::models::LCDd::CwLnx(3pm)
NAME
Config::Model::models::LCDd::CwLnx - Configuration class LCDd::CwLnx
VERSION
version 2.021
DESCRIPTION
Configuration classes used by Config::Model
generated from LCDd.conf
Elements
Model
Select the LCD model Optional. Type enum. choice: '12232', '12832', '1602'. upstream_default: '12232'.
Device
Select the output device to use Optional. Type uniline. upstream_default: '/dev/lcd'.
Size
Select the LCD size. Default depends on model: 12232: 20x4 12832: 21x4 1602: 16x2. Optional. Type uniline. default: '20x4'.
Speed
Set the communication speed Optional. Type enum. choice: '9600', '19200'. upstream_default: '19200'.
Reboot
Reinitialize the LCD's BIOS normally you shouldn't need this. Optional. Type enum. choice: 'yes', 'no'. upstream_default: 'no'.
Keypad
If you have a keypad connected. Keypad layout is currently not configureable from the config file.Optional. Type uniline. default: 'yes'.
keypad_test_mode
If you have a non-standard keypad you can associate any keystrings to keys. There are 6 input keys in the CwLnx hardware that generate
characters from 'A' to 'F'.
The following is the built-in default mapping hardcoded in the driver. You can leave those unchanged if you have a standard keypad. You
can change it if you want to report other keystrings or have a non standard keypad. KeyMap_A=Up KeyMap_B=Down KeyMap_C=Left KeyMap_D=Right
KeyMap_E=Enter KeyMap_F=Escape keypad_test_mode permits one to test keypad assignment Default value is no. Optional. Type uniline. default:
'yes'.
SEE ALSO
o cme
perl v5.14.2 2012-11-09 Config::Model::models::LCDd::CwLnx(3pm)