Programming :: Change Mutiple Xml Files?

Apr 21, 2010

I'm trying to change a line of a bunch of xml files (more than 800).What I want isto change this line:

Code:
<variable name="reliability" size="1">96</variable>
to

[code]...

View 1 Replies


ADVERTISEMENT

General :: Copy Mutiple Files Over Scp In One Command?

Mar 4, 2010

I have to transport a lot of files from one pc to another (both Linux). I would like to use scp for that, but scp only allows for transferring one file at a time. How can I do this?

I have No possibility to use rsync or any other protocol No possibility to use passphrase free certificates (but have a certificate with a passphrase) A list of files to transfer and a list with the destination path of the files on the other server The files are spread out over a lot of directories, and not all the files in the directories I want to copy If possible I would like to gzip and ungzip transparently to save bandwidth!

View 3 Replies View Related

Programming :: Using An Array In Bash For Mutiple Paths?

Mar 29, 2011

I'm trying my hand at arrays in bash for a backup script. Now I not sure if this is the correct thing to do and just look at website and amended but does'nt work. Could someone tell me where I'm going wrong

LOG_DIR="/home/ops/Desktop/temp"
array[0]=3
array[1]=/home/ops/Desktop/dir1

[code]...

View 8 Replies View Related

Programming :: Monitor A Folder For New / Change Files?

Aug 30, 2010

how I can monitor a folder and get the name of newly created files or files that their size is changing? (in Perl or Linux shell script)

View 5 Replies View Related

Programming :: Script That Change The Names Of Files And Folders Into Small Letter?

Oct 2, 2009

i want to make a script that change the names of files and folders into small letter because they are all in capital and more than 1000 fileit is impossible to do that with my hand

View 14 Replies View Related

Fedora :: The Keyboard Is Sending Mutiple Keystrokes?

Nov 13, 2009

In the attempt to solve other problems () I got now this new one.Whatever I type, every character is displayed (and interpreted) mutiple times.rice for the sake of precision.It's happening with both the internal keybaord (it's a laptopt) andh an external USB keyboard.In order to work I'n now using the on screen keyboard of my KDE.To log in I had to enable the automatic login.

View 3 Replies View Related

Ubuntu :: Mutiple Copies Of Media Folders Appearing?

Oct 16, 2010

I am trying to get my network music player (Logitech Squeezebox) to connect consistently with Ubuntu. Most of my music (FLAC files) is on a separate NTFS hard drive as I am dual booting with XP.I have edited the Fstab file somewhat based on suggestions on the forum but I can not seem to consistently connect to the Squeezebox with my music files (FLAC). What appears to happen is I set up my mount point in the media folder as Music and configure this with my Squeezebox which scans the Hard drive and finds all my music. The player works and it all seems fine even after a reboot but after a couple of reboots I get an error message when booting that says "The disk drive for media/Music/Flac is not ready yet or not present".

When I go to the media folder it appears that the Music folder is duplicated with a folder called Music_ and after a resetting the Squeezebox scanner to the new Music_ folder the process starts over again and I eventually end up with another folder called Music__ and so on.My question is 1) can I delete these Music folders without erasing all my Music library , and 2) how do I correct this situationHere is the Fstab file:# /etc/fstab: static file system information.

#
# <file system> <mount point> <type> <options> <dump> <pass>
proc/procprocnodev,noexec,nosuid00

[code]....

View 9 Replies View Related

General :: Datasets Demands Mutiple Passphrases At Boot Time

Mar 30, 2011

I am experimenting with LUKS+dm_crypt. My setup is something like this: a LVM VG made of multiple Physical Volumes (PV). That VG contains multiple LV (Logical Volumes), most of them encrypted via LUKS+dm_crypt (via cryptsetup).Editing "/etc/crypttab", the system will requiere a passphrase for each encrypted LV. But since all my encrypted LVs share the same passphrase, I would like to be prompted only ONCE, instead of twelve times (I have 12 encrypted LV).

I have thought about writing a script to include in initrd that ask for the password once, store the result somewhere volatile (ramdisk?), and provide that password for the rest of "/etc/crypttab" entries.But this seems complex and fragile.I wonder if there is something I am missing, or some other easier way.

View 2 Replies View Related

Ubuntu Multimedia :: Change MP4 Video Files In A Directory To MP3 Audio Files?

Apr 29, 2011

What would be a nice, simple command to go through all files in a directory (no sub-directories), and change all the MP4 Video files I have to MP3 audio files (keeping the original filenames except for changing the "mp4" extension to "mp3")?

