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


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

General :: Creating Tar : Shell Vs Ui, Size Differs?

Oct 14, 2010

In a shell script, I am creating a .tar using this command

Code:
tar -zcvf dst/lib/library.tar.gz dst/lib
There are two problems:

[code]...

View 1 Replies View Related

General :: 'cd' Command Increases Size Of Shell Propmt?

Sep 10, 2010

When i change the directory using 'cd', the length of my shell prompt keeps on increasing. To make it more clear kindly see below

Code:
$> cd MyWorks
$ Myworks> cd Shell

[code]....

View 8 Replies View Related

General :: Shell Script To Find A File Size?

Jul 20, 2010

am trying to write a shell script to find the size of a particular log file and if the log size grows, script should mail the changes to the administrator or a any user so script should monitor the log file continuously in a time interval, how can i do that?

I tried with these codes to find the file size but it throws me error says command not found

$s=$( stat -c %s mylogfile.log)
echo $s

View 10 Replies View Related

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 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

Slackware :: System Shell Font Size ?

Dec 28, 2010

I was using UBUNTU and still do, but I dual boot UBUNTU/Slackware now and my Linux knowledge has increased so much. This forum has been right there with me for the last couple weeks and I was reticent to post a question until a knew I had exhausted the available sources. So here goes.....Can I change the font size of the system shell that begins at startup (with the boot info and stuff). I really like using this shell as user. The thing that would make me nuts for it is if I can make the text a bit smaller. I have a 1920x1200 display and could really take advantage of all of that "real estate." The other posts related to this seem to focus an a broken configuration from the beginning, but my install is SWEET. Can I change this or is it baked into the system?

View 11 Replies View Related

Programming :: Shell Script / How To Check File Size?

Jan 21, 2009

I have a file that's supposed to be growing in size 24/7. I want to check every 10 minutes via cron that it's actually growing. If not, send an email. Does anyone know how to write a script to do that?

View 3 Replies View Related

Ubuntu :: Change Nautilus Windows Size And Colors In Gnome-shell?

May 22, 2011

No Matter what I do and change in gnome-tweak-tool, the window title bar won't change to anything else, won't go smaller, even the downloaded themes won't change the bar, and I cant seem to find the needed codes in xml to change them. photo is attached to illustrate the things I need to changeI need to change their size in the first place, and maybe change them to like ambiance or whatever. i've seen many guides on the net, and It still don't find the neeeded solution

View 1 Replies View Related

Software :: Bash Console - Shell - STACK Size: 98222 [0x7f665dbe4e00 0x7f665db25090]

May 14, 2010

i'm getting messages like these in my bash console

Code: STACK size: 98222 [0x7f665dbe4e00 0x7f665db25090] and i'm not quite sure what they mean, so far it looks it's related to the shell stack limit set by ulimit, however i've tried to change it (increasing it) however this message still persists.

View 9 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

View 3 Replies View Related

Hardware :: Partition Size Detected By Testdisk Bigger Than Disk Size

Mar 17, 2011

a client brought in an 160GB external HDD and wanted to get the files off it, there appeared to be no partitions on the disk but i thought it may have been formatted to use the whole disk. I tried to mount it as the various FS types the client thought it may have been to no avail.

I ran testdisk on it which told me that it previously had a mac partition table and a 210GB partition on it (which is larger than the disk) could anyone enlighten me as to whether or not this is even possible, and if so how could i retrieve the data?

View 2 Replies View Related

Software :: Xsane Reduces Size Of Image Of Scanned Page - How To Get Back To Full Size?

Nov 12, 2010

Ubuntu 10.04, xsane 0.996, Brother MFC 240c scanner.I just finished writing a long dissertation on my problem with this scanning environment (which I will spare you). In a nutshell the resulting image, when printed, is smaller than the original document. In writing my dissertation for this post I determined that the cause of the issue is that xsane believes I am scanning an 8.5 x 14 inch document when I am in fact scanning an 8.5 x 11 letter. So the question is... can I change the size to 8.5 x 11? and if so, how? I have not found anything in the xsane Preferences.

View 7 Replies View Related

Debian Multimedia :: How To Change Icons Size And Gaps Size

Oct 22, 2015

today I upgraded via official testing repository Gnome to version 3.18. After this, icons on desktop and nautilus are bigger, than before. Next thing, gaps between icons are smaller than before. I tried change theme to default (Adwaita), then run gtk-update-icon-cache, but without result.

