Ubuntu :: ESC Character In Dash Shell

Oct 21, 2010

when I try to enter an escape sequence in the interactive mode of dash, it keeps on spewing out the <ESC> character as ^[ displayed in plain text instead of catching it as a control character. I vaguely remember encountering this on some UNIX shell but for the life of me I can't find anything on it. So how do I properly enter escape sequences in dash's interactive mode? (it supposedly supports vi line edit mode but I can't access it at all because of the ESC situation)It's not a make-or-break thing.

View 2 Replies


ADVERTISEMENT

General :: Use The Man / Info / Apropos Pages - Character Instructed The Shell To Interpret A Special Character As An Ordinary Character?

Mar 27, 2010

1.What character instructd the shell to interpret a special character as an ordinary character?

2.What directory contains some of the utilities available on the system in the form of binary files?

3. What command is used to search the location of a utility?

4. What command is used to instruct the editor to write the file and quit the editor?

5. What key quits the more utility and displays the shell prompt?

6. What command starts a child shell as the super user, taking on root's identity and environment?

7. Which wildcard characters can be used for searching all the files in the system that start with "A"?

8. The user name or login name of the super user is????

[Code]....

View 10 Replies View Related

Debian :: Starting Dash As A Login Shell?

Aug 22, 2010

"When first starting, the shell inspects argument 0, and if it begins with a dash '-', the shell is also considered a login shell" - from the dash man page. Could someone please explain this to me in a way that I actually understand?

View 1 Replies View Related

Programming :: Perl About System Command / Fails If The Standard Shell Is Dash And Not Bash?

Jun 30, 2011

I am trying to fix a perl script, and I really suck at perl. But I think this problem will be easy for people who know it.

The problem is, I have an old setup script someone wrote many years ago. It fails if the standard shell is dash and not bash. The only way I've gotten it to work is to point /bin/sh to bash. I looked thru the script and it uses "system" many places, and I think that's the problem.

I searched for it and found this link:url

My plan is to include this function:

Code:
sub system_bash {
my @args = ( "bash", "-c", shift );
system(@args);
}
Then I could simply change all calls to system into system_bash and it should work?

The parameter to the system calls is usually some variable. What if the parameter is a list already? Do I need to test for it somehow, and if it's a list, prepend "bash" and "-c" to the list? How do I do that?

In the script there are lots of places like this:

my $error = system($cmd);
if ($error) {
die/warn "some error message";
}

Shouldn't there be a return in the system_bash function?

View 8 Replies View Related

General :: How To Handle Character In Bash Shell

Apr 30, 2011

i have a script where i need to pass an argument "1234:-)"if i run this as ./shell.sh 1234:-)it wont work because invalid character. i need to handle this with expect utility so if i pass it as ./shell.sh "1234:-)"no issue in bash but expect does not recognize this.

View 7 Replies View Related

Programming :: Replace Character With Hex Value Choosing From Shell Cmd Line?

Jun 9, 2011

I am bouncing a file across platforms (windows->solaris->mainframe), and the file is starting out with a "special" character (the registered trademark "circle R") in some of the records. This character is not in the EBCDIC character set on the MF, so it is unrecognizable. The MF developer I am working with asked if it is possible to replace the character with a specific hex value (AF) before it gets to the MF.

I was putzing around with sed, tr, etc. on the ksh command line, hoping to find an easy way to get one of them to substitute hex instead of ASCII. I have found that the usual shell utilities recognize the trademark character, so homing in on what to replace is solved. But I cannot get anything to actually substitute in the hex sequence I want. E.g. I was thinking something like...

>cat special_file | sed 's/R/AF/g'

But my version of sed does not seem to have hex "editing" capability.

View 5 Replies View Related

Programming :: Csh Shell Script - String Concatenation - Add A New Line Character?

May 4, 2009

Inside a loop i'm populating a string variable. Because csh doesn't have very good support for arrays I thought of doing this. I want to add a new line character to the end of the concatenation each time the loop iterates. Then at the end print this variable out.

I tried " and some resources said it was just a "". Neither work. What am I doing wrong?

View 1 Replies View Related

Programming :: Shell Script Comparison For Two File(text) Character Wise?

Mar 1, 2010

I need to write a shell script which can compare two files(text files) character wise. eg. underscore is space.

------FILE 1---------------
A_B_C
D_E_F
G_H_I

[code].....

Actual problem: I need to write a shell script which can give me difference character by character not by line (using comm)

View 4 Replies View Related

Slackware :: Attempting To "speed Up Boot Time" By Using The "dash" Shell Instead Of "bash"?

Apr 23, 2010

i was attempting to "speed up boot time" by using the "dash" shell instead of "bash"there is a post on here which describes this.i installed the scripts and uhhhh....rebootednow it seems that i kinda sorta forgot to install "dash" before reboot and now ihave no system shell.no root user accessonly my regular user works, kinda...it seems that i cannot edit anything eitherit won't do any temp dataso with mc i cannot save any edited files.....prompt looks like thismichael@(none):i am hoping i just need to install dash....but with limited power at the command prompt this may be interesting.

View 5 Replies View Related

General :: "find And Replace" In Shell (includes The / Character)?

Feb 27, 2011

I would like to know what shell command I could use for finding a phrase (which is a URL) in many files, with a different phrase. I have tried the "sed" command, but it does not like the forward slash.

View 5 Replies View Related

Ubuntu :: Frozen Panel - Messing Around With The Alternate Character Panel App And Made A Custom Character Set

Jun 12, 2011

I was messing around with the alternate character panel app and made a custom character set. I then wanted to put it on a new panel and created a new panel. I moved the character set to that panel, and then started to mess around with the panel settings (auto hide, show hide buttons, and expand, to be specific.) So far so good, until I moved the panel from the right side of the screen to the top. I already had a panel here, and it seemed not to like hiding a panel when there was already one on the top.

When the new panel hid itself, all my panels stopped responding (any clicks on them did nothing) and my processor started going at 100%. I tried a reboot and the only thing that changed is that now I can't even see my panels. I'm guessing I need to change the settings back manually through the prompt, but I don't know how to do that. I am using 10.04 and have not upgraded gnome since upgrading to 10.04.

View 1 Replies View Related

Ubuntu :: Where Is The Top Panel And Dash

Aug 13, 2011

I did install awn and setup. Nice look I got, but, some mess I must did, and the top/bottom panel disappeared, and the dash did too. After some search on the web, got back top panel, although it is not automatic, I must to start it.

View 1 Replies View Related

Ubuntu :: Em Dash, Remapping Key Combinations?

Apr 16, 2010

I have this crazy idea to map an em dash to AltGr+Dash, replacing the yen symbol currently produced by that key combination. Is there a way to do that?

Unless, of course, there is another way to produce an em dash with the US International keyboard? Not including OpenOffice's autocorrect feature.

View 5 Replies View Related

Ubuntu :: Remove The 3 Whitespaces And Dash?

Apr 27, 2011

im having some trouble with Md5sum, when i run

Code:
echo -n AlBgNb5Q5gic | md5sum

i get the hashed string with 3 white spaces and a dash, how do i remove the 3 whitespaces and dash? I need it to match with md5 over at mysql server but it fails, i'm guessing the problem is with the whitespaces and the dash

View 2 Replies View Related

Ubuntu :: Remove A Shortcut From Dash?

Sep 1, 2011

I have Ubuntu 11.04, upgraded from 10.10, and I'm logging into the default Ubuntu, Unity. In Dash, if I search for "firefox", I get three results:

Firefox Web Browser
Mozilla Firefox
Mozilla Firefox (Safe Mode)

Clicking Firefox Web Browser brings up Firefox just fine. But both Mozilla Firefoxes do nothing. I have a feeling that they're left over from Wine, but I'm not sure. The Uninstall Wine Software program doesn't show Firefox, but I may have uninstalled it through there a long time ago.

I want to remove these shortcuts from Dash. I tried checking the Main Menu program, but Mozilla Firefox isn't in there (though Firefox Web Browser is). I looked in /usr/share/menu/, and found a file called "firefox". That file specifies a title of "Firefox Browser", so I'm not sure if it even applies. The command it gives, "/usr/bin/firefox", is good, anyway. I don't see any other firefox related file there.

So, does anyone know how I remove those shortcuts from Dash?

View 1 Replies View Related

Ubuntu :: Natty - What Is New About Unity New Look Dash

Mar 4, 2011

I have read about it, looked at screen shots of it but I don't think Unity runs on a virtual machine yet so I have not laid hands on it. Still it looks to me like a remake of the old Windows 3.x "program groups" concept (at least it was called something like that back before the fall of the Roman empire). Looks like a waste of space to me to have all the program and file icons in a box instead of tucked out of the way along a panel.

View 1 Replies View Related

Ubuntu :: Navigating Folders In Unity Dash

May 2, 2011

I upgraded to 11.04 with pretty much no issues. But, I do have one: When I opened "Files and Folders" in Dash and clicked on a .jpg image, a GNOME-looking dialogue popped up asking me which program I wanted to use to displayed the image. So, I went to make sure that opening an image on my desktop had the correct results. It did, and opens in Eye of Gnome. I messed up and made a typo, and now when I try to click on ANY folder or file in Dash, it says that it can't find the program "E" (which was my mistake/typo/whatever/I didn't finish typing and had a twitch or something xD). I cannot figure out how to set Dash to open [x file] with [x program].

