gedit newline weirdness


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers gedit newline weirdness
# 1  
Old 02-03-2011
gedit newline weirdness

I have this file
Code:
 cd /media/AUDIO/WAVE/9780743561181
~/Desktop/mp3-to-m4b 9780743561181-UNLEASHING THE IDEA VIRUS "UNLEASHING THE IDEA VIRUS" "GODIN, SETH" 2006  n
cd /media/AUDIO/WAVE/9780743561204
~/Desktop/mp3-to-m4b 9780743561204-STALIN'S GHOST "STALIN'S GHOST" "SMITH, MARTIN" 2007  n
cd /media/AUDIO/WAVE/9780743561310
~/Desktop/mp3-to-m4b 9780743561310-FORGOTTEN "FORGOTTEN" "KELLERMAN, FAYE" 2006  n

And when I view it in gedit, the "n" at the end of every line appears on the next line by itself, no matter how wide i stretch the window.. But when I do: grep -E '^n' I get nothing, but they all show up in :grep -E 'n$' so I guess it is at the end of the line, but always shows up on a newline in gedit. I need a program to parse this file and take in the n as the last parameter for each line.. Will there be a problem?
# 2  
Old 02-03-2011
so did you copy it from a PC. run dos2unix on it and see if that helps. if not then tr should do the trick.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Joining 3 line weirdness

Hi all you Unix/Linux gurus, So, I have something strage going on and need a sanity check... I have 2 files that both contain 3 lines of text... File1 - called t: CN66270E90 94:57:a5:d3:db:aa 94:57:a5:d3:db:ab File2 - called tt: hostname 5.7.2.7 72:8C:36:3B:5A:17 (2 Replies)
Discussion started by: joeg1484
2 Replies

2. Solaris

Solaris 11 sysconfig and zones weirdness

when I create a new zone either via zfs export template or installing the OS from the .iso I get a weird problem. once I create the zone and login for the first time to the console I get the sysconfig menu. I do the config setup and exit the zone boots normally. The next time I reboot, I have to do... (0 Replies)
Discussion started by: os2mac
0 Replies

3. Solaris

Zpool device weirdness

Weird duplicate device in one of my nested raidz1s - device is shown as both online and unavailable, with a hot spare showing up as degraded as well. Any thoughts on how I should proceed? root@storage# zpool status tank pool: tank state: DEGRADED status: One or more devices are... (6 Replies)
Discussion started by: DoohanMcGirk
6 Replies

4. Shell Programming and Scripting

File path weirdness

I want to be able to drag and drop a file into a script in the terminal but it doesn't like the /home/user prefix. How do I get around this? (8 Replies)
Discussion started by: pluto7777
8 Replies

5. Solaris

SSH weirdness

I've configured a new container/zone on Solaris 10 (Sparc) and I'm using Centrify for LDAP authentication to AD. My ssh client is as follows Sun_SSH_1.1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f I'm seeing some strange behavior from ssh. When I ssh onto the new zone to myself (non-root... (2 Replies)
Discussion started by: CDM
2 Replies

6. IP Networking

ftp and ssh weirdness

i've just setup my desktop (ubuntu 8.04) to run vsftpd and sshd. i have two laptops, both running linux. on one laptop i can connect to the desktop via ftp and ssh and everything works fine. so i don't think there's a problem with the server. on the other laptop i can't connect to the desktop... (3 Replies)
Discussion started by: darkmatter14B
3 Replies

7. UNIX for Dummies Questions & Answers

cygwin bash startup command weirdness (part 1)

I am running (I believe) the latest stable version of cygwin CYGWIN_NT-5.1 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin on a win xp sp2 laptop. Suppose, to make things simple for now (but I may do a part 2 posting...), that I am in a dos shell, and I want to create a bash shell and have it... (1 Reply)
Discussion started by: fabulous2
1 Replies
Login or Register to Ask a Question