General :: Mac Terminal - Remove Text Prefixing Dollar Sign

Mar 27, 2011

how to remove the text prefixing the dollar sign in mac terminal?

For example,

Peters-MacBook-Pro:~ peter$ ls my_dir

should become

$ ls my_dir

View 2 Replies


ADVERTISEMENT

Ubuntu :: Shell Terminal - Dollar Sign Missing?

Apr 14, 2011

I am trying to use Ubuntu terminal to execute unix commands. However, the dollar sign that usually appears in shell terminal is missing. Please see the attached screenshot image showing the terminal without the dollar sign. I cannot run any unix commands like cd, ls-l. Please advise how I could fix this problem.

View 3 Replies View Related

Ubuntu :: WPA Password With Dollar Sign

Nov 19, 2010

I'm trying to setup a linux computer to connect to my works wirless. It uses a WPA2 password with a dollar sign in it. I can't input it into wpa_passphrase because it thinks dollar sign means some command.

How do I tell it that the dollar sign is part of the password?

View 3 Replies View Related

Programming :: Can't Use Dollar Sign In String

Jul 17, 2011

i have a bunch of ubnt nanostations M series (wireless access points/routers)... they use airOS (a fork of openwrt). it runs a custom firmware that i made using provided sdk. and the lighttpd uses php/fi 2.0.1.... this is (of course) used to serve the web configuration.the problem: i need to use the ($) in a string but i couldn't. what i need to do is download some file from the internet using wget and have the pid of wget back to keep track of the process, then parse the output to the page.

View 5 Replies View Related

Ubuntu :: Location Rather Than % Sign In The Terminal?

Feb 17, 2011

I have been recently been using Ubuntu machines in my faculty labs at university that have % as the terminal sign for the line rather than the location.

For example,
% kate &
% echo "helloooo" > hello.txt
%

I find this extremely annoying as I am used to % being replaced with a path to the current directory followed by a $. Like a default Ubuntu install.

For example,

james@james-pc:~$ cd Documents
james@james-pc:~/Documents$

I would like to know if there is an easy way to change this to what I am used to? I don't necessarily need the "james-pc" bit, the username would be nice but I really want the path to the directory.

View 2 Replies View Related

Debian :: Can't Sign In Using Sudo In Terminal

Jul 23, 2010

I'm having trouble signing in using the sudo in the terminal.

I enter in the line: sudo abc (username = abc)

I get the line returned: [sudo] password for abc:

If I enter my normal login pw i get the message:

abc is not in the sudoers file. This incident will be reported.

If I enter the root pw I get the message: Sorry, try again.

I've just set up the debian OS and am trying to learn the linux way but it's a bit frustrating. so when I set up the system originally It had me make two passwords one for root and one for my user acct. So how do I get the sudo terminal to work?

View 2 Replies View Related

General :: Shell Script - What Does Dollar Size Mean

Jan 23, 2010

I am trying to learn shell scripting. What does the dollar sign mean, and these signs {}
DEST="${DST}`date +%F`/"

View 11 Replies View Related

Fedora :: Prevent Terminal Escape $ Sign In Auto-complete F15?

Jun 15, 2011

I just installed F15 and although different, I like it a lot. One thing I don't like, however, is the default auto-completion of environment variables in the terminal. In F14 and older, if you type for instance

Code:

ls $HOME and hit TAB, auto-complete will list the contents of $HOME to search deeper, so to say. But in F15, the terminal automatically escapes the $ sign. If you do the same as above, you get

Code:

ls $HOME

instead of

Code:

ls /home/benny/

how to change the auto-complete settings of the terminal so that $'s are not escaped anymore?

View 7 Replies View Related

Ubuntu :: Keys Are Not Working - When Want An @ Sign Cant Make That Sign - Keybaord Layout Has Been Changed

Mar 23, 2010

I have a problem my ubuntu is the latest distro but the shiftkeys are not working like when i whant an @ sign i cant make that sign the keybaord layout has been changed i even have done most of the solutions found on the site and no use.

View 1 Replies View Related

Ubuntu :: When Ever Try To Sign In To Messaging System It Gives This Message And Wont Let Sign In?