Normal view - icons are big for this view. URL....

Small view - icons are still big for this view. URL...

How can I change icons size and gaps size? Or is it bug for this version?

View 2 Replies View Related

Fedora :: Re-size Logical Volume And Then Re-size File System?

Jan 19, 2011

is lvresize with --resizefs options re-size the Logical Volume and then re-size the file system? i mean we don't need to use resize2fs?I looked at man pages but it doesn't explain this option.

View 3 Replies View Related

OpenSUSE Hardware :: Document Size Incorrect - How To Get Correct Size

Jun 8, 2011

Have just installed Lexmark s605 printer on wireless network, printer works ok but when i print a document even though it is showing the correct size on 'print preview', the printed output is on the page is tiny and and 90deg rotated, I've tried various drivers from the Lexmark website, and also messing about in printer settings but nothing seems to make any difference.

View 3 Replies View Related

Red Hat / Fedora :: Inode Table Size And File System Size

Dec 14, 2010

How can we find the maximum size of the inode table and what decides it, and how the maximum size of volume of file system is decided ?

View 4 Replies View Related

Fedora :: Stuck With Bash Shell / Changing Default Shell To Tcsh?

Mar 14, 2010

I want to change my default shell to tcsh. I used

Code:
usermod -s /bin/tcsh username
command as given at url

But if I open a new shell, it is still a bash shell.

How do I make my default shell as tcsh?

View 6 Replies View Related

Ubuntu :: Using 10.04-server 64bit AMD With Fluxbox - Matlab In A Shell The Shell Does Not Display Characters Anymore

Jul 26, 2010

I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?

View 1 Replies View Related

Ubuntu :: Switch Desktop Shell From Unity To Gnome-shell?

Apr 14, 2011

Is there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.

(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)

View 2 Replies View Related

Software :: Export A Variable To Parent Shell In Shell Scripting?

May 21, 2009

Is there a way to export a variable to parent shell in shell scripting ?

View 3 Replies View Related

Programming :: Shell Scripting / Create A Shell Script Similar To Ls?

Jun 5, 2011

I am trying to create a shell script similar to ls, but which only lists directories. I have the first half working (no argument version), but trying to make it accept an argument, I am failing. My logic is sound I think, but I'm missing something on the syntax.

Code:
if [ $# -eq 0 ] ; then
d=`pwd`
for i in * ; do
if test -d $d/$i ; then
echo "$i:"
code....

View 10 Replies View Related

Programming :: Bash-shell-like Less Functionality In The Python Shell?

Jun 25, 2010

Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?

Example:

Code:

>>> import subprocess
>>> help(subprocess)
...
[pages of stuff to read]
...

I'm hoping so as I hate scrolling and love how less works with simple keystrokes for page-up/page-down/searching etc.

View 4 Replies View Related

Fedora :: Xsane Page Size Setting - Cannot Find A Page Size Anywhere In Any Of The Buttons

Jun 5, 2010

I have a Canoscan LiDE 30 scanner which works fine in Linux. I haven't used it in months, and never since moving from Jaunty x86_64 to Fedora 11 x86_64. This evening I suddenly need to scan two pages to send to someone via e-mail, and the recipient is desperate to receive them. Naturally, Xsane has decided this is the moment to screw me.

The problem: I cannot figure out how to tell Xsane that the page size is 8.5 11. It insists on scanning only the left side, 3.99 x 11. I cannot find a page size anywhere in any of the buttons.

In Preview I once got it to scan the entire page, but could not figure out how to save the image to file. Subsequently I have not been able to figure out how I did it. In any event, scanning from the small main window always scans 3.99 x 11. Adjusting the scan area manually in the Preview window allows me to change the size area in the small main window to 8.5 x 11, but when I then scan from the small main window it reverts to 3.99 x 11.

I have scanned the document a hundred times at least, each time trying different buttons, but nothing has succeeded in getting the full page.

View 5 Replies View Related

Ubuntu :: Unity Launcher Configuration - Changing Size Of The Launcher Bar Or Icon Size

Apr 28, 2011

How do you access preferences for changing size of the launcher bar or icon size, etc? I looked through system settings and could not find it.

View 4 Replies View Related

General :: Getting The Page Size?

May 11, 2010

How can I get the page size of my PC in Ubuntu? In proc/meminfo it says something of HugePageSize, but that term of Huge? Is that the solution?

View 2 Replies View Related







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