The files in question were videos taken with one of those Flip cameras, but I only need the audio off of it.

View 3 Replies View Related

General :: Change The Permission Of Root Files Or Looked Files?

Oct 26, 2010

I had used test desk program to restore my files ,the files that recovered was saved in home folderthe problem is that these files are become root permission only ,so i cantcopy , move theme

View 3 Replies View Related

Programming :: Edit Sshd_conf Files To Change The "#Port 22" To "Port 22" From A Script?

Feb 4, 2011

i am trying to edit sshd_conf files to change the "#Port 22" to "Port 22" from a script.

I have tried this many different ways.

sshs1='s/#Port 22/Port 22/g'
sed $sshs1 /home/l/Desktop/test

the reason i have it as a string in this instance is because $sshs1 gets a variable, but im not working on that right yet. I've tried changing the ' to ` and ". this is what i get:

sed: -e expression #1, char 7: unterminated `s' command
sed: -e expression #1, char 8: extra characters after command
sed: -e expression #1, char 8: extra characters after command
"
sed: -e expression #1, char 7: unterminated `s' command

i know it may have to do with my regex, but i cant seem to find a decent tut.

View 2 Replies View Related

Programming :: Command For Find/Replace In Text Files (inc. Files In Sub-folders)?

Oct 11, 2010

I found this command that works great finding and replacing a simple string to another in files located in that folder and all sub-folders.

Code: find . -name '*.php' | xargs perl -pi -e 's/OldText/NewText/g'

The problem I have is that I need to replace a more complex string, like this: Old string: /mnt/stor6-wc2-dfw1/627896/982574/ New string: /mnt/stor8-wc2-dfw1/369587/302589/ There I don't know how to do it... since the / is what separates the old from the new strings, and the strings that I want to replace have / in it. Also, I would like to know how to specify under what folder replace the files, for example, I want that it search/replaces all files under /var/www/mysite/htdocs folder.

View 1 Replies View Related

Programming :: Sort Files In Directories Based On Files Date

Sep 8, 2009

I need a script that will take all the files in a given directory and create new monthly sub-directories and sort all the files based on the creation date into the appropriate directory.For example, all files created between 01/01/09 and 01/31/09 will be placed in 'JAN-2009'

View 5 Replies View Related

Programming :: Convert RTF Files To MS Word Files Using Java?

Sep 19, 2010

In my application I came across a new requirement where I have to convert RTF files to Word and PDF formatted files. I am searching for an API using which my java application can able to convert the above specified formats.

View 4 Replies View Related

Programming :: Bash Programming - Rename Files In A Loop?

Mar 31, 2011

I need to rename the resulted searched files from a loopI have the following code:

find . -name DOC* | while read i
do
find $i -type f -name '*.txt'
done

basically, I am searching for all txt files inside any folder starting with DOC name.this code is working fine with me.I need to rename those .txt files to .txtOLDOS: Ubuntu 10.4Bash shell

View 10 Replies View Related

Programming :: C Header Files And Object Files ?

Sep 18, 2010

When is it good to use separate translation units and object files and link them into the main C program, and when is it good to include the header files in the main C program? I don't understand if most people include header files or if most people just link in object files and use their contents in the main program. It's sort of a simple question, but it's confusing to me and that's why I need help with it. I sort of don't understand the difference, or if there's really no difference other than the way the final result is achieved, which way is better or preferred, etc...

For example:

Code:

or:

Code:

Simple explanation of the difference? or which one is preferred or better? I've read a little on the ELF format... so is there no difference in the end result? It's just a matter of preference or necessity, and where the information is to begin with?

View 9 Replies View Related

Ubuntu :: GDM Background - Cannot Change The Background Image To Any Of Mt .jpg Wallpaper Files And .png Files

Apr 3, 2011

I have spent the most part of 5 hours trying to fix this issue. For some reason I cannot change the background image to any of mt .jpg wallpaper files (and .png files). I've tried using the Ubuntu-Tweak application, but I end up getting a purple screen (default) or a black screen (default). So then I tried using the terminal method by making the Appearance window appear when I would log out. That works, except when I go to use my background image, it shows as a question mark for the image preview, and the icon for the file is a gray box. All while doing this my background images that I tested are all in the /usr/share/backgrounds location. Please help! I really want to get rid of the default images and use my images... :/ My desktop/screen in 1440x900, and most my background images are around that size. They work with my regular desktop for my account.

