General :: Want To Edit Multiple Files

Jun 28, 2010

I have a directory with hundreds of html files.
For all the files I have to:
- delete all the row from the beginning of the file to the sentence "<img src="immagini/_navDxBottom.gif" />".

- delete all the rows from the sentence "<br clear="right" />" to the end of the file.

How can I do that?

View 3 Replies


ADVERTISEMENT

General :: Use Sed To Edit String In Multiple Files Not Contained In Current Directory?

Apr 7, 2011

I have the following problem:

CASE_FOLDER
----------->0_FOLDER
-------------------->ForceX ForceY ForceZ

[code]...

View 1 Replies View Related

Ubuntu :: Permission To Upload / Delete / Edit All Files In / Home / Www / For Multiple Users?

Dec 16, 2010

I installed proftpd on my Ubuntu 10.10 install. I also run multiple websites that I want to allow ftp access to for 2 different users. The websites are located in /home/www/. This is where the guide I was following told me to put them. I also don't have a user named www.How can I give write permission to upload, delete, and edit all the files in /home/www/ for multiple users? They can connect to the ftp server and see the file, just not change them.

View 1 Replies View Related

General :: Rename Multiple Files In Multiple Directories/subdirectories Recursively?

Aug 23, 2010

I am to rename all the files within a directory (which contains multiple subdirectories) recursively without invalid characters.

I tried the coding posted above.

find . -type f -printf '%p
' | while read file; do
oldfile=$(basename "$file")
newfile=$(echo "$oldfile" | sed 's/[^A-Za-z0-9_.]/_/g')
if [ ! "$newfile" == "$oldfile" ]; then
echo mv "$file" "${file%$oldfile}$newfile"
code....

but I get an error on both of them stating "find: bad option -printf find: [-H | -L] path-list predicate-list"

View 9 Replies View Related

General :: Gedit On Mac Can Be Used To Edit Files Over Ssh?

Feb 4, 2011

I use a linux machine at work and a mac at home. I can ssh from my machine at home to my work machine. But the only editor that I have access to on the command line then is vi, which I don't like.

Is there a way to use gedit on my mac to edit files remotely over an ssh connection?

This page says that it can be done, but I think that it assumes that you are using gedit on ubuntu. On my mac (os 10.5.8) I don't have the "bookmark" option when I click "connect to server".

[URL]

View 3 Replies View Related

General :: Creating A Script To Move Or Copy Files Into Multiple Directories Below The Files?

Aug 25, 2009

How can you create a script to move or copy files from a main directory into multiple directories below the main directory.

View 7 Replies View Related

General :: Edit .pub Format Files On Fedora?

Feb 9, 2011

Is there an aplication/software that I can use to edit the Microsoft publisher (.pub) format files on fedora14.

View 1 Replies View Related

General :: Edit All The Files Returned By Find In Vi?

Sep 15, 2011

Something I find myself doing a lot is running a find command and then editing all of them in vi, which looks something like this:

> find . "*.txt"
./file1.txt
./file2.txt
./path/to/file3.txt
> vi ./file1.txt ./file2.txt ./path/to/file3.txt

Is there a clever & simple way to do this all in one command line?

View 3 Replies View Related

General :: Read EDIT Text Files?

Jan 24, 2010

I'm needing to read the Adam's Assembly Tutorials, that are old EDIT *.txt files, I'm on Linux and I need to read this files.What can I do?Is there any GUI editor that can read the files?There is any way to convert them into another file that is more modern1?

View 2 Replies View Related

General :: Edit Remote Files On Emacs From Windows?

Jul 31, 2011

What's the fastest and most reliable way of working on files on a remote linux machine with emacs on a windows host machine? I need to be able to easily copy and paste text between emacs frames and use all the keyboard shortcuts, so putty and cygwin are out of the question. I've tried tramp mode but it just hangs when I try to connect.

View 3 Replies View Related

General :: Edit Html Files Generated By Mrtg?

May 4, 2010

I'm using mrtg to generate html files. With mrtg , i use indexmaker . Inside html files , i have found some html tag like "<SMALL>some text</SMALL>".

There is the manner to delete text inside two tags ? With bash script?

View 1 Replies View Related

General :: Edit LaTex Files On A Tablet / Ebook Device?

Oct 31, 2010

Reading and revising LaTex 20-page documents seems to be much more easier with a printout (hardcopy) then reading them off a screen. However, I cannot edit the document in real-time (just scrabble comments on the paper) which is cumbersome.

So it there a tablet or even better an ebook device (with e-ink which is easier on the eyes) where I can read document similarly to a printout and edit them in real-time?

View 5 Replies View Related

General :: Mount Floppy Image (*.img) And Edit By Adding Files?

Aug 14, 2010

i have read how mount floppy image (*.img) but how edit by adding files?

View 4 Replies View Related

General :: Can't Edit Files While Using Ssh To Remotely Access Linux Server From A Windows Comp?

Oct 9, 2010

