09-24-2008
Do the following
1) vi the file
type this :%s/^M//g
To get ^M you hold down the CTRL key, press V then while still holding CTRL, press M.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to remove the first line of all files in a directory with .dat extension. Can any one help me on this with a small script. I want the file names to remain same . (8 Replies)
Discussion started by: dineshr85
8 Replies
2. UNIX for Dummies Questions & Answers
Hi everybody. Firstly, sorry for doing such a basic questions, but i have never worked with linux shells and at this moment i am trully desperated :d.
I have been checkin' another posts of this forum looking for different things for mixing them and get the solution to my problem, but i have not ... (2 Replies)
Discussion started by: bringer
2 Replies
3. Shell Programming and Scripting
I have been trying to remove some improperly formatted lines of output from fortran code I have been using. The problem is that I have some singularities in the math for some points that causes an incorrectly large value to be reported that exceeds the normal formating set in the code resulting in... (2 Replies)
Discussion started by: gillesc_mac
2 Replies
4. Shell Programming and Scripting
Hi
I have 3 files and I want to remove 1 line in each file. This line correposnds to the occurrence of a specific pattern
any idea how to do this in shell?
thx (4 Replies)
Discussion started by: melanie_pfefer
4 Replies
5. UNIX for Advanced & Expert Users
How to remove the first line from multiple files and use it as source to the jobs. Only at the runtime it should remove the first line not in the file . (1 Reply)
Discussion started by: etldeveloper
1 Replies
6. Shell Programming and Scripting
my files are as follows
fileA sepearated by tab /t
00 lieferungen
00 attractiop
01 done
02 forness
03 rasp
04 alwaysisng
04 funny
05 done1
fileB
funnymou120112
funnymou234470
mou3raspnhdhv
rddfgmoudone1438748
so all those record which are greater than 3 and which are not... (4 Replies)
Discussion started by: rajniman
4 Replies
7. Shell Programming and Scripting
Hi! I have been struggling with a large file that has stray end of line characters.
I am working on a Mac (Lion). I mention this only because I have been mucking around with fixing my problem using sed, and I have learned far more than I wanted to know about Unix and Mac eol characters.
I... (1 Reply)
Discussion started by: user999991
1 Replies
8. UNIX for Dummies Questions & Answers
awk 'BEGIN{FS = "Ç"}
NR == 1 {p = $0; next}
NF > 1 {print p; p = $0}
NF <= 1 {p = (p " " $0)}
END {print p}' input.txt > output.txt
This is what the input data file looks like with broken lines
Code:
29863 Ç890000000 Ç543209911 ÇCHNGOHG
Ç000000001 Ç055 ... (4 Replies)
Discussion started by: cumeh1624
4 Replies
9. Shell Programming and Scripting
I have a test file with the following format, It contains the username_date when the user was locked from the database.
$ cat lockedusers.txt
TEST1_21062016
TEST2_02122015
TEST3_01032016
TEST4_01042016
I'm writing a ksh script and faced with this difficult scenario for my... (11 Replies)
Discussion started by: humble_learner
11 Replies
DAB(6) BSD Games Manual DAB(6)
NAME
dab -- Dots and Boxes game
SYNOPSIS
dab [-aw] [-n ngames] [-p <c|h><c|h>] [xdim [ydim]]
DESCRIPTION
dab is a game where each player tries to complete the most boxes. A turn consists of putting one border of a box; the player setting the
fourth and final border of a box gets the point for the box and has another turn.
The keys used are the vi keys: k for up, j for down, h for left, and l for right. To switch between even and odd rows, use one of the fol-
lowing keys: u (diagonal right up), y (diagonal left up), b (diagonal left down), n (diagonal right down); <space> sets a new border, CTRL-L
and CTRL-R redraw the screen, and q quits the game.
Support options are:
-a Don't use the alternate character set.
-n ngames ngames games will be played. (Especially useful in -p cc mode.)
-p <c|h><c|h> Select which of the two players is a human or a computer. The first argument is the first player; c stands for computer and
h for human.
-w Wait for a character press between games.
xdim and ydim define the size of the board in the x and y dimensions.
AUTHORS
Christos Zoulas <christos@NetBSD.org>
SEE ALSO
Elwyn R. Berlekamp, The Dots and Boxes Game: Sophisticated Child's Play, A K Peters, 2000, http://www.akpeters.com/book.asp?bID=111.
BSD
December 24, 2003 BSD