Software :: Fvwm Resize Throws Off Xterm (bash) Word Wrapping

Aug 27, 2010

when I resize an xterm in fvwm, bash word wrapping is messed up. I don't know if it's from running a program that uses curses or not.

View 1 Replies


ADVERTISEMENT

Programming :: Bash Shell Script Read File Word By Word?

Jan 21, 2011

I have a output file look like this:
{"test1" : "test2", "test3" : "test4"},

How can I read word by word in each line?This is not working code:

a=0
while read word
do a=$(($a+1));

[code]...

View 14 Replies View Related

Programming :: Bash Read Input Word For Word ?

May 4, 2010

I am pretty new to bash scripting...I am trying to write a script that will take an input and read it word for word and then DO something with it like echo. I have been able to find how to read word for word from a file but I don't know how to do it with input.

I was looking for something like

Code:

exit 0 The input would be A-Z a-z 0-9 and have a single space between each word.

View 2 Replies View Related

Slackware :: Resize The Windows Such As Xterm And Firefox?

Jan 11, 2011

Just can't resize xterm or any windows such as firefox. In xterm it seems using the button in the up-right corner could resize the window's width, not height.

View 4 Replies View Related

General :: /usr/bin/xterm: Could Not Exec /bin/bash: Permission Denied

Sep 24, 2010

I'm in trouble when I log in the fedora as a normal user(not root) today. When I fill the username and the password press enter key. Then pop up a little window locate at top left corner. And have one line message : "/usr/bin/xterm : Could not exec /bin/bash : Permission Denied" Then I log in as root, it's ok. And when I open shell and type "su username" then the console print "su: /bin/bash: Permission denied" I have checked the perms of "/bin/bash" , it's 755. And I have tried all things which suggested from articles searched through Google. like change / or /root and other directory's permissions but failed.

Code:

[root@localhost lib]# ldd /bin/bash
linux-gate.so.1 => (0x00687000)
libtinfo.so.5 => /lib/libtinfo.so.5 (0x05846000)

[code]....

View 2 Replies View Related

General :: Word Search In Files Using Bash?

Oct 9, 2010

I'm trying to use Bash to search some directories for a word in one of documents. I've tried:

Code:

$ grep -R Brzeninski /media/disk-1/Dual_Data/

but It never returned a prompt, and i'm not sure what grep means or does.

View 1 Replies View Related

General :: How To Go Back Or Forward A Word In Bash Environment

Mar 3, 2010

How can I move around the bash commandline efficiently?In the Windows prompt, one can go back or forward one word by pressing ctrl and <-/->.What's the equivalent in a bash environment?

View 1 Replies View Related

General :: Bash: Replace All Occurrences Of A Word In The Last Command

Mar 9, 2011

Almost by mistake, I figured out you could do something like:

$ cp foo.data bar1.data
$ ^bar1^bar2

And that runs the same command with bar2.data instead of bar1.data. Now, how about if I have multiple occurrences of the target word? For example:

$ cp foo.data bar.data
$ ^data^index

It only replaces the first data extension. How do I get it to replace both?

View 1 Replies View Related

Programming :: Bash Script - Grepped A Log File To Obtain Every Line That Contains A Word

Dec 8, 2010

