I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore.
Here is what 's happening:
* I wanted to remove lines containing digits so I used this command
And the output result was empty.
Inside this it contains lines like these:
* So basically there's only 3 types of digits 089 numbers
* I tried Gep too. My command was this:
And the out put is still nothing.
Also the command I used to do are not working any more.. It hanged with the line with >
For example when I used this commad and I got this:
It just literally stuck there. I tried to reset Terminal with reset but still doesn't work. Is there any way to fix this other than restore or reformat?
You probably typed in a command with mismatched quotes.
The > at the start of a line is the default secondary prompt in most shells waiting for you to type in the remainder of a command you started on an earlier line.
To break out of it, hold down the control key (labeled "control", "ctl", or "cntl" depending on who manufactured your keyboard) and then hit the "c" key to interrupt your shell and return to your primary prompt.
This User Gave Thanks to Don Cragun For This Post:
Thanks for reply The ctrl + C really helps. But I still can't manage to remove lines with digits though.
I'd tired [[:digit:]] with sed like this:
sed '/[[:digit:]]/d' input.txt > output.txt and still get empty output.
You say the output is empty. What do you mean? Do you mean that nothing is written to the terminal (which is what you should expect), or do you mean that the command:
after you run your sed command completes doesn't print anything but a shell prompt for the next command?
Hi,
If you have names of file with quote, you can to have this problem, example:
Sorry, my assertion is false, because my example contains an error: :done between ;done
And without this error, loop for work fine
Regards.
Last edited by disedorgue; 02-12-2015 at 07:06 AM..
Reason: possible response wrong because i test ":done" between ";done"
This User Gave Thanks to disedorgue For This Post:
Output is empty as in the command is successfully executed and I got the output.txt file. However, the txt file is totally empty. I am pretty sure there are lines without digits. Yes command is complete and doesn't print anything but a shell prompt for the next command
Thank you so much for your replies guys. So if my file contain quotes as mentioned, is there any other way to fix it without removing the quotes??
I am trying to delete all empty lines from a file using either
grep -v ^$ file
or
sed '/^$/d' file
But neither one is working.
I have uploaded the file I am trying to modify. Any help will be greatly apreciated. (3 Replies)
Hi Guys,
I'm using my putty to connect to the HP-UX test box. Once I get connected to server there seem to be something wrong with my putty that behaves very odd. for example it starts from the half of the screen. I really dont know how to explain this problem. or for instance when i run vi to... (2 Replies)
Im a complete newbie tryin to work with linux centos;
in terminal wanted to log with script command;
but output file has some strange characters when I try to open with gedit or bluefish
terminal , gedit, bluefish encoding is utf-8 ;
Script started on Mon 08 Mar 2010 03:32:39 PM EET... (2 Replies)
I've a python script named rwe.py. I'm running the program in three separate terminals. If one of the executing program stops . I want to leave the terminal as it is so that i can see the error. i wrote a the below script and used cron to run it every one hour to check if the three programs are... (0 Replies)
Hello everyone. This is my first post.:o
Using Ubuntu 8.04 and bash 3.2.39 i'm trying to adapt my routine to this platform.
So, this means forget xterm and use gnome-terminal (as default ubuntu terminal). EveryDay i need to connect to several servers, and i've made a Tcl'script to make this... (1 Reply)
I'm hoping someone can help me out here.
I'm having a problem on my Red Hat Enterprise 5 Server where my tty devices "tty" are being set to read only permissions.
I need them to be set to 777 in order to write to the serial printers through a custome application.
I have gone through many... (2 Replies)
i am executiing some commands using system an popen command in c.
while executing the code .
some data is shown on terimal without using any print statement.
how can i solve this problem
thank u
sree (1 Reply)
Hello All,
I am facing a problem on SCO Open Server V 5x, We are using serial communication on dumb terminals, right now i am facing a problem on some terminals, as they are not showing thier previous tty no, as tty13 or tty18, but they are showing ttya6 or ttya4, i also tried to move and link... (5 Replies)
hey,
I use cygwin to connect to AIX 5.2 but when I open vi I get an error saying:
ex: 0602-108 cygwin is not a recognized terminal type
how can I fix that? I thought cygwin was tty vt100? (1 Reply)