03-17-2008
Separate lines in a single '|' separated line
Hi
I have a file with contents like
china
india
france
japan
italy
germany
.
.
.
.
etc....
I want the output as
china|india|france|japan|italy|germany|.|.|.
How to achieve this ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Does anyone know how to get these two output lines into one colon ':' separated line with some unix command? Maybe nawk. I've tried to read the nawk and awk man pages but I don't get it right. Are these commands the one to use?
Output from find command:
#
/sw/tools/matlab/7.0.1/man... (2 Replies)
Discussion started by: tonlu
2 Replies
2. Shell Programming and Scripting
Hi all
i have a data of this form
10.12.4.22:138
10.12.2.50:137
10.20.2.24:1027
10.12.2.44:138
10.12.2.44:137
10.0.4.38:58871
10.13.3.19:138
i need to separate the number out which is at the last and after ':'
Please help me out
Thanx in advance (5 Replies)
Discussion started by: vaibhavkorde
5 Replies
3. Shell Programming and Scripting
Hi,
I have a requirement with,
No~Dt~Notes
1~2011/08/1~"aaa
bbb
ccc
ddd
eee
fff
ggg
hhh"
Single column alone got splitted into multiple lines.
I require the output as
No~Dt~Notes
1~2011/08/1~"aaa<>bbb<>ccc<>ddd<>eee<>fff<>ggg<>hhh"
mean to say those new lines to be... (1 Reply)
Discussion started by: Bhuvaneswari
1 Replies
4. Shell Programming and Scripting
I have one long line text with semicolon used as separator between values in that line. Now, I want to separate the line into multiple line right after every 29th field.
example input line:
... (2 Replies)
Discussion started by: erlanq
2 Replies
5. Shell Programming and Scripting
I have one long line text with semicolon used as separator between values in that line. Now, I want to separate the line into multiple line right after every 29th field.
example input line:
... (1 Reply)
Discussion started by: erlanq
1 Replies
6. Shell Programming and Scripting
Hi guys,
I have a file which has random records like mentioned below
emcpower28a
pci@3,03 (disk physical name)
pci@3,04
emcpower9a
pci@1,03
pci@2,03
pci@3,01
pci@4,03
there could be any number of disk names for any LUN (emc...) So, I want a solution to count disk names for its... (12 Replies)
Discussion started by: prashant2507198
12 Replies
7. Shell Programming and Scripting
Hi,
I want to change a file file1.txt:
1234
3456
2345
6789
3456
2333
4444
As, file2.txt in Linux:
'1234','3456','2345','6789','3456','2333','4444'
Could someone please help me. (Single liner sed, awk will be welcome!) (7 Replies)
Discussion started by: wiweq05
7 Replies
8. Shell Programming and Scripting
Hi Everyone,
On my Linux box I have a text file having block of few lines and this block lines separated by one blank line. I would like to format and print these lines in such a way that this entire block of lines will come as single comma separated line & again next block of lines in next... (7 Replies)
Discussion started by: gr8_usk
7 Replies
9. UNIX for Beginners Questions & Answers
example of problem:
when I echo "$e" >> /home/cogiz/file.txt
result prints to file as:AA
BB
CC
I need it to save to file as this:AA BB CC
I know it's probably something really simple but any help would be greatly appreciated.
Thank You.
Cogiz (7 Replies)
Discussion started by: cogiz
7 Replies
10. Shell Programming and Scripting
Hi all,
I need help to parse this xml file that has paragraphs broken in different lines and I would like to join in a single line.
I hope you can understand my explanation. Thanks for any help/direction.
The script could be in bash, awk, ruby, perl whatever please
In the output I want:... (8 Replies)
Discussion started by: Ophiuchus
8 Replies
LEARN ABOUT DEBIAN
tvtime-configure
tvtime-configure(1) General Commands Manual tvtime-configure(1)
NAME
tvtime-configure - change settings in the tvtime configuration file
SYNOPSIS
tvtime-configure [ OPTION ] ...
DESCRIPTION
tvtime-configure allows a user to set configuration settings for tvtime without starting the application. This is useful for installation
programs such as debconf to let them configure tvtime without having to write a parser for the configuration file. The command line
options are a subset of those for tvtime itself.
OPTIONS
-a, --widescreen
This option starts tvtime in 16:9 aspect ratio mode.
-A, --nowidescreen
This option starts tvtime in 4:3 aspect ratio mode.
-h, --help
Show usage information.
-m, --fullscreen
Start tvtime in fullscreen mode.
-M, --window
Start tvtime in windowed mode.
-p, --fspos=POS
Set the fullscreen window position. Use this if you have a projector to help tvtime fit properly onto your screen.
o top
o bottom
o centre (default)
-F, --configfile=FILE
Additional config file to load settings from.
-H, --height=HEIGHT
Sets the height of the output window to start up at in scanlines. The default output window size is 576 scanlines.
-I, --inputwidth=SAMPLING
V4L input scanline sampling (defaults to 720. This sets how many pixels per scanline to request from the capture card. A higher
setting gives better quality, while a lower setting means we do less work, and so tvtime will run faster. If you have a slower CPU
(like, less than 500Mhz or so), maybe values of 480 or 400 might suit you best. For best quality, choose a high value like
720 or 768. Many capture cards cannot sample higher than 768 pixels per scanline.
-d, --device=NAME
video4linux device to use (defaults to /dev/video0).
-b, --vbidevice=DEVICE
VBI device to use (defaults to /dev/vbi0).
-i, --input=INPUTNUM
video4linux input number (defaults to 0). Cards commonly have a bunch of sources, for example, on my WinTV card, source 0 is my
tuner and source 1 is the composite input.
-c, --channel=CHANNEL
On startup, tvtime will tune to the given channel. Otherwise, the channels from the config file will be used.
-n, --norm=NORM
The mode to set the tuner to (defaults to NTSC). Valid modes are:
o NTSC
o PAL
o SECAM
o PAL-NC
o PAL-M
o PAL-N
o NTSC-JP
-f, --frequencies=NAME
The channels you are receiving with the tuner (defaults to us-cable). Valid values are:
o us-cable
o us-broadcast
o japan-cable
o japan-broadcast
o europe
o australia
o australia-optus
o newzealand
o france
o russia
-R, --priority=PRI
Sets the process priority (see nice(1)) that tvtime should be run at.
-t, --xmltv=FILE
Reads XMLTV listings from the given file to display on the OSD. Channels are looked up based on their name, and tvtime will display
the show title, sub-title and show description on the OSD.
-l, --xmltvlanguage=LANG
Use XMLTV data in given language, if available. Languages are represented by their two-letter language code (for example, "de" for
German). The default language used in the file will be used if this is unset or set to "none"
-x, --mixer=DEVICE[:CH]
The mixer device and channel for the volume controls. (defaults to /dev/mixer:line). Valid channels are:
o vol
o bass
o treble
o synth
o pcm
o speaker
o line
o mic
o cd
o mix
o pcm2
o rec
o igain
o ogain
o line1
o line2
o line3
o dig1
o dig2
o dig3
o phin
o phout
o video
o radio
o monitor
AUTHORS
Billy Biggs.
SEE ALSO
tvtime(1), tvtime.xml(5),
tvtime 1.0RC1 April 2005 tvtime-configure(1)