I have grepped a log file to obtain every line that contains a word (let's call it 'blah'). I now want to only display a list of entries within that search result that feature the word 'host' anywhere in the line, and I also want to display the single word *after* 'host' (up until the next space). So, the end result will look like this:

[Code]....

View 8 Replies View Related

General :: Write A Bash Script That Will Read The Word From The Text File?

Jun 10, 2011

I have a text file that contains a single word and I want to write a bash script that will read the word from the text file... The following is my incorrect attempt, as it assigns the name of the textfile to the variable as opposed to the word stored within the textfile:(assume I have a text file value.txt that has its contents a single word, say wordone)

Code:
#!/bin/sh
for f in value.txt
do
echo $f
done

so the output of the above script is value.txt, however I want it to be wordone.to summarise: how do I assign the value of the word contained within a textfile to a variable?

View 1 Replies View Related

General :: Replacing Word Occurrence With An Increasing Number In A File Using Bash?

Aug 2, 2010

I have a file in the form below, and wish to replace each start line with an increasing number. So instead of:

Code:
start
content content
start
content content
start

[Code]....

After several searches and a bit of messing around, it's clear I'm missing something, so was wondering if anyone could offer any insight?

View 17 Replies View Related

General :: Make Bash And It's Apps Automatically Resize?

May 29, 2011

I'm working in Debian, and I've noticed that when I resize my PuTTY window, the console inside isn't resizing to the new dimentions, so things like nano are running at 80xwhatever instead of the more useful 130xsomething that I've offered it.

View 2 Replies View Related

Slackware :: Intel Graphics / Vertical Lines From Xpdf/gv Under Xterm Stick To Xterm Window Making It Unreadable?

Jun 13, 2011

Start xpdf or gv. Click an xterm to be active and slide it over xpdf/gv. Vertical lines from xpdf/gv under the xterm stick to the xterm window above and make it unreadable.

The problem does NOT show with KDE default settings with display effects on but does show in fvwm, xfce etc, and in KDE without effects.

On a system with a Sandy Bridge integrated graphics (i5-2400) the problem went away by downgrading to xf86-video-intel-2.13.0. But it was not enough for another system with 945G which needed downgrading to xf86-video-intel-2.12.0.

View 3 Replies View Related

General :: How To Copy Things In Xterm And Paste Them Outside Of Xterm

May 2, 2011

i have fluxbox and i need to know how to copy things in xterm and paste them outside of xterm.

View 2 Replies View Related

Programming :: Wrapping Around Functions With Different Return Types?

Feb 1, 2010

I have functions which return different data like: int, char*, double...

I also have a list of datatypes (INTEGER, TEXT, REAL...) which can be returned.

I need to map a datatype with function, which purpose is to return it. Therefore, when I determine a datatype, I would like to call the required function without doing switch all the time.

My idea is to have an array of structs like this:

Code:
struct type_func_map
{
int type;
void (*func_wrapper_int)(void); //void (*func_wrapper_text)(void); void (*func_wrapper_real)(void);
};

[Code].....

View 10 Replies View Related

Programming :: Read Two Files Word By Word At A Time Using Any Loop By Shell Script?

Mar 4, 2010

Well, I am facing one issue:How can i read two files word by word at a time using any loop as i need word by word comparision in shell script?Please let me know pseudo code.

View 14 Replies View Related

General :: Search Word And Delete Only The Word And The Line Using Sed Command?

Jun 28, 2011

Want to search for ~ and delete it as well as to append the entire line to the above line. For Ex:

1111xxxx date Sandy area is ~around this area.3222xxx date There seems to ~left side of map, the colours are accurate (showing green areas)Even if I ~zoom in, the green parks, xxx3258 date The dammed up
~away, the "other" body of water varies ~blackNatural gas leaching.

IT MUST LOOK LIKE:

1111xxxx date Sandy area is around this area. 3222xxx date There seems to left side of map, the colours are accurate (showing green areas)Even if I zoom in, the green parks, xxx3258 date The dammed up away, the "other" body of water varies blackNatural gas leaching.

View 4 Replies View Related

CentOS 5 :: How To Disable Line Wrapping In Terminal Window

Aug 5, 2010

Currently all text lines which are written as output into a terminal window are automatically wrapped at the right border into the next line.How can I disable this permanently?In case when a line is longer than a terminal window I want to scroll horizontally to see the remaining line.

View 2 Replies View Related

General :: Sed Append Word At End Of Line If Word Is Missing

Feb 19, 2010

I have to modify formsweb.cfg file in Oracle IAS.

Problem description

In formsweb.cfg file are two lines with labels archive_jini= and archive= at the beginning of line. After equal sign (=) is row of filenames of java archives delimited by coma(,). When I insert a new jar file in java directory, I have to append the very same name of jar file to both lines if that name is not yet present.

Example snippet from formsweb.cfg

View 2 Replies View Related

Ubuntu :: Error - Fixme:d3d:state_wrap (WINED3DRS_WRAP0) Texture Wrapping Not Yet Supported

Sep 23, 2010

I think this might go for gaming, but maybe a general graphics problem could be taken into consideration for anything else that might display this error:

Code: fixme:d3d:state_wrap (WINED3DRS_WRAP0) Texture wrapping not yet supported. That was spammed in my terminal after I logged into my character. This was spamming itself before logging into my character:
Code:
err:d3d_surface:surface_allocate_surface >>>>>>>>>>>>>>>>> GL_INVALID_VALUE (0x501) from glTexImage2D @ surface.c / 862
err:d3d_surface:surface_allocate_surface >>>>>>>>>>>>>>>>> GL_INVALID_VALUE (0x501) from glTexImage2D @ surface.c / 862

[Code]...

Just to let you all know, I'm not all that advanced in Ubuntu or Linux knowledge, this game is just the only thing keeping me from going completely Ubuntu. I only have Windows installed to play this game, and I've gotten as far as to get this game playing this far,

View 9 Replies View Related

Debian :: Run Glade Under Fvwm?

Jan 24, 2011

I had glade package installed. But dpkg -I didn't yield any information. I am baffled.

View 1 Replies View Related

Ubuntu :: Xterm XT Error: Can't Open Display: Xterm: Display Is Not Set

Aug 20, 2010

I've just installed xterm, ant trying to run it from my windows machine using ssh. I have X11Forwarding yes on /etc/ssh/sshd_config when I use, MobaXterm, np, I can use xterm after I log ssh -X xxx

but when I use Cygwin, and do ssh -X xxx, and then xterm, I have: xterm XT error : Can't open display: xterm: Display is not set

View 3 Replies View Related

Software :: Configure Xterm Colors If Xterm Can Support 256 Colors?

Jul 3, 2009

I have a xterm which can have 256 colors. How can I configure the prompt colors and ls output colors to take advantages of the 256 color values?

View 4 Replies View Related

Debian Multimedia :: Mulling FVWM And Desktop Managers

Sep 10, 2011

I already have a pretty comfy setup, with Openbox over LXDE, but I'm curious about something: Even though I started out with LXDE, I removed the lxpanel and replaced it with Tint2, then I removed the LXDE right-click menu and replaced it with the Openbox menu. Finally, I replaced PCmanfm with Thunar, and run my wallpaper on Nitrogen. In fact, the only thing that says "LXDE" anymore is the logout menu, and if I could replace that with something sleeker that fit my theme, i would.

Question: Would it have made more sense to simply not install LXDE at all? I've heard of people who say they just run Openbox. Do they mean they have to run it on top of something like LXDE, or do they just have Openbox and nothing else? It sounds like that's what I could have done here and had virtually the same thing. Am I right?

Also, I've heard a lot about FVWM, and I'm curious as to whether it's that much better than what I have now. Is there a way to "try it out?" I don't want to replace a thing that I have here now, at least until I decided I liked FVWM better (which I don't know I will). There's very little i don't like about Openbox (absence of a volume control icon in the taskbar, for one), but I'm always into tinkering, and I like the idea of switching themes. By that I mean switching wallpaper, icon themes, window themes, conky configs, everything, all with a keystroke. I've done it with scripts in the past, but that's "doing it the hard way," and I've been on the hunt for a desktop manager that has this feature.

View 2 Replies View Related

Ubuntu :: How To Get Wireless Manager To Function Inside FVWM

Jun 29, 2010

I have a fresh desktop install ubuntu 10.04 which then I added the fvwm-crystal package (and dependencies). I logout of gnome, and into fvwm. When I do so, I lose my wireless connection that was started when I was in gnome. Is there a way to get a wireless manager to function inside fvwm (if I add it to the auto-start in my fvwm2rc?). What app can I use? I tried and failed miserably using the command line iwconifg/iwlist tools.

View 2 Replies View Related

Software :: Replicate GNOME Applications Menu In FVWM?

Oct 2, 2009

I would like to know if there is a way to replicate the contents of the GNOME Applications menu in FVWM (Without running GNOME), because it was very convenient to have it and I don't know the command-line names of some of the programs I need.Especially now I would really like to have it soon because I got VirtualBox and I don't know of any other way to start it other than that menu.

View 10 Replies View Related

General :: Mount Throws Segmentation Fault?

Dec 8, 2010

mount -t aufs -o dirs=$CHANGES=rw:/initrd/loopfs=ro none /unionCould anyone tell me what this command is trying to do..And, what could be the possible reason for it resulting in a segmentation fault

View 2 Replies View Related

Fedora :: Compile OLSRd On 15 But 'make' Throws Error

Jul 7, 2011

I am trying to compile OLSRd on Fedora 15 but 'make' throws Error 1. Here is the output:

Code:
[x@localhost olsrd-0.6.0]$ make
/usr/bin/ccache gcc -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wsign-compare -Waggregate-return -Wmissing-noreturn -Wmissing-format-attribute

[Code].....

View 7 Replies View Related

OpenSUSE :: Latest Update On 11.3 Throws Conflicts - Packman?

Jul 27, 2010

When I try to apply the latest updates on my 11.3 system, I get the following Warning. I think this is because I did the "switch system packages" to Packman after I installed it. What is the recommended solution?

Code:

#### YaST2 conflicts list - generated 2010-07-27 16:30:26 ####
patch:k3b-2785.noarch conflicts with k3b.x86_64 < 2.0.0-1.1.1 provided by k3b-2.0.0-1.pm.2.7.x86_64
[ ] do not install patch:k3b-2785.noarch

[code]....

View 9 Replies View Related

Fedora :: Start Fvwm And Configure It To Empty Desktop (no Toolbars No Nothing) Instead Of Gnome

Nov 11, 2009

I would like to setup fedora for fullscreen, touchscreen, noexit application. So whenever you'll boot or restart the application will automatically starts. I thing there are these step required:

1. autologin
2. start fvwm after login instead of default DM - gnome
3. run application

how to autologin in fedora but it still shows that fedora gui login screen for 10 seconds and then it logs in. My problem that I dont know how to start fvwm and configure it to empty desktop (no toolbars no nothing) instead of gnome.

View 2 Replies View Related







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