Slackware :: Are TABS Replaceable By Spaces In An Xml File
Jun 12, 2011Kernel 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 RepliesKernel 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 RepliesIam 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 RelatedWhich 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
How to make mcedit not replace tabs with 8 spaces?
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.
Firefox 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 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]....
This is not a big deal in the grand scheme, but more an annoyance. I allowed Ubuntu (Karmic) to do some updates today. now, in the File Browser, there is no longer a tab bar. Before, there was the bar located beneath the address bar that was similar to Firefox, that had the + to open new tabs. Now it is gone and I do not see an option for a tab bar anywhere. I realize i can right-click on the tree on the left to open a new tab, but I REALLY liked the original feature. Anyone know how to get it back?
View 3 Replies View RelatedI tried Suse five or six years ago and ran into an issue that was not comfortable to work with so I went back to windows. The problem was open spaces between words was not permitted with my music files. I have transferred all of my CDs and LPs to MP3 and have a tremendous number of them and the Suse of five years ago required I convert a title like Foggy Mountain Special.mp3 into something resembling Foggy_Mountain_Special.mp3
I don't care to convert literally a hundred thousand titles to fit the latter format. Does the current version of Suse allow the use of spaces between the words or is the 'no open space' convention still required?
I have a laptop that I am in through SSH. The laptop does not have an Xwindow system so I am using the program fbi to open an image on my laptop screen from my SSH connection:
fbi -T 8 picture.jpg #this opens the image on the laptops tty8 terminal
I've found that making a for loop does not work with files that contain a space in the name. Something to due with a bug that they call a "feature" that stops the first variable at the first whitespace.
Using a "while" loop is not exactly what i require either seeing as I want to be able to view each image in the directory on screen and tag it accordingly, before it jumps off to the next image, and I'm not sure how to add a pause to a while loop.
How do I make a Bash script and loop Variables handle files like "files that contain spaces.jpg"
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 am trying to read a file character wise and trying to write the same character to another file. In this process, I unable to read and write white spaces successfully to the new file. The script reads the white spaces but while writing the white space is lost. The section of the code, is given below. Please advice how can i read and retain the white space while writing to a new file.
Code:
if [ -s f_test.txt ] && [ -f f_test.txt ]; then
echo "File Exists !!"
while read -n1 char; do
[code]....
I 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 RelatedI'm hoping that someone can help me, I need to remove spaces (not replace with underscores) from several thousand files on a system with cygwin.
Can I do this from the shell using rename or mv somehow?
trying to write my thesis in Lyx 1.6. It works fine on my windows laptop at home but Not on my work computer. The problem is, when i try to view it in pdflatex it comes with with: Lyx: file name error The directory path to the document cannot contain spaces
View 1 Replies View RelatedI got myself a .bashrc file off the net. I checked it beforehand, didn't detect anything bad about it. One thing that's odd about it, is that several spaces are added to the terminal command line.Screenshot:Those spaces are not put there by me. The file can be found here: [URL]..
View 3 Replies View RelatedI 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"
I get an error when running slapt-get. The error is: "slapt-get: error while loading shared libraries: libsas.so.2: cannot open shared object file: No such file or directory".
I've booted the Slackware disk # 1 and unchecked everything except the libraries category and installed them. I rebooted and it still says this. I get this same error before I put the disk in and rebooted to install ALL libraries. I really need help. BTW, I can't load KDE.I found a pkg manager already installed called "slackpkg". But I really need help on this library issue!! I uninstalled it (slapt-get) anyway, so forget that!
I tried to upgrade my slackware xfce 13.0 >> 13.1. I read "man slackpkg" first, and then I did exactly what I read at the man pages, my system was in init 1 mode.
The mirror I used it was the Greek mirror for 13.1. The command slackpkg upgrade-all was running ok until the "r" letter after that all packages did not upgraded because it was ERROR CHECKSUMS.md5 to all of them. Slackpkg did not upgrade all this packages but just check them and them skip them.
When everything stopped I reboot but at loading time it stops and I have this message: "libuuid.so.1:cannot open shared object file: No such file or directory."
After that I have 2 options to press control-d to reboot or to give root pass and login as root@(none):
After I login I cant connect to internet, I cant shutdown the system only reboot it from cl, I even cant go to init 1 or anything else. I dont know if I can fix the problem but I have to try...
Code:
bash-4.1$ konqueror
konqueror: error while loading shared libraries: libfam.so.0: cannot open shared object file: No such file or directory
I have just installed SABnzb application in my home folder. The executable file is SABnzb.py When I run the command in the Konsole # python SABnzb.py I have this Quote: python: can't open file 'SABnzbd.py': [Errno 2] No such file or directory
View 5 Replies View RelatedI just installed Alien Bob's HandBrake package and am getting a ton of warnings:
Code:
bash-3.1$ ghb
(ghb:27626): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-0.10/libgstmpeg2dec.so': libmpeg2.so.0: cannot open shared object file: No such file or directory
(ghb:27626): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-0.10/libgstsndfile.so': libsndfile.so.1: cannot open shared object file: No such file or directory
[Code]...
I've been building a minimal Slackware system with a small number of packages installed (following this article of ). But now I'm facing a problem with a library call 'libmpfr' when installing the package 'pmount'. I have tried installing libmpfr from source but the installation also REQUIRED libmpfr. Code: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory.The only solution I could come up with is to look for a precompiled libmpfr so that I can install it using installpkg. But nowhere could I find it by now.
View 2 Replies View RelatedI'd like to use a keymap not present in slackware "fr-dvorak-bepo" with mkinitrd because my root partition is encrypted by luks. So how can I generate a .bmap file from a classic .map file for mkinitrd ?
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 Related