Sponsored Content
Top Forums Shell Programming and Scripting Paste content of a file to another file and make it as columned Post 302327291 by kingpeejay on Saturday 20th of June 2009 05:07:52 PM
Old 06-20-2009
Can u pls explain that code? And how the output will look like. Thanks!
 

8 More Discussions You Might Find Interesting

1. Programming

makeutility: how to get the make-file name inside of the make-file?

How I can get the current make-file name in a make-file So, if I run make with specified file:make -f target.mak is it possible to have the 'target' inside of the that 'target.mak' from the file name? (2 Replies)
Discussion started by: alex_5161
2 Replies

2. Shell Programming and Scripting

awk read value from file and paste in other file

Hi, I'm working on a perl-awk loop combination and what I want to do is read in the first line of values.exp and pass that value to test1.exp; next, read in the second line of that file and pass that value to test2.exp. Which would mean: values.exp: 1.2 1.4 test1.exp 1 test2.exp... (10 Replies)
Discussion started by: tobias1234
10 Replies

3. Shell Programming and Scripting

Help required the cut the whole contents from one file and paste it into new file

Hi, First of all sincere apologies if I have posted in a wrong section ! Please correct me if I am wrong ! I am very new to UNIX scripting. Currently my problem is that I have a code file at the location /home/usr/workarea/GeneratedLogs.log :- Code :- (Feb 7, 571 7:07:29 AM),... (4 Replies)
Discussion started by: acidburn_007
4 Replies

4. Shell Programming and Scripting

Sed: replace content from file with the content from file

Hi, I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file C. Thanks a lot!! Here is a sample of my question. e.g. (file A: a.txt; file B: b.txt; file... (3 Replies)
Discussion started by: dirkaulo
3 Replies

5. Shell Programming and Scripting

How to remove exisiting file content from a file and have to append new file content?

hi all, i had the below script x=`cat input.txt |wc -1` awk 'NR>1 && NR<'$x' ' input.txt > output.txt by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies

6. Shell Programming and Scripting

How to cut a pipe delimited file and paste it with another file to form a comma separated outputfile

Hello ppl I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt Now I have to join (paste in unix) this A2.txt with external file A3.txt to form output file A4.txt which should be CSV (comma separated file) so that third party can... (25 Replies)
Discussion started by: etldev
25 Replies

7. Shell Programming and Scripting

Insert content of a file to another file at a line number which is given by third file

Hi friends, here is my problem. I have three files like this.. cat file1.txt ======= unix is best unix is best linux is best unix is best linux is best linux is best unix is best unix is best cat file2.txt ======== Windows performs better Mac OS performs better Windows... (4 Replies)
Discussion started by: Jagadeesh Kumar
4 Replies

8. UNIX for Beginners Questions & Answers

How to make paste -d second file print down while looping?

]I would like to make the second file label 'b' print down the first file label 'a', like shifting down the file creating new lines I want it to print all the way down until the first line of the second file hit the last line of the first file. Would I have to put this into a file itself or could I... (24 Replies)
Discussion started by: bigvito19
24 Replies
GMEDIASERVER(1) 					      General Commands Manual						   GMEDIASERVER(1)

NAME
GMediaServer - A UPnP compatible media server SYNOPSIS
gmediaserver [OPTIONS]... DIRECTORIES... DESCRIPTION
Run the UPnP compatible media server. The directories arguments specify where audio files are located. GMediaServer is a UPnP music media server. It implements the server component that provides UPnP media devices with information on avail- able audio files. GMediaServer uses the built-in http server of libupnp to stream the audio files to clients. When the main process receives the USR1 signal, all directories specified on the command line will be rescanned. This functionality is cur- rently quite crude in that all files are rescanned even if they were not changed. OPTIONS
This program follow the usual GNU command line syntax, with long options starting with two dashes (`-'). --friendly-name=NAME Set display name for media server. --disable-tags Do not scan files for tags. --fs-charset=CHARSET Specify character set used in file names. If the environment variable `G_BROKEN_FILENAMES' (1) is set, this is if possible identi- fied automaticly from the current locale (usually the environment variable `LC_CTYPE' affects this). Otherwise UTF-8 is assumed. Use this option to specify character set manually. Run `iconv --list' for a list of accepted character encoding names. --device-charset=CHARSET Specify character set used in the data passed to the control point (the player device). If this option is not specified, no transla- tion will occur. Run `iconv --list' for a list of accepted character encoding set names. --log-charset=CHARSET Specify character set used in messages printed to standard out and to the log file (if applicable). If this option is not specified, it is if possible identified automaticly from the current locale. -v, --verbose[=LEVEL] Set verbosity level (0-4). --pid-file=FILE Write pid to FILE when up and running. -i, --interface=NAME Listen on a specific interface. NAME can be either an IP address (IPv4) or the name of a network device. -p, --port=PORT Listen on a specific port. -o, --output=LOGFILE File for logging. -b, --background Go to background (detach). --no-timestamp Do not prepend timestamp to log entries. See strftime(3) for description of the timestamp format. --timestamp[=FORMAT] Prepend timestamp with optional time format. --profile=NAME Specify which profile to use. Profiles control what settings are enabled for a certain control point (the player device). See PRO- FILES below for a list of valid values for --profile. The default is "generic". --expire-time=SECONDS Set UPnP advertisement expire time. This may be necessary for some devices. The default is 100 seconds. --file-types=TYPE[,..] Specify which types of files are accepted by the control point. The argument is a comma separated list of accepted types. File types are identified by contents and not file name (i.e. the extension). See FILE TYPES below for a list of valid types for --file-types. The default is "mp3,wma,m3u,pls". --help Display this help and exit. --version Output version information and exit. PROFILES
The following values are valid for --profile: mp101 Netgear MP101. Implies --file-types=mp3,wma,m3u,pls. dms1 Omnify DMS1. Implies --expire-time=600 --file-types=mp3,wma,m3u,pls. generic All other devices. Implies no custom settings. FILE TYPES
The following types can be specified for --file-types: mp3 The regular MP3 files, or to be more specific `MPEG ADTS, layer III, v1'. At the moment this does also include MP3 files beginning with an ID3 tag. wma `Windows Media Audio' data encapsulated in Microsoft ASF files. wav Wave sound data encapsulated in RIFF files. m4a `iTunes AAC-LC' data encapsulated in an ISO Media MPEG v4 system file. ogg Vorbis audio data encapsulated in an Ogg file. pls A playlist format used by Winamp and other programs. m3u Simple and extended M3U playlists used by Winamp and other programs. Extended M3U playlists start with `#EXTM3U'. unknown Unidentified files (all other). Normally these files are not served, but when unknown is included in the file types list they will be. REPORTING BUGS
Report bugs to <oskar@osk.mine.nu>. AUTHOR
GMediaServer was written by Oskar Liljeblad <oskar@osk.mine.nu>. SEE ALSO
kill(2) COPYRIGHT
Copyright (C) 2005, 2006 Oskar Liljeblad This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. February 10, 2006 GMEDIASERVER(1)
All times are GMT -4. The time now is 12:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy