Sponsored Content
Full Discussion: help with sed one liner
Top Forums Shell Programming and Scripting help with sed one liner Post 302570606 by GmGeubt on Thursday 3rd of November 2011 09:28:35 PM
Old 11-03-2011
hey it worked thanks!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issue with a sed one liner variant - sed 's/ ; /|/g' $TMP1 > $TMP

Execution of the following segment is giving the error - Script extract:- OUT=$DATADIR/sol_rsult_orphn.bcp TMP1=${OUT}_tmp1 TMP=${OUT}_tmp ( isql -w 400 $dbConnect_OPR <<EOF select convert(char(10), s.lead_id) +'|' + s.pho_loc_type, ";", s.sol_rsult_cmnt, ";", +'|'+ s.del_ind... (3 Replies)
Discussion started by: kzmatam
3 Replies

2. Shell Programming and Scripting

Sed one-liner to print specific lines?

I need to print specific lines from a file, say 2-5, 8, 12-15, 17, 19, 21-27. How do I achieve this? (2 Replies)
Discussion started by: Ilja
2 Replies

3. Shell Programming and Scripting

a very basic sed one-liner...that isn't working :-(

Greetings all. :) I would like to use sed to join all non-blank lines together in a particular file. I was thinking I could do this by simply replacing the terminating, new-line character on every line which is not blank, but I must be missing something in my sed line: $ sed... (3 Replies)
Discussion started by: SteveB-in-LV
3 Replies

4. Shell Programming and Scripting

Clarification needed for a SED one liner

I want to use SED to replace all new line characters of a file, I googled and found this one liner sed '{:q;N;s/\n//g;t q}' infile what do :q;N; and t q mean in this script? (6 Replies)
Discussion started by: kevintse
6 Replies

5. Shell Programming and Scripting

SED | Awk flat file one liner

sed awk one liner (2 Replies)
Discussion started by: jap2614
2 Replies

6. UNIX for Advanced & Expert Users

Please explain this sed one liner

Can anyone explain the below sed oneliner? sed -e ':a' -e '$q;N;11,$D;ba' It works same as tail command. I just want to know how it works. Thanks ---------- Post updated at 11:42 PM ---------- Previous update was at 11:37 PM ---------- Moderators, Can you please delete this thread?... (0 Replies)
Discussion started by: pandeesh
0 Replies

7. UNIX for Advanced & Expert Users

sed one liner simialr to tail command

Can anyone explain the below sed oneliner? sed -e ':a' -e '$q;N;11,$D;ba' It works same as tail command. I just want to know how it works. Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies

8. UNIX for Dummies Questions & Answers

sed one-liner

I have a data base of part numbers: AAA Thing1 BBB Thing2 CCC Thing3 File one is a list of part numbers: AAA234 BBB678 CCC2345 Is there a sed one-line that would compare a data base with and replace the part numbers so that the output looks like this? AAA234 Thing1 BBB678 Thing2... (5 Replies)
Discussion started by: jimmyf
5 Replies

9. UNIX for Dummies Questions & Answers

awk or sed one liner

I have a data base of part numbers: AAA Thing1 BBB Thing2 CCC Thing3 File one is a list of part numbers: XXXX AAA234 XXXX BBB678 XXXX CCC2345 Is there a sed one-line that would compare a data base with and replace the part numbers so that the output looks like this? XXXX AAA234... (7 Replies)
Discussion started by: jimmyf
7 Replies

10. Shell Programming and Scripting

sed one Liner option -e

Hi, I have the following command.(Delete all trailing blank lines at the end of a file.) sed -e :a -e '/^\n*$/{$d;N;ba' -e '}' I don't understand the logic of this command and also I don't understand why -e is used. Can you please let me know the logic of this command and why three -e... (5 Replies)
Discussion started by: TomG
5 Replies
moon-buggy(6)							   Games Manual 						     moon-buggy(6)

NAME
moon-buggy - drive some car across the moon SYNOPSIS
moon-buggy [-hnsV] [--help] [--no-title] [--show-scores] [--version] DESCRIPTION
Moon-buggy is a simple character graphics game, where you drive some kind of car across the moon's surface. Unfortunately there are dan- gerous craters there. Fortunately your car can jump over them! OPTIONS
The program understands the following command line options. -h, --help shows a short usage message. -m, --mesg disable write access to your terminal by other users, so your boss can't disturb your game play with the help of "write" or "fin- ger". -n, --no-title skips the title screen. -s, --show-scores shows the current highscore list and exits. -V, --version prints the program's version to standard output and exits. KEYS
The moon-buggy is controlled by a couple of keys, which are described near the bottom of the screen. Most important are the following keys. SPC, j makes your car jump. The length of a jump is fixed and you can only start a new jump, while the wheels have contact to the ground. a, l fires the mining laser. The laser is used to remove stones, which may block your way. q quits the game prematurely. But you still keep your score and may enter the highscore list. FILES
The following files on your system are related to moon-buggy. /usr/games/moon-buggy the moon-buggy executable. /var/games/moon-buggy/mbscore the global score file $HOME/.mbscore the local score file. This is used, if moon-buggy has no write access to the global score file. SEE ALSO
Moon-buggy Usage and Maintenance by Jochen Voss. COPYING
Copyright (C) 2004 Jochen Voss Moon-buggy is free software. Read the file COPYING of the source code distribution for details or press 'c' at moon-buggy's title screen. AUTHOR
The program moon-buggy was implemented by Jochen Voss (voss@seehuhn.de). moon-buggy 1.0.51+esd Dec 27 2004 moon-buggy(6)
All times are GMT -4. The time now is 12:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy