All,
I have a field in a comma seperated file with hundreds of lines and about 20 columns and I wish to remove all numbers after the decimal point in field 4 on each line and output the rest to another file or write it back to itself.
File is like this
20070126, 123.0, GBP, 1234.5678,... (9 Replies)
i need to use sed to remove an entire line containing a pattern stored in a variable say $var1
this var1 will be a URL and will therefore contain slashes
any help would be greatly appreciated (1 Reply)
I am working with bash on HP-UX server at school.
As practice for scripting, I am trying to make a pretend server admin script that adds a user to the system, deletes a user from the system, and lists all users of the pretend system. I have accomplished this with a select loop. Adding users, and... (2 Replies)
Hello Friends, How can I remove the last two values of this line using sed
John Carey:507-699-5368:29 Albert way, Edmonton, AL 25638:9/3/90:45900
The result should look like this:
John Carey:507-699-5368:29 Albert way, Edmonton, AL 25638 (3 Replies)
All:
Can somebody help me out with a sed command, which removes the the first occurance of ')' until the end of the line
If I have the following input
... (5 Replies)
hi all,
I am having trouble finding the right string for this - I dont know whether to use awk or sed..
If I have a file with alot of names and phone numbers like this
McGowan,Sean 978-934-4000
Kilcoyne,Kathleen 603-555-1212
Club603,The 617-505-1332
Boyle,William 301-444-1221
And... (11 Replies)
Hello.
The token is any printable characters between 2 " .
The token is unknown, but we know that it is between 2 "
Tok 1 : "1234x567"
Tok 2 : "A3b6+None"
Tok 3 : "A3b6!1234=@"
The ligne is :
Line 1 :
"9876xABCDE"Do you have any code fragments or data samples in your post
Line 2 : ... (3 Replies)
I have a long list of lines in a txt file which i'm only interested to extract the list of domains like the colored ones.
domain.com domain.com/page codes $.09
domain.org domain.org/page2/ codes $0.10
domain.net domain.net/page03 codes $0.05
domain.info ... (3 Replies)
hello,
I'm using sed command to extract the text between 2 special characters which are /* and */
I used following command to do this.
sed -n '/\/\*/,/\*\//p' file.txt
But if the file.txt contains a line something like this,
a=5; /* this is a comment */
the above command... (3 Replies)
Discussion started by: beginner_99
3 Replies
LEARN ABOUT DEBIAN
music123
music123(1) General Commands Manual music123(1)NAME
music123 - plays various sound files (usually including MP3, Ogg and Wav).
SYNOPSIS
music123 [ -hqrvz ] file ...
DESCRIPTION
music123 is a shell around various command line programs to play music files. It will descend directories trees with -r, and randomize
file lists with -z. The programs used and the options given them are listed in /etc/music123rc or ~/.music123rc.
OPTIONS -h Show command help and exit;
-q Quiet mode. No messages are displayed.
-r Recurse into directories, instead of ignoring them.
-v Display version information and exit.
-z Play files in random order.
-Z Play the files randomly and endlessly.
-l Loop. -z -l differs from -Z in that -z -l will randomize, play through the song list (without repetition) in random order once, and
repeat the songs in that order over and over; -Z will randomly play the songs, without any order, and will possibly play a song
right after itself.
-i Ignore extension case.
-L List files and exit.
-T Start a task that handle commands, only one command supported : quit, using q or Q will quit the application at the end of the cur-
rent song.
-D Set music123 not to delay between songs. (May make music123 harder to kill).
-d Customize the time music123 delays between songs. -d takes one argument, expressed in seconds, which may have a fractional part.
-@ Play the files listed in the mandatory argument of -@. Other files can be added on the command line, and this option can be given
several times. Note that music123 doesn't yet play URLs.
-- End option list.
EXAMPLES
Play three songs:
music123 test1.ogg test2.mp3 test3.wav
Play a couple of directories and other songs at random:
music123 -z -r Rock/ test1.ogg Pop/ test4.wav
FILES
/etc/music123rc
Describes which programs music123 uses, which files types it supports, and which options it passes those programs.
~/.music123rc
Per-user config file to override the system wide settings.
AUTHORS
Authors:
David Starner <dvdeug@debian.org>
July 24, 2002 music123(1)