General :: Ubuntu : Delete The Extra Spaces?
Jul 28, 2010
I want to ask a question regarding the terminal in ubuntu. When i deleted some lines in the config files for example, there will be those so-called extra spaces left after deleting and i can't seem to delete those spaces and 'pull' up the lines below. So, how to delete those extra spaces?
View 13 Replies
ADVERTISEMENT
Dec 2, 2009
things "seem" to work, first time I've really ever used dmraid (usually mdraid), but I'm worried about this error
dmraid -ay
RAID set "jmicron_STORAGE2 " was activated
The dynamic shared library "libdmraid-events-jmicron.so" could not be loaded:
libdmraid-events-jmicron.so: cannot open shared object file: No such file or directory
Two things, why no matter what I name the RAID in the jmicron bios is puts a bagillion spaces after it, and second, I cannot find the missing lib anywhere I've installed all the dmraid* packages.
View 3 Replies
View Related
Feb 4, 2010
After upgrade from MDV 2009.1 to MDV 2010 a bunch of available kernels that can be selected are listed at boot. I think that these are still installed but I really don't need them listed. I would like to get rid of the list of extras. I've had a look at /boot/grub but I can't figure out what.
View 11 Replies
View Related
Nov 7, 2010
I got a few Ubuntu versions on different partitions and a few 10G swap spaces on my 1TB disc. Is it possible to delete some of these swap spaces and just keep one? Will any of them do the job for all Ubuntu versions?
View 1 Replies
View Related
Jun 14, 2010
I write sources in VIM and i use the following settings:
set tabstop=4
set expandtab
set autoindent
And I have got some questions. 1:Is there any way I could do, so when I press backspace to delete an entire tab instead of individual spaces ? 2:Is there anything to do to delete a tab if I insert a closed curly bracket.
Code:
int main (void) {
} // <- and this one gets perfectly aligned
View 2 Replies
View Related
Jan 26, 2010
Is 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.
View 2 Replies
View Related
Oct 10, 2010
here is what is in my file:
[code]...
i have xterminus installed. i also have a white block over the first letter in my username and when i begin typing, the 'block-type cursor' just leaves full white spaces behind and i cannot read my text at all. even when i delete back over the white spaces, they stay whited out.
View 4 Replies
View Related
Jul 18, 2010
there are 2 related to 11.3: openSUSE_11.3/ and openSUSE_11.3_KDE_Distro_Factory/ Index of /repositories/KDE:/Extra they are not listed as official kde4 repos here KDE repositories - openSUSE, but they are in the same directory structure on the build service so it would assume they are official (what ever official means) They have rpm's I didn't see in community and playground (at least for 11.3) such as audex and clementine I would guess that they are for the stable and factory versions of KDE4 but then shouldn't there be a 3rd for unstable if this was the case? Or do they refer to the distro, 11.3 stable and 11.3 factory
View 6 Replies
View Related
May 26, 2010
I'm trying to use a tilde '~' for a filename. This works fine normally Code: rm ~/File
But when I have a file with a space in in and enclose it in quotes it takes it literally.If a word begins with an unquoted tilde character (�~�), all of the characters up to the first unquoted slash (or all characters, if there is no unquoted slash) are considered a tilde-prefix.
View 5 Replies
View Related
Dec 10, 2010
A process with name=example can be killed by killall -9 example
How to kill multiple instances of following command which contain spaces?
"valgrind --tool=lackey ./testcases/kernel/syscalls/waitpid/waitpid03"
Following command returns valgrind --tool=lackey ./testcases/kernel/syscalls/waitpid/waitpid03: No such file or directory
View 3 Replies
View Related
Feb 2, 2011
Ive 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 Related
Jan 5, 2011
I have a line like
port = 2566
I want to replace it as
port = 8080
how to do this in shell script. when i tried to do this with sed
sed -i 's/port=.*/port='$3'/' /root/$2
it is not recognizing spaces , it works only if line is port=2566 .
View 6 Replies
View Related
Jan 21, 2010
I am trying to run an scp command on my linux server, this is working fine, however I changed the output folder to one which has spaces and now when run, it's coming up saying SCP ambiguous target
Here's my string:
expect -c 'spawn scp -r /var/lib/asterisk/backups/Everyday/ administrator@192.1.1.1:
/Volumes/Data1/My Backup Folder/ ; expect assword ; send "MYPASSWORD " ; interact;'
View 4 Replies
View Related
Jul 2, 2010
I 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 Related
Sep 14, 2010
I am reading the output of /proc/acpi/thermal_zone/ATF0/temperature in a program to read my CPU temp. I am using cat like the following:
Code:
#cat /proc/acpi/thermal_zone/ATF0/temperature
temperature: 49 C
I basically want to get rid of the spaces in between temperature and the actual temperature. Is there a command I can pipe the cat output to, to remove the spaces. I have seen suggestions for sed, or tr, but for some reason I cannot get them to work properly.
View 14 Replies
View Related
May 7, 2010
I did the following script:
Code:
DIR=`pwd`;for i in `find . -name GESTION -type d`;do cd $i/..;setfacl -R -m g:directores:rwx,
GESTION;echo $DIR'/'$i;cd $DIR;done
This code do the following actions:
1. Starting inside a folder, it's searching for any folder called "GESTION"
2. Every time a folder called "GESTION" is found, then the script move to its parent folder, and then it applies ACL permissions to the folder GESTION by using the command setfacl.
The problem is that the script doesn't works when there was found a folder with a blank space in its name. I mean:
/dir1/dir2/dir3/GESTION --> this works fine
/dir1/dir2/dir 3/GESTION --> this doesn't works
/dir1/dir2/dir3/2. GESTION --> this doesn't works
View 4 Replies
View Related
Mar 11, 2011
my requirement is i need to copy mail subject to a text file and create one directory from the name of subject.
my MAIL subject is like this :
Quote:
Subject:Thanks to linuxquestions.org
i copied the mail subject to a file. and now the issue is to creating a directory.
now i want to create a directory without empty spaces, insted of space replace _ in that place.
i want out put like this.
Quote:
Thanks_to_linuxquestions.org
View 5 Replies
View Related
Oct 6, 2010
I am trying to encode files via mencoder. The file name has spaces in it. "test file.mkv". When I manually type the command in the terminal, everything works. But when I use a bash script (I'm reading it from a file) it doesn't. It gives me
Code:
File not found: '"test'
Below is the bash script I wrote
Code:
#!/bin/bash
# For testing, we have already built a file list, so just use that.
# ls *.mkv>files.lst
exec 10<files.lst
let count=0
while read -u 10 FILE; do
LINE="mencoder -of lavf -lavfopts format=mp4 -vf scale=1024:-3 -ovc x264 -x264encopts crf=28:vbv_maxrate=1500:nocabac:global_header:bframes=0 -oac faac -faacopts br=160:mpeg=4:object=2:raw -channels 2 -srate 48000 "$FILE" -o test.mp4"
echo $LINE
exec $LINE
done
exec 10>&-
files.lst contains only a single line (no newline) with
Code:
test file.mkv
On a related note, when I was first trying this simply on the command line, I had a file that had a double exclamation point. I found out that that is a shortcut of some kind for the previous command. My kludge to get around this was to try to execute a single exclamation point as a command, then to change the double exclamation point to a quadruple exclamation point. Is there a proper way (escape sequence or something) to pass double exclamation points to a command?
View 2 Replies
View Related
Mar 17, 2011
How do I access files with spaces from the command line?
for example I want to go to a file called "New File" and let's say is in Downloads/Books/(and here is the file)
how do I input the space since the command line doesn't recognize it?
View 2 Replies
View Related
Nov 22, 2010
I'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?
View 4 Replies
View Related
Oct 7, 2009
need all spaces between two letters or a letter and a number exchanged for an underscore, but all spaces between a letter and other characters need to remain. One example for clarity:
Input:
force -- lamin 90 [label]
active A -- generation [label]
needed Output:
force -- lamin_90 [label]
active_A -- generation [label]
I tried solving this with sed but obviously s/ /_/g does not work, nor does any s/[a-zA-z0-9] [a-zA-z0-9]/[a-zA-z0-9]_[a-zA-z0-9]/g , because you just can't do this...
View 2 Replies
View Related
Jun 8, 2011
I named a number of files with spaces in them, and I want to replace the space with "_". However, every time I write a command in the shell with the file name (eg "Spring 2011"), the shell doesn't recognize the file or directory. What can I do about this? Is there any way to use the unicode character for a space?
View 5 Replies
View Related
Feb 2, 2010
I need to seach a string containing
the substring of 'New Request object:'
and
the substring of '/0x2ab46b1f90' in vi editor,
how do I accomplish that?
View 7 Replies
View Related
Sep 9, 2009
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 Related
May 11, 2011
command to find list of table spaces in oracle in unix
View 1 Replies
View Related
Sep 3, 2010
I 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 Related
Jun 30, 2010
I'm having problem in Ubuntu 10.04 in applying extra graphics effect.I thing I have done some wrong setting in compiz setting manager and now I'm not able to set to default.Whenever now I'm trying to apply extra effects from appearance window it shows Desktop effects could not be enabled.
View 3 Replies
View Related
Feb 18, 2010
Is there any way of getting the arrow keys to act differently while the control key is pressed. On my system ^-Up and Up generate the same code...
View 3 Replies
View Related
Aug 3, 2011
sed '/
$/ {N s/
//}'
sed: -e expression #1, char 10: extra characters after command
I want to understand what is wrong with my command line. When I can do the some of following in a script but not in a command line. I have been working through the tutorial at [URL]. When I got stuck at the section Working with Multiple Lines. These script works fine.
#!/bin/sh
sed '
# look for a "#" at the end of the line
/#$/ {
# Found one - now read in the next line
N
# delete the "#" and the new line character,
s/#
//
}' file
In my case I am looking for or return ^M.
#!/bin/sh
sed '
# look for a "#" at the end of the line
/
$/ {
# Found one - now read in the next line
N
# delete the "#" and the new line character,
s/
//
}' file
The problem is when I try to convert it to a single line shell command it gives me an errors.
sed '/
$/ {N s/
//}'
sed: -e expression #1, char 10: extra characters after command
sed '/
$/{N s/
//}'
sed: -e expression #1, char 9: extra characters after command
sed '/
$/{Ns/
//}'
sed: -e expression #1, char 8: extra characters after command
I want to understand what is wrong with my command line. When I can do the following in a script but not in a command line. I have created a sed script to do the work I want.
cat test.sed
#!/bin/sed -f
/
$/ {
N
s/
//
}
View 1 Replies
View Related
Jul 12, 2010
I want to use Gparted to extra space to /dev/sda5/. Using a live CD I shrunk /dev/sda7 and I have 9.77 Gb of free space.
However I can not increase the size of /dev/sda5 - I can only shrink it.
Do I need to reboot and then try?
View 7 Replies
View Related