View 9 Replies View Related

Ubuntu :: Dash Complains (Not A Folder) Error

May 2, 2011

Starting today, I have a new problem with "Files & Folders". No matter what file I click on, I get the same error message. For example, "Could not display "/work/photos/2011/March_LA/DSC_1585.JPG" The location is not a folder." Of course it's not a folder, since it is obviously an image file. If I navigate to this same file via Nautilus and double-click, it is opened properly. Is there some way to reset everything Unity back to some sort of default state? The only thing I did recently was to uninstall Thorin (XFCE file manager) which I had previously said to use for folders selected in the Dash. By the way, actual folders now work fine (and come up in Nautilus), but it now thinks everything is a folder. It doesn't make any difference what kind of file (.JPG, .mp4, .gnumeric,...) always the same "not a folder" error.

View 1 Replies View Related

Ubuntu :: Add Classic Categories In The Dash Menu?

Aug 7, 2011

Hey everybody, I recently just switched to unity. I was wondering if there is any way to add classic categories in the dash menu?

View 6 Replies View Related

Ubuntu :: CR48 11.04 Custom Keyboard Shortcut For Dash?

Jun 23, 2011

I just installed Ubuntu on my cr-48 laptop and i wanted to map the Search button to open the Unity Dash. It was initally mapped to it, but when I tried to map some of the function keys to control volume and screen brightness it changed it when I imported the Cr-48 keyboard using keytouch.When I go into the System Settings> Keyboard Shortcuts I've tried to add a custom shortcut but I don't know what command to put into the prompt when I make it so that the Unity Dash will open. At the moment all the special keys (forward, backward, refresh, backlight, and volume) are working like i want them to, its just the search button i want to change.

