General :: Manually Sort Random Text Files?

Jun 6, 2010

I have about 1000 text files and I need to view each, and move it to a folder if it's the correct one. I can only do basic sorting by length/size, and I can't grep because the text is random. How can I do this besides manually openiing + saving each in gedit.I'm on Ubuntu Linux.I've already done all the sorting I can based on ize,wordcount,greps,date,etc. This is what's left over. I'm trying to find an easy way to view +save/ignore the rest.

View 6 Replies


ADVERTISEMENT

General :: Command To Sort A Text File By The Second Word?

May 14, 2010

What is the command to sort a text file by the second word?

View 4 Replies View Related

Slackware :: Random Hangs / Sort It Out?

Feb 21, 2010

I made some hardware upgrades today: installed a new video card, a new CPU cooler, and a DVD burner. Everything seemed fine, but every 10-15 minutes the computer just freezes. Freeze is actually the wrong word since I can still move the mouse's cursor, but it has no effect. Keyboard input is useless and I just have to reboot. On the 3rd reboot fsck checked the root partition and made some changes.

I have checked system/CPU temperature to see if maybe the cooler wasn't working right and checked it's mounts. Everything there is great.

The system hangs whether I'm using the burner or not. (It's an ASUS)

The hangs seem to happen when scrolling a window or changing desktops, but I'm constantly doing something to that effect so it's hard to say if that's the cause.

The card is GALAXY Geforce 240GT. I've never used a Galaxy card so I'm leaning towards that, and have gone back to the old Geforce 9400 in the meantime, but while I'm waiting to see what happens, I was wondering if maybe the filesystem getting modded in the fsck check might point to a filesystem error causing the hangs, or if it seemed more likely that the filesystem was corrupted by the hangs.

View 4 Replies View Related

Ubuntu :: Way To Manually Sort Order Of Places

Jan 10, 2010

