Find the answer to your Linux question:
Results 1 to 6 of 6
Hey there I have lot of text file notes on my pc. It's all shattered all over and are not in systematic order and quite troublesome. What I wanna do ...
  1. #1
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    changing the color of the file

    Hey there
    I have lot of text file notes on my pc. It's all shattered all over and are not in systematic order and quite troublesome. What I wanna do is when i read a file, I want to change the colour of the file to some distinct colour. Thereby coming to know that i have already read the file. How do I go about it??
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    Dont know how one would change the color of files.
    What I do know is:
    Your files will stay "shattered all over and not in systematic order and quite troublesome",
    even if there would be a way in gnome/kde/whatever to do this color thing.

    What about this:
    Create a directory structure in your home.
    media/text/science
    media/text/missmarple
    media/text/fun
    etc
    (your milage may vary of course )

    Every time you have read one of the files, move it to a appropiate place in this structure.

    1) you know what you have already read
    2) after reading them all, files are sorted.

  3. #3
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    what i m presently doing is appending read at the end of the file I have read. That does the work but I would like to change the colour to green for the files i have read and red for the files still left to b read. Ya that sounds kind of silly but that's how I want it
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  4. #4
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    ok its done now. What i did was made an entry .read in the DIR_COLORS file and gave it an attribute 32 . So now on appending .read to the files I have read and its displayed in green color
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  5. #5
    Linux User
    Join Date
    May 2009
    Location
    Big River, Sask, Canada
    Posts
    342
    Nice. You're learning so fast that you get a lot of your own problems figured out by yourself. I think you'll be helping more than asking questions real soon.
    Registered Linux User #420832

  6. #6
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    thanks
    I m just trying my best
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...