View 1 Replies View Related

Fedora :: Gnome 3: Add Link To Dash?

Jul 31, 2011

In Fedora 14 I used to have some links to often used folders in the top panel, and now I would like to have some shortcuts in the Gnome 3 dash. I tried adding a custom launcher to the applications menu using alacarte, but it doesn't show up there. There is, however, an entry in alacarte-made.desktop. Is there any way to accomplish this?

Code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Link

[Code].....

View 2 Replies View Related

General :: Why Does Md5sum Return A Dash At The End

Apr 19, 2011

why does md5sum return a dash at the end:

Code:
$ md5sum
string290350295 -

How can I remove this using the md5sum tags?

View 2 Replies View Related

Ubuntu :: Stuck On That Flashing Dash On A Black Screen And Won't Boot?

Nov 20, 2010

I have just recently installed Linux Lime along with windows 7 Home Premium. Before, there would be a menu asking me which operating system I would like to use. When I click linux it goes to linux and windows 7 goes to windows 7. Now when I click Linux, the black screen you get at the beginning shows a - (dash) constantly flashing on a black screen and won't boot to linux. This is normal as it does that for a second then boots. Now its stuck on that flashing dash on a black screen and won't boot.

View 1 Replies View Related

Ubuntu :: Remove All The Numbers And Dash That Precedes The File Names

Nov 28, 2010

I have thousands files in which there are numbers and a dash followed by file name (which are different from each other), but have the same suffix. I would like to remove all the numbers and dash that precedes the file names.

View 1 Replies View Related

Ubuntu :: Clear History In Recent File Folder Under Dash?

May 22, 2011

i am using natty 11.04. can you please guide me how to clear recent history in dash under search files folders?also tell me how to customize dash application menu etc...

View 1 Replies View Related

Ubuntu :: Keyboard Shortcut To Open Launcher Without Opening The Dash?

Jul 21, 2011

In natty, if I hit the super key once, it opens the launcher, but it also opens the dash. And the launcher doesn't work the same when the dash is open. It takes two clicks on a program icon to open the program when the dash is open, and only one click when the dash is closed. Just enough to keep me from getting into a rhythm.Hitting the super key twice will open the launcher and close the dash, but only if you don't hit the super key twice too quickly. Is there some way I can configure unity so the super key (or some other key) opens the launcher but does not open the dash?

View 5 Replies View Related

General :: BASH/Dash : Put A JPEG Or PNG Into The Clipboard?

Dec 5, 2010

copy a jpeg or a png and place it into the clipboard of X11 of my icewm. which program can do cat "myfile.jpg" > ?theclipboardofx11?

View 10 Replies View Related

Ubuntu :: Natty: Dash Icon Size And Removing Workspace Switcher?

Apr 30, 2011

I did my best to search for any solutions but came up empty-handed. Is it possible to reduce the size of the dash icons in Natty? They are unnecessarily massive for my taste. Please note that I am not talking about the launcher icons which can be resized in Tweak.

Is it possible to remove the workspace switcher icon from the launcher? [solved] I've removed the places icons as per this thread and wouldn't mind removing this icon as well.

View 9 Replies View Related

General :: Passing Options To A Program: What's The Convention For One Dash Vs Two?

Mar 20, 2011

Some programs will take options like this:$ someprogram -orange apple

And other programs will use something like this:

$ otherprogram --orange apple

Is there a "rule" or convention for this in Linux/Unix/OSX?

View 2 Replies View Related

Software :: Stuck On Flashing Input Dash - Cant Type Anything

Apr 11, 2010

[code].....

Now my desktop wont even boot up... I get stuck on a flashing input dash... or whatever, but cant type anything. It looks like this _ only flashing. How do I go about fixing this?

View 3 Replies View Related







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