View 3 Replies View Related

Server :: Change The Name On Zip Files?

Mar 8, 2010

I have a question about zip file.How can I change the name of a folder after the folder is ziped,

Example: I have a 'test' folder, and it includes test1.txt and test2.txt
test/test1.txt
test/test2.txt

[code]...

View 10 Replies View Related

Programming :: Create Inverted Files To Associate Files To Numbers ( Numbers Being The Index Of My Paths )?

Apr 4, 2011

am writing a small search program for my class. I have decided to use indexing for my program. Ive researched online about indexing and how search engines do it. If im gonno do that I need to create inverted files to associate files to numbers ( numbers being the index of my paths ) . Now I was wondering what would be the best way to create an inverted file ? I was going to create sql tables using mysql api in C but then again there is no array data type or vectors to store few numbers in a single column in mysql and it is not advised to use Enum or SET

View 14 Replies View Related

Programming :: Using Sed To Change Strings?

Sep 3, 2010

I am having a lot of problems trying to change one string by another using sed: the sentence is like this:

sed -i 's/KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp", MODE="0660"/KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp", MODE="0666"/g' 50-udev.rules
it is just to fing the line with:
KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp", MODE="0660"

[code]....

View 8 Replies View Related

Programming :: C Tcp Header Change?

Jul 25, 2011

I am trying to write a program that will send a packet to a server as a different IP address so I can test my firewall rules as I only have access to a couple of machines:

Code:
int my_socket;
struct sockaddr_in sin;

[code]....

View 2 Replies View Related

Programming :: Change The $PWD Using Execve()?

Feb 23, 2010

I had a doubt about the role of the evironment set in the execve() function of the C languange.

If I run something like

Code:
#include <stdio.h>
#include <unistd.h>
int main(void) {

[Code]....

What is the utility of setting the environment in the execve()?

Is there another way (not using chdir()) of changing the current directory before running exec()?

View 5 Replies View Related

Ubuntu :: Change .url Files Globally?

Jan 17, 2011

I tried posting to this SOLVED thread, but suspect that was the wrong thing to do! [URL].... Basically, the thread shows how to strip the first 2 lines of a text file, but because I have quote a number of folders on the desktop each needing the same treatment, I wondered how to do this in one step. I figure I might learn something rather than just do the grunt work of switching from folder to folder.

View 9 Replies View Related

Programming :: Search The String "Listen" In A Few Files (config Files)?

May 9, 2011

I'm trying to search the string "Listen" in a few files (config files). I madefind /apps/apache* -exec grep -H Listen {} ;but the result list is very long. How i make a "grep -v" whith this command?

View 3 Replies View Related

Programming :: Variable Name Change In A Loop?

Apr 24, 2010

I am about to move my scripts to the next generation level, so I need some help I am stuck in varying my variable names in a loop. For example:

for user in ben dorothy mike pat
do
[ -r /home/$user ] && let "$user"check=1 || let "$user"check=0

[code]...

View 1 Replies View Related

Programming :: Unable To Change Affinity

Apr 29, 2010

I am using glib version 1.2.10.I came to know from somewhere that "pthread_attr_setaffinity_np(3)" does not work on this version for POSIX threads. Following error was coming:(.text+0x112): undefined reference to `pthread_attr_setaffinity_np'collect2: ld returned 1 exit status.All I want to do is to run 2 threads on two different processors. I cannot change the glib version.

View 3 Replies View Related

Programming :: Change String Variable In Awk?

Nov 26, 2010

How to change string variable in awk? for example, I parse with awk script text file named some_name_with_extension.txt

I want to print only some_name in my script

Code:
....
varCompName = FILENAME
print varCompName

How to put not all symbols from FILENAME to variable?

[Code].....

View 3 Replies View Related

Programming :: Change The Prompt Of Shell Through C?

Oct 30, 2010

I have an assignment that I have to change the prompt of shell through C.

View 11 Replies View Related

Programming :: Change MAC Address Via C Code?

Apr 12, 2010

I need a way to change the machine MAC address via a C code in linux. Ive find a way to retrieve it but not to change it.

View 4 Replies View Related

Ubuntu Installation :: Change A Scitools.cfg Files?

May 23, 2010

I run Ubuntu 10.04 and I've just installed Python. Now I've installed the python-scitools package from the command-line: sudo apt-get install python-scitools.

My question is the following: Where i can find the location of theses files? I need to change a scitools.cfg files and I can't find it!

View 2 Replies View Related







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