General :: Scan Through A File And Enter The Data In Multiple Files?
Sep 1, 2010
I have a file which contains the data i retrieved through prstat and an array that contains all the unique process ID's of that particular file. i want to compare each and every line in the file with each and every element of the array so that i can create multiple files for the multiple value in the array.
View 6 Replies
ADVERTISEMENT
May 23, 2010
Notwithstanding that I might not want to do this because of the large file size, how would I scan a multi-page document into one image file (probably a jpeg)? The only way I know how is to, after making seperate jpegs of every page, manually pasting the images below each other in a photo editor, which of course is a lot of trouble.
View 10 Replies
View Related
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
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
Mar 17, 2011
I have a folder which includes bunch of folders each having data files in them. [ Folder A has F1, F2 F3 ..... F1000 folders in it, and F1, F2, F3 ... each has about 10 different files named FILE 1, FILE2, FILE3 .... in them.
I am interested in File 1 of each Folder, because that contains the data I need in it. More specifically, that File1 s have a line "ANSWER=..." in them, and i need to get that value of the ANSWER from each file. So doing it by hand is so hard, so I need to write a script that will scan all folders and give me a list of values of eache ANSWERs.
View 4 Replies
View Related
May 26, 2011
I wonder capability of awk to manipulate data in consecutive multi files by read one batch file.for example I have files: data1.dat, data2.dat,data3.dat and listfile.txt
cat data1.dat
23 34 54
43 45 76
[code]...
View 4 Replies
View Related
Nov 22, 2010
I wanted to be as clear as possible. I have to add hundreds of new servers to hundreds of configuration files in Nagios. Here is a sample structure:
servers.txt has:
SERVER3
SERVER4
[code]....
View 10 Replies
View Related
Sep 13, 2010
Use file globbing to copy all the files in the /labs/data directory that end with a .out to the lab05 directory.
Use file globbing to copy all the files in the /labs/data directory that start with a c, d, or n into the lab05 directory.
View 5 Replies
View Related
Dec 7, 2010
I'm working on some scheduled task script files to keep nightly backups of some of our database information in place, and it's a bit annoying when they blow up. I know how to redirect stdout and stderr to a flat file I can view when I come in, and I know that 2>&1 maps them both to the same file (whatever was named in 1). However, I'm running into some cron-time situations where it's easier to have the two streams together, and other cron-time situations where it's easier to have them separated. I can't really tell which is going to happen; is there some way I could create both kinds of output file for my scripts, so that I've got a std_err only file and an interleaved std_out/std_err file?
Note: I've looked at the 'tee' command, but I don't think it will work for what I'm after. 'tee' appears to only work with stdout; I'm trying to work with stderr.
View 5 Replies
View Related
Nov 28, 2010
I am using Xfce as the desktop enviroment and Mozilla Firefox as the webrowser. Within the webrowser window, I do File>Save Page As. I save it, and the result is almost always foo.html and directory foo_files. But I think under KDE I could choose the format, one of them being something like "Single page" (only one file; the colecction of .png, etc is embedded into that file). And this is the format I want Xfce (or Firefox) to use when downloading to hdd.
View 1 Replies
View Related
Apr 17, 2011
i want to create multiple cd's containing the data of one tar.gz file of course i can use data dump (the dd command) to cut the tar.gz into 700 MB pieces. yet then i must calculate the exact location where to cut, and use the skip, seek and count parameters to proceed. Does anybody here know, software that automatically creates 700 MB parts of a single file?
View 2 Replies
View Related
Sep 16, 2009
Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .
I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.
I want to create a mutiple output files with each file having a seperate code which is stored in text file and create XYZ_222_999_YYYYMMDD_1.TXT . and add date in the contents next to series of numbers .Like this
Before change the file looks like this
file name XYZ_111_999_YYYYMMDD_1.TXT
001,19SEP2009-14:05:05,000000003
1234
4567
6785
END_OF_DATA
[Code]....
View 4 Replies
View Related
Jul 27, 2011
A function by name abc is called in many files. I want to copy all the lines with the function call to an output file.A simple grep on function name doesn't help me as the function call is spanning across multiple lines as follows:
abc(parameter1,
parameter2,
parameter3);
So I want to copy all the three lines (till semicolon) to the output file.The problem is because there are more than 200 calls for the same function and I cannot do it manually
View 2 Replies
View Related
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
Nov 20, 2009
I'm looking for an easy solution (1 click install) to scan multiple pages to one pdf file on openSUSE 11.2 with gnome.Most tools only support 1 page tobe scanned to pdf.gscan2pdf looks like a solution but I can't get it running on 11.2.(missing dependencies e.g. perl-forks)
View 9 Replies
View Related
Oct 14, 2010
My needs require the ability to scan multiple documents each day. Ever since 10.04 my HP J4580 All-in-One scanner operation has progressively become worse. With 10.10 it completely quit working. As is so often the case, the HP J4580 All-in-One works flawlessly in Windows so I know it is strictly a Ubuntu related problem. Do a search of my threads and you will see that I have receive very little help with this issue. that is another problem I have been having.I have reverted back to 9.10 and all my scanning issues are resolved. I have followed several threads offering solutions with no success. I know the issue is with the removal of xsane from Ubuntu. Versions after xsane 0.996 is when the problem surfaced.On my system (desktop) I have been greatly disappointed with the last 2 releases. Firefox has even started having random crashes in 10.10. I tire of spending so much time trying to correct these issues.I will not quit using Ubuntu but I will not be using the latest two releases for a while. 9.10 worked great and I will keep it until support ends. You get what you pay for so I will not blast Canonical or the software developers. I would hope that prior working hardware would not lose functionality with the release of a new OS version.
View 4 Replies
View Related
Jul 1, 2010
Is there any scanner that can scan multiple pages at a time? Without human intervention. Then put all the scanned pages in 1 tiff file or multiple gif or png or jpg files. A scanner that works with Linux. I need make and model.
View 1 Replies
View Related
Jun 11, 2010
Succeeded in connecting to internet using my wll phone. I can now connect using 'wvdial' command in root terminal. But I want to connect through terminal. I tried 'sudo wvdial' command. Then I am asked for my password. But I cannot type my password there. When I type, nothing appears on the terminal window. Ofcourse there's no problem with my keyboard.
View 5 Replies
View Related
Apr 18, 2011
I have a big problem, I can`t enter to the system, said this:
mount: mounting /dev on /root/dev failed : no such file or directory
mount: mounting /sys on /root/sys failed : no such file or directory
mount: mounting /proc on /root/proc failed : no such file or directory
[code]....
View 3 Replies
View Related
Jul 27, 2011
I have an interesting issue with simple scan. When I scan a single page document, the exposure is not very good because there are dark and light areas scattered over the entire document. Of course, one cannot adjust these settings in simple scan as one can with xsane. However, I noticed if I scanned a multiple page document, all pages after the first seemed to be more consistent and the exposure was fairly good (exposure here referring to all the aspects accessable in xsane such as brightness, contrast, gamma, etc.)
So I tried a little experiment. I scanned a single page document as if it were a multiple page document by scanning the document multiple times in the same session.The same thing occurs as if one were scanning a multiple document: the first page is mottled, but all pages after are much better scans. What is happening here?
View 1 Replies
View Related
Mar 29, 2011
I remember there was a command that would allow me to pipe data to an app and the use the | operator to pipe it into yet another app.
foo fooArg | Iforget app1 | app2
I forget what this command is but it pipes the data from foo into app1 and app2.
View 3 Replies
View Related
Dec 25, 2009
I have just upgraded my old CentOS system,but something goes wrong(1) I can not enter database to MySQL from web page,and I had a "add new contact info" available there before .(2) I want to install SugarCRM to my web page,but SugarCRM can't create database with the right username and password . Other thing is OK, I can get data from MySQL from web page. Here is the package I have : php-5.1.6-3.el4s1.10 mysql-5.0.82sp1-1.el4_8
Does it because that these two packages don't match each other?
View 1 Replies
View Related
Dec 19, 2010
How to scan and fix Bad Sectors on Hard Disk without damaging data?
View 5 Replies
View Related
Apr 4, 2011
I have a network of 20 machines, all running Ubuntu 10.04.
Each machine has about 200[GB] of data that I'd like to share with all other 19 machines for READ ONLY PURPOSES. The reading should be done at the FASTEST POSSIBLE WAY.
A friend told me to look into setting up HTTP / FTP. Is it indeed the optimal way to share data between the machines (better than NFS)? if so, how do I go about it?
UPDATE: Just to clarify, all I want is to be able (from within machine X) to access one of machine Ys files and LOAD IT INTO MEMORY. all of the files are of uniform size (500 [KB]). Which method is fastest (SAMBA / NFS / HTTP / FTP)?
View 4 Replies
View Related
Jan 11, 2010
So im trying to un rar my rar. files. I use 7-zip, and winrar, Every time i try to unrar them it says broken file, cannot open file. This happens to nearly most of my rar files in the last few weeks, idk what else to do,
View 3 Replies
View Related
Apr 8, 2010
I've got an external hard drive with one large data partition on it. I also have four computers to connect it to (individually, not at the same time). Three machines are running Slackware and one is running Ubuntu 9.10. I need to be able to just plug the drive into whichever machine, mount it (preferably to the same location each time) and not have to worry about user permissions and such. Do I just chmod 777 all the files and folders or is there a better method for different 'users' to access the same partition? And how about mounting to the same location each time?
Now the second part of my question I'm pretty sure I'm not able to do but just in case..... is there any way to encrypt the information safely and make it compatible with a Windows XP machine?
View 4 Replies
View Related
Sep 1, 2009
Are there any tools out there that let me select a bunch of data and burn it to multiple cd's or DVD's? I'm using k3b but have to manually select cd and dvd size amounts.
View 1 Replies
View Related
Nov 6, 2010
I am looking for a program that will take multiple avi files and join them into one file
View 8 Replies
View Related
Nov 22, 2010
I have a log file on ubuntu 10.04 that has 500 lines of log data in it. What command could I use in a terminal to split the single 500-line file into generate ten files each with 50-lines of log files each?
View 2 Replies
View Related
May 30, 2011
I have made the simple mistake of using dolphin to rename several picture files of types jpg and png. I have no problem viewing them and Ubuntu still knows which is which (if i view their properties it will state File Type: JPEG or PNG) but unfortunately Ubuntu Tweak does not allow you to chose them without the extension (I am trying to change my login background using this) So what i need is something that can scan several files, determine the file type, and add an appropriate extension to it. I have found several to do so for music files but none for images. I am using Ubuntu 11.04 at the moment.
View 5 Replies
View Related