Software :: Make Mcedit Not Replace Tabs With 8 Spaces?
Mar 17, 2010How to make mcedit not replace tabs with 8 spaces?
View 2 RepliesHow to make mcedit not replace tabs with 8 spaces?
View 2 RepliesWhich do you prefer and why? Also, I remember someone telling me once that while using space indentation use either 4 spaces or 2 spaces. Don't use 3 spaces. Anyone know why they would say not to use 3 spaces?
View 14 Replies View RelatedI have a lot of files with tabs littered throughout, and I'd like to convert them all into spaces. I know about the expand command, but unfortunately I would have to type out every single file using it. Is there any easier way to do this on Linux?
View 2 Replies View RelatedHow do you convert tabs to spaces?
View 6 Replies View RelatedI writing a script to go through multiple reports. I want to grep daemon.debug @10.10.10.10 on all reports to make sure it is pointing to the right IP address. the problems is the space between debug and @10 are different on all the reports, some have one space some have two and some have tabs how do I ignore the tabs or spaces and grep daemon.debug @10.10.10.10
daemon.debug /var/log/ftp rotate size 20m files 4 compress
daemon.debug @10.10.10.10
authpriv.* /var/log/secure rotate size 20m files 4 compress
authpriv.* @10.10.10.10
Kernel 2.6.21.5, slack 12.0 I have a file beginning with <?xml version=1.0?>. May I replace tabs by spaces in it?
View 6 Replies View RelatedIve some textfiles which contains some colums seperated by a various number of spaces, but instead i need one single tab as a seperator.
View 5 Replies View RelatedIam reading a file using C-sh script after manipulating the variables I need to dump into a new file. This in working fine but I couldn't retain the multiple spaces and tabs in a same line. For readability I want to print it back as I read. Now script treating multiple tabs as onl tab or space.
View 3 Replies View RelatedBack to the problem: I wrote a little bash script that people around here can run to search and replace strings in the current directory and all subdirectories. However, whenever there is a space in the new string (the one doing the replacing), I get this error:
Sed: -e expression #1, char 9: unterminated `s' command
My code looks like this:
Code:
find ./ -type f -not -name find_SNR.sh -exec sed -i 's/'$FIND_SNR_STR1/$FIND_SNR_STR2/'' {} ;
How can I make vi and nano such that when I press the tab key, it automatically replaces the tab with 4 spaces?
View 5 Replies View RelatedI often get files with many spaces as part of their names. I would like to automatically replace these spaces with underscores, but otherwise not change the file name. Is there a way to do this task with just the bash shell?
View 4 Replies View RelatedDoes any one know what syntax i could use to allow me to replace all instances at the beginning of a line with ones.
Before :
Code:
----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
Logical device name : RAID1Mirror
RAID level : 1
Status of logical device : Optimal
After
Code:
----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
111Logical device name : RAID1Mirror
1111RAID level : 1
11111Status of logical device : Optimal
I am trying to rename a lot of files but need to keep the extension :
the files are films names :
a.b.c.d.***.iso
the result should be replacing "." by spaces " "
this command :
for files in *.iso ; do mv "$files" `echo "$files" | tr '.' ' '`; done
put a space also before the extension iso ??
How can I rename files from
"a.b.c.d.iso" to "a b c d.iso"
Textpad on Windows did a great job with this. How to make gedit save tabs when closing and reopen the files when restarting?
View 2 Replies View RelatedFirefox is sometimes slow opening new tabs/switching between tabs. If I click on the kickoff application launcher button, it takes a few seconds to open, and typing something in the search makes it hang up for about 20 seconds before it does the search. Clicking on an app takes 16 seconds before the menu window closes and the program begins to start. Then it takes another 30sec-1min before the app is usable. smplayer plays video with tearing.
Like right now I tried taking a screenshot, and it tells me
Error launching /usr/share/applications/kde4/ksnapshot.desktop. Either KLauncher is not running anymore, or it failed to start the application.
while the app worked fine.
I also tried running glxgears right now, and it runs but the gears don't move, and terminal states
15 frames in 19.0 seconds = 0.789 FPS
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 48 requests (48 known processed) with 15 events remaining.
If I'm on dolphin, and I click a video to start smplayer, it takes about 1 minute for it to start.
Memory is using 1.4GB out of 3.6GB, with 0.08GB/2GB swap
Top shows an average usage of less than 10% average. Xorg is always 25%, kwin is always 10% and then rest of the apps are less than that.
CPU: AMD Athlon(tm) II X4 620 Processor
Integrated VIdeo: HD4200 with fglrx driver
When I ssh into the computer with x tunneling, the programs start up faster than being on the desktop
I just moved to Fedora 11 from Ubuntu and I am very happy, not even thinking to go back to Ubuntu (because of gma500 driver support). How can I clean up Fedora? On Ubuntu I could go to Synaptics, remove Installed (not residetial) packages, I coud use terminal sudo autoremove, autoclean, clean. On Fedora I found out only one so far: yum clean all. Is there anything else I should now, can you share with me how you are cleaning up your Fedora? Second thing, which is not only related to Fedora, is there any chance to make Epiphany remeber tabs after I close the browser and open it again? Don't really want to use any other browser.
View 7 Replies View RelatedI recently installed Linux Mint 8, which is an amazing distribution.I can get everything to work perfect, but I cannot figure out how to make the mouse wheel change desktops in compiz. Also, make sure that it only changes desktops when the mouse is over an empty desktop because I got it working once but the mouse wheel would change desktops all the time, even when I was trying to scroll through a webpage or document.
View 2 Replies View RelatedIs it possible, in Linux, to rename a file from something without spaces to something containing spaces? I know I can create directories and files with spaces by doing:
mkdir "new dir" and:
touch "new file.txt"
I want to rename files from:
imgp0882.jpg to something like:
20091231 1243 some topic.jpg
And how would it look in a shell script that uses parameters like:
for i in *.jpg do
rename "$i" "$somepath/$mydate $mytime $mytopic$extension"
?
I'm new to Linux (using PCLinuxOS 2009.2), coming from Windows, and I've written myself a little shell script to download files from my camera and then automatically rename them according to a date-and-topic pattern. As you can guess by now, I'm stuck on the bit about renaming. If you want to see my script, here's a copy. I'm not using jhead for this renaming because that only works with JPEG files but I want a single solution for any media format including videos.
I want to install mcedit on my linux Ubuntu....where can I download it? How I install it?
View 1 Replies View Relatedi am trying to make a script in which i can drag a file (with spaces in file name ) and it will scp the file to another computermy code is
Code:
echo "--------------------------------------------"
echo "drag file now"
[code]....
I have a program I am writing where I have a for loop and I want to make it substitute the variable twice like:
for ((i=0;i<5;i++)) do
echo $"$i"
done
[code]...
Can the Replace function replace more than one word with the same character(s)?
Also, do you know how to access the plugins provided by the gedit-plugins package?
I setting up a web server on my Linux (Centos) using "Apache" web server. And its working well, it will show my websites. But when i try to put my url in a internet browser (ie. only type "myweb.com" ) is only be [URL]. Usually as i know like the other websites (ie. google.com) it will go to auto replace the name be [URL]. But my url here it's not be replacing like that. How to do this configuration. I don't know where the services that i need to look. (ie; named (bind) or in Apache web server it self)?
View 2 Replies View RelatedI want to add something at the end of each line, from line 4 to line 8, in vim? How can i do that? I know adding at the beginning is like: 4,8: normal: i# What i want to add contains special characters ( here it is: <br/> ) , in case that matters.
I want to add tabs at the beginning of each line, from line 6 to line 12. How?
Since I still want to do all my programming on Win32 platform, VirtualBox should be fine there, but would VirtualBox be able to manage games ( BF2, CSS )?If so then well I'm going to Ubuntu permenatly, if not, I'll just Dual boot between Windows & Ubuntu, Ubuntu for everything ( VirtualBox for programming ), and Windows os for Gaming.
My only problem there, is having to restart every time I want to play a game, that's why I was hoping VirtualBox could manage, wouldn't have to be any, fancy resolution.Also, with Firefox on linux, is it possible to use Ctrl- ( 1, 2, 3, etc... ) to switch tabs, on windows this is possible, and an a feature I love.
I'd can't seem to find a preference to turn off gedit's default behaviour of opening a new file in a new tab. I'd like it to open in a new window, so I can view two pages of code side by side. How can I convince gedit to open a new instance?
View 2 Replies View RelatedCurrently the way tabs on the taskbar look (the bar at the bottom) make it a bit hard to distinguish between them. sometimes they all look like one big clump of text. its quite messy. when you look at something like the windows xp taskbar [URL] its much easier to see between them. I guess its also because the buttons look 3D in that they stick out a bit. Plus the choice of colours used for when you are on a tab helps.
How do I change/find a theme for this?
Can I disable the tabs in gedit? I want it to behave like notepad in Windows. I found instructions for adding 'open in new window' menu options, but I want whenever I doubleclick on a text file or run 'gedit filename', the file to be opened in a separate window.
View 5 Replies View RelatedI was messing with Compiz to enable cube and 3D cube and something disable the rearranging of the tabs in my taskbar. I'm not sure what it was, Something was disabled. Anyone know how to re-enable this?
View 3 Replies View RelatedI was having a problem with the tabs in Firefox 4, on Ubuntu 11.04 x64. No matter what I did, whether it was clicking the "X" button, hitting Ctrl+W, looking for a "Close Tab" option in the menus, I couldn't close any tabs in Firefox 4. I started disabling extensions, and first, I disabled the "Global Unity Integration" extension, and lo and behold, after a restart of Firefox, the problem is no more.
View 3 Replies View Related