Is there any way to manually sort the order of Places (KDE's "bookmarks") that show up in the side panel of Dolphin, or to have it automatically sorted e.g. alphabetically?One might think such a feature, if it existed, to be well-documented and easily-accessible.

View 5 Replies View Related

Ubuntu :: U10.04 Random Freeze When Using Shortcut Keys / Sort It?

Jul 22, 2010

Everytime I use keyboard shortcut such as Alt-Tab to switch windows, my whole ubuntu freezes. I can still move mouse pointer but I cannot click anything.
Anyone has an idea?

View 2 Replies View Related

General :: Loop Append Text To Text Files?

Jan 15, 2010

may be an advanced question but I need to know how to do this. Here at work I am in charge of recruiting and we have about 1,000 resumes in already. All of the resumes are in a .pdf format. I need to rename every .pdf in the following format:{firstnameLastname}.pdfThe only way I know how to do this is to convert all the .pdf files to text, extract the name out of the first few lines of text, import into excel, and then use VBA to rename the files in mass:Here is my logic so far:~Deskop/a = houses all the .pdfresumesOpen terminal: Code: cd ~/Desktop/afor f in *.pdf; do pdftotext -raw $f; done That will convert all of the preceding resumes into text filesNow I would like to append the name of the text file into the last line of the text file. So, for example, for Resume1.txt, I want to append "Resume1.txt" to the last line within Resume1.txt. So after I run the command I open Resume1.txt and on the last line within I want to see "Resume1.txt" on the last line, at the end of the resume.How can I do this? I would like to use a loop and have the terminal append the filename to the body of the text file until all of the have been appended.

View 1 Replies View Related

General :: Search Text In All Text Files Of All The Sub-directories?

Apr 21, 2010

Currently, when I'm searching text in files of my PHP project, I use this line :

Code:

grep -r 'myTextToFind' *

But now, I would like to search only in ".lang" files. How can I do that ?

View 7 Replies View Related

Ubuntu Multimedia :: Manually Sort Songs On An IPod Shuffle Using Banshee?

Mar 11, 2010

I use Banshee 1.5.4 on Ubuntu 9.10 with a 2nd gen iPod Shuffle. I was thrilled when I plugged it in to see that everything worked right out-of-the-box but then I found that there's no way to manually order songs, Banshee always put an arrow in a column for you.

If you don't know much about the Shuffle, it lets you flick between 'sorted' and 'shuffled' mode. In sorted mode it plays songs in the order they are arranged in the music playlist. I like to keep classical and relaxing songs at the top of my playlist for when I can't sleep but Banshee won't let me manually organise my songs so I can't do this.

Peculiarly, when you drag songs to the Shuffle individually, though they will show up as being sorted, when you go to play them on the Shuffle they play in the order in which you dragged them. I was planning to just drag and drop over each song individually but I think there must be an easier way... I'm probably just missing something. P.S. Here's a screenshot to clarify. I synched the songs over in the order of Blur, Gorillaz, Air and Muse but they don't show as such

View 1 Replies View Related

Software :: Join 2 Text Files Based On First Number Present In Every Line Of The 2 Text Files?

Jan 22, 2010

I have 2 text files : file1.txt and file2.txt

cat file1.txt

15 this is a sentence containing various words and spaces
34 this is a another sentence containing various words and spaces

cat file2.txt

2 this is sentence1file2
6 this is sentence2file2
54 this is sentence3file2

I would like to join these 2 files. The result should look as follows :

cat joinedfile.txt

2 this is sentence1file2
6 this is sentence2file2
15 this is a sentence containing various words and spaces
34 this is a another sentence containing various words and spaces
54 this is sentence3file2

==> so the joined file must be sorted on the first number. Any ideas how this can be achieved ?

View 4 Replies View Related

Ubuntu :: Sort The Output To A Text File So That It Prints To The Text File At 1 Process Per Line?

Feb 6, 2011

im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.

echo $(ps aux) >>out

The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.

View 5 Replies View Related

General :: Creating Random Large Files?

Aug 27, 2010

how I can randomly write / create a 1 GB file in bash to test disk / network i/o? I was told I could use the 'dd' command but I don't know if there are some better ways and or what the 'dd' command looks like.

View 7 Replies View Related

General :: Windows - How To Batch Rename Files With A Random Name

Jun 30, 2011

I have a bunch of photos with varying names. I want to give each photo a random name(*), how do I do that? (*)I'm going to put them on a digital photo-frame that can't shuffle

View 4 Replies View Related

Slackware :: Getting Random Text In Terminal?

Jan 6, 2010

I installed slackware recently and noticed that when ever i open up a konsole i get some random messages ,i wont get these in other terminals like rxvt or xterm Where are these texts fetched from and can i modify those text messages to put something of my own ?

View 3 Replies View Related

General :: Manually Remove .vdi Files Left Over After Deleting VirtualBox?

Oct 24, 2010

I have a question, that may sound silly. I have removed VirtualBox from my Ubuntu install. But the .VirtualBox folder is still existing with a virtual drive of nearly 10 GB. Can I manually remove the folder .VirtualBox with rm -rf without any unwanted side effects?

View 2 Replies View Related

General :: Generate Random List And Determine Size Of Arbitrary Block Of Files In Dir?

Mar 4, 2010

I want to generate a temporary random list from a directory of files and then determine the size of an arbitrary block of files from this list (say 1-25 or 26-50) and add their names to a file along with some other info for each name. I can generate a random list with file sizes like this: ls -l | sort -R | cut -d " " -f 6 but i'm not sure how to add up the sizes of just a certain block of these files and at the same time save the file names.

View 2 Replies View Related

General :: Convert Open Office (odt) Files To Text Files?

May 25, 2011

How do you convert Open Office (ODT) documents to Text files?
I have made a report using libre office. Now I wish to continue editing the document using lyx (latex front end). So the ODT file needs to be saved as some .tex file.

I don't see an option to do this in File menu (export/save as). So is there any other plugin to do this?

View 1 Replies View Related

General :: .EXE Files - Cannot Get It To Install After I Double Click / Sort It?

Jan 25, 2010

I just downloaded a .exe file. I cannot get it to install after I double click on it. What should I do to make it work?

View 6 Replies View Related

General :: Sort Big Files, /tmp/sortA3aLjF: No Space Left On Device

Aug 3, 2010

i'm sorting 8GB text file but came up with this error for an investigation

/tmp/sortA3aLjF: No space left on device

is there anyway that sort won't use /tmp?

View 3 Replies View Related

General :: Save / Sort Files In Sequential Order Sector By Sectyor

Aug 26, 2010

I have a china phone which has mp3 player and unfortunately it reads the file names in its memory card in sequential order according where the file is saved. The file system is NTFS. cod

**Note: DDD song was last because I saved AAA to EEE songs then later added DDD song

Then suddenly i deleted BBB song and replaced it with FFF song code...

This is kinda lame. but the OS of the phone has no capability sorting the file according to filename in its built in mp3 player.

my question is how can I sort the files sector by sector(is my term right?) so the lame mp3 player would read the files finally in alphabetically sorted order. I Will plug my phone on my PC

I am using ubuntu 10.4

View 1 Replies View Related

Software :: Use Sed To Include A Text File In The Beginning Of Other Text Files Inside A Folder And Its Subfolders?

Jun 1, 2010

Can I use sed to include a text file in the beginning of other text files inside a folder and its subfolders? So it should be recursive.

View 4 Replies View Related

CentOS 5 :: Text User Interface To Configure Text Files

Nov 5, 2009

I would like to write a text user interface (TUI) to adjust some text config files etc. Is there a tool or application for creating TUIs like this. I�m talking about those types of config tools which you see executed at first boot.

View 19 Replies View Related

General :: Create Pdf From Text Files

May 18, 2011

Can anyone point me to a well working peace of software (free will be preferred) that can convert text-files into pdf.

View 6 Replies View Related

General :: Difference Between Two Text Files To Third One

Jul 14, 2010

I want the difference of two text files(a.txt & b.txt) into a third text file(c.txt). i.e. New or Differert rows of a.txt compared to b.txt

a.txt>
10128|10153|999999
10343|10153|000
10345|10153|3846
10351|10153|3846

b.txt>
10128|10153|999999
10343|10153|3853
10345|10153|3853
10349|10153|3853

c.txt should be like>
10343|10153|000
10351|10153|3846

I tried comm,but man says that the files have to be sorted in order to use comm. I dont want to sort the files.

View 3 Replies View Related

General :: Find Text Within Files?

Nov 23, 2010

find text within files? detailed at Code: man grep

View 2 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

General :: Highlight Text In PDF Files In System?

Aug 9, 2010

Some pdf readers for windows allow you to highlight and type notes into PDF files. The pdf readers that I've seen for Linux only allow you to read pdfs. Are there any that allow you to highlight text and add notes?

View 2 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 :: Comparing Lines In 2 Text Files?

Nov 5, 2010

Is there a way, besides writing a PERL program, to read each line one by one in file A and tell if this line also exists in file B? Can this be done via a shell script?

View 6 Replies View Related

General :: Text/source Files: What Is The EOF Indicator

Nov 10, 2010

i am working in gcc compiler i am opening a file using file pointer writing in the file ,entering the text from keyboard tell me the end of file indicator after entering the text

View 2 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