I can ssh to the server but it wont allow me edit files, even though I have basic text editors like gedit and notepad installed on my windows computer. Anyone have an idea what the problem is? (I get an error message like this-(gedit:23978): Gtk-WARNING **: cannot open display

View 3 Replies View Related

General :: Unable To Change - Edit Html Files In New Ubuntu 9.04 - Apache Server

Oct 20, 2009

I suspect that this has come up numerous times, but I am new to Linux and I am setting up a new in-house server using Ubuntu 9.04 and Apache, etc. I can see the welcoming "It Works!" message when I log in via Firefox. I can see "index.html" when I FTP the server with the site name and password at /var/www. I can also see the -rw-r-r-- attributes, but I can't edit the HTML file or replace it. When I try to rename the "index.html" file.

I get the following message: "Request denied. Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation."

I haven't been able to determine where to enter the password or what changes I need to make to be able to work with the /var/www directory via FTP.

View 4 Replies View Related

General :: Multiple Files In Vi

Oct 6, 2010

I have opened a file using vi i.e. abc.txt now I have given : new xyz.txt

two files now opened in the vi My problem is i can scroll through abc.txt only. how to scroll the xyz.txt also

View 7 Replies View Related

General :: Comparing Multiple Of Files ?

Mar 20, 2010

I am fairly new to Linux and was needing some help on a comparing more than 2 files. I am try to come up with something that would compare at least 10+ different files to a master file and give me an output of what is missing.

Example would be: a.txt, b.txt, c.txt, d.txt compare each of them to the master.txt file, than output the missing text for each file into new file.

I came across comm and diff commands, am I looking in the right place or is there a much easier way of doing this?

View 2 Replies View Related

General :: Multiple Files That Needs To Be Altered?

May 24, 2010

I have mulitple files that i need to be altered...is there a way to do so with out having to enter each and every file and do so?

View 3 Replies View Related

General :: Retrieve Multiple Files At One Go?

Jul 18, 2011

I would like to retrieve the lists of multiple files at one go. Each file is big size so wget command is too slow to download all 14 files.

[URL]

View 1 Replies View Related

General :: Vim - How To Open Multiple Files With Tab

Mar 28, 2010

How to open multiple files with tab?

View 2 Replies View Related

Ubuntu :: Extract Multiple 7z Files In Multiple Folders?

Jun 14, 2011

have a large amount of 7z files in multiple folders which I need to extract.The directory structure is like this:

/main-folder/
multiple subfolders/
1 or more 7z files per subfolder

I would like to get the output of this action in one separate folder, all together in 1 folder.How can I do this?

View 7 Replies View Related

Ubuntu :: Replace Multiple Lines In Multiple Files?

Aug 20, 2011

I often use the rpl command to make changes to multiple html files at once. For example:

rpl -R '<br />' '<br /><br />' mydirectory However, I haven't been able to figure out how to change multiple lines. For example, let's say I want to change all occurrences of :

<br />
<br />
to:
<br />
I've tried
rpl -R '<br />
<br />' '<br />' mydirectory

but that didn't work. how to do this with rpl or some other way?

View 9 Replies View Related

General :: Join Multiple MP3 Files (lossless)?

Oct 24, 2010

How do you join multiple MP3 files into one? "cat" and "mp3wrap" are no good as they produce non standard MP3 files. I know I can use audacity, but when you have 1000's of MP3 files to join into one, it takes too long.

View 2 Replies View Related

General :: Gzip Multiple Files Into One Gz File?

Mar 29, 2011

I have 100 files: cvd1.txt cvd2.txt ... cvd100.txt

How to gzip 100 files into one .gz file so that after I gunzip it, I should have cvd1.txt, cvd2.txt ... cvd100.txt separately?

View 4 Replies View Related

General :: Unzipping Multiple Files At 1 Time

Aug 6, 2010

I am having a problem unzipping multiple files at 1 time.

Proper unzip command that will:
1) extract the file from the zip.
2) remove the zip file.

All my zip files start with SB and end with .emi.zip

SB*.emi.zip

View 2 Replies View Related

General :: Run Same Command On Multiple Files With Same Extension?

Nov 10, 2010

how to run a command on all files with the same extension in a directory like this:

Code:

tex breqn.dtx; tex empheq.dtx; tex flexisym.dtx; tex mathstyle.dtx; tex mathtools.dtx; tex mhsetup.dtx; tex xfrac.dtx;

but in a simpler manner? I found this: Code: find . -type f -name *.dtx -exec tex {} ; but isn't there something simpler?

View 4 Replies View Related

General :: Find Multiple Strings Into Files?

Mar 22, 2010

I would like to find all the files that contains the strings I'm searching.

For example (it's just an example), I would like to search all the files in "/etc" that contains "eth0" and "us", whatever where are located those 2 strings, the important is that the 2 strings are in the files listed.

It would be something like a "grep -lr 'eth0' *" and "grep -lr 'us' *" but in one time/command, so that I don't have to make a comparison of the 2 list of files resulting from the 2 "grep" commands given higher.

View 10 Replies View Related

General :: Split A File Into Multiple Files Using AWK?

Aug 5, 2010

I have a file with 5 columns. Column 4 contains numbers.Is it possible to split the file into multiple files using a condition for the contents of column 4 i.e if column 4 contains a value between 0-10 then print the lines to a new file called less_than_10.txt

View 1 Replies View Related

General :: Viewing Multiple Files With The Less Command?

Apr 14, 2010

When we view multiple files using less, how to go on to the next file? I gave these two commands:

Code:

[root@localhost log]# ls -lt boot.log*
-rw------- 1 root root 0 Apr 11 04:02 boot.log
-rw------- 1 root root 0 Apr 4 04:02 boot.log.1
-rw------- 1 root root 0 Apr 1 19:14 boot.log.2
-rw------- 1 root root 0 Mar 21 04:02 boot.log.3
-rw------- 1 root root 0 Mar 14 04:02 boot.log.4
[root@localhost log]# less boot.log*

This is what I got:

Code:

boot.log (file 1 of 5) (END) - Next: boot.log.1 <RETURN>
(END) - Next: boot.log.1

I could not view boot.log.2.

View 3 Replies View Related

General :: How To Combine Multiple Text Files

Mar 22, 2011

Combine multiple text files into one text file?

View 5 Replies View Related







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