Feb 20, 2010

when ever i try to sign in to my messaging system it gives me this message and wont let me sign in,< Received unexpected response from [URL] useTLS=1 is not allowed for non secure requests.>

View 3 Replies View Related

General :: Remove Specified Line From Text?

Feb 12, 2011

I wish to move a specified line from a text file:

Quote:

ltoremove=5 #remove 5th line
i=1
while read line ; do

[Code]....

how should this actually be done? is there a shorter faster way to do this?

View 7 Replies View Related

General :: Remove Words / Text In Directory?

Feb 24, 2011

I have a folder with many many files. e.g html, docs, excel sheet, script etc.
Now I want to find {using grep command}a certain word in that folder/directory and delete it in all the files and scripts that have it.

For example, I want to delete the word /testing (with the slash) in all files in a directory.

View 14 Replies View Related

Ubuntu :: Add / Remove Bits Of Text From A Text File

Dec 6, 2010

I am looking for a way to keep a log and make if then statements if a line exitsts in the log. I also am looking for a way to make a simple loop, like goto line number, and I also am wondering how to add/remove bits of text from a text file (plugins line in server.properties)

View 5 Replies View Related

General :: Getting Text In The Terminal Window?

Sep 15, 2010

I'm writting a BASH script for a solaris system and need to have text enter into a console window. I've got so far:

#!/bin/bash
xterm
echo "text goes here"

When I run it I get the terminal window but the text going into another window. Nothing that I've found on this site helps me so far. If this is the wrong board, I'm sorry but I figured I'm about as newbie as it gets.

View 2 Replies View Related

General :: Remove All The <a Href Links From Text File?

Mar 24, 2010

[Code]....

I am trying to remove <a href links using SED but unable to do it.

The finale result I am looking for is

[Code]....

Is it possible with Linux or should I try with Php?

View 2 Replies View Related

General :: Remove Duplicate Words Within A Particular Text In A File?

Jul 22, 2011

I am basically trying to remove duplicate words in my <title></title> tag after I got hit by Google Panda. I have around 750 .html files and it will be difficult for to me remove one by one. I am looking for a way to remove only from within <title> </title>

Example of a duplicate title I have:

Code:

<title>Pasta, Pasta Recipe and Pasta Guide</title>

I dont want to replace those words anywhere else in the file except for within the <title>

View 14 Replies View Related

General :: Remove Lone Lines From A Text File?

Jul 6, 2011

anyone has ideas how to remove lone lines from a text file?

If I have a file that is like this:
-----------------------------------
line 1

[code]...

View 14 Replies View Related

General :: OpenSuse Terminal Text Editor

Mar 26, 2010

please let me know what are the commands I have to use & how to save a "OpenSuse Terminal text editor" once we have updated the file.

View 8 Replies View Related

General :: Copy And Paste Text Among Documents In Terminal

Mar 28, 2010

What is the best way to copy and paste some text among text documents in Linux terminal environment? Suppose I have 2 documents, A and B, and I want to copy some part of A to B. What is the way to achieve this?

View 5 Replies View Related

General :: How To 'find' Text Listed On Terminal Screen?

Dec 21, 2010

Since I see on my Centos 5 system, when using the Gnome Terminal, there is no 'Find' feature, do I use grep to search the output on Gnome Terminal?

I see grep syntax is:grep search-term file

But what do I use as the 'file' when what I want to search is the contents of the gnome terminal screen?If there is a good terminal program that does have a 'find' feature, let me know.

View 2 Replies View Related

General :: Put Custom Text On Terminal (bash Script)?

Jan 19, 2010

This code:

Code:
#! /bin/bash
echo Okay.
echo
Does not do it....

P.S. I want to show my parents what happens when I do:

Code:
sudo make me a sandwich
and have it say "Okay."

View 11 Replies View Related

General :: How To Specify Text Message Color On Gnome Terminal

Aug 11, 2010

OS is CentOS 5.5, and GNOME terminal emulator (v2.16.0). However I regard the question is not related with OS/Gnome version level. My question is whether if color setting is available or not for the text character outputted by kernel (or shell, i.e. Bash). Normally we can specify/modify text character color (and background color) with property setting on the terminal. However, it only takes affect to the text for inputting character, not for outputted character by kernel/shell. For example, when we type a shell command "ls -al <cr>", the text appears with the color along with the terminal property.

Meanwhile, the text message displayed on the console (output message against "ls -al" command), in this case it must be file and/or directory names, will appear with some preset color which we've not preliminarily set. In my case, I set Text color with "White", Background color with "Black". Then I expect the text output message color displayed by kernel/shell would be some brighter color. But the color is "blue" which does not look better brightness against "Black" background. For this situation what I'd like to know is how to set/specify the color outputted by the kernel/shell (or whether or not it is possible to set manually).

View 4 Replies View Related

General :: Opening Files In Text Editor From The Terminal

Mar 7, 2010

Using ubuntu 9.10

If I'm in a terminal window, and I open a file by typing eg :

It opens as a blank document... I know it has text in it though!

I've tried with other files and also with nano so it's not just a problem with a particular file.

How do I view the current contents of the file so I can then edit it?

View 4 Replies View Related

General :: Remove Lines From A Syslog Text File That Have Duplicate Strings

Mar 17, 2011

Trying to remove lines from a syslog text file that have duplicate strings

Mar 10 06:51:11[http-8080-1] INFO com.MYCOMPANY.webservices.userservice.web.UserServiceController [u:2533274802474744|360] Authorize [platformI$tformIdAndOs=2533274802474744|360, userRegion=America|360]

then a few lines down

Mar 10 06:52:03 [http-8080-1] INFO com.MYCOMPANY.webservices.userservice.web.UserServiceController [u:2533274802474744|360] Authorize [platformI$tformIdAndOs=2533274802474744|360, userRegion=America|360

got the same thing in terms of a u: number but the issue is I need to remove duplicates and just leave one and the file has multiple duplicates of different u: numbers and it's 14,000 lines long. can anyone tell me if I can use awk? sed? or sort for something like this to? removing lines that have a certain string in there that's a duplicate.

View 4 Replies View Related

General :: Select Text In BASH Terminal Using The Keyboard Without Mouse?

Jan 2, 2011

How to select text in BASH terminal using the keyboard without mouse? I'm using Ubuntu 10.10

View 1 Replies View Related

General :: Copy Text From Xterm Based Terminal To Some Other Gui Application?

Jan 13, 2011

i use uxrvt ( for those who dont know, its terminal emulator based on xterm).i know its easy to copy/paste stuff from terminal to itself is a trivial thing. it can be done by mouse left click to select and middle click to paste.but in my case i need to copy text from terminal to another application, viz on google chromium.

View 1 Replies View Related

General :: Changing Font Size In Text Mode Terminal?

Apr 10, 2011

I have a ubuntu linux working in TEXT mode. I would like the change the font size (or if possible, get my terminal with inconsolata font). How can i do it?

PS: i don't have a GUI or X Windows running.

sudo dpkg-reconfigure console-setup

View 1 Replies View Related

General :: Convert A Text File From Shift JIS To UTF-8 And Back From The Terminal?

Jul 21, 2011

In order to make this conversion I have to use a text editor. This is tedious. Is there an easier way to do it, like some program I can run from the Linux or OSX terminal?

View 1 Replies View Related

General :: Remove String Pattern Using Terminal?

Jul 27, 2011

I would like to remove a string pattern which like this.You should not remove this /*This is the part should remove*/ You should not remove this.I would like to remove all the text inside the /* and */.

View 2 Replies View Related

General :: Terminal Prompt Text Becomes Black When Connecting To Ubuntu With Nomachine NX Client?

Sep 24, 2010

I'm using Nomachine NX client for Windows to remotely connect to my Ubuntu.Every now and then I experience a strange phenomena: the text in the prompt of all open terminal windows becomes black, so it can't be viewed over the black background. Typed commands are also black, but the results are in normal colors. So I can run stuff, but can't see what I'm typing...After I close all open terminal windows and start a new terminal window, everything goes back to normal.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved