LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old
Rating: 2 votes, 4.00 average.

Batch-fixing symlink targets

Posted 08-28-2010 at 06:08 PM by the dsc (linux-related notes)
Tags batch, symlink

Sometimes you move the folder to which lots of symlinks were pointing, or something to that effect, and you want to simply "edit" these symlinks rather than recreating them pointing the correct new location. That's how it can be done with one line:

Code:
find /place-where-the-null-symlinks are/ -type l | while read nullsymlink ; 
do wrongpath=$(readlink "$nullsymlink") ; 
right=$(echo "$wrongpath" | sed s'|/whatever/is/the/old-wrong/path|/correct-new/path|')
...
Member
Posted in Uncategorized
Views 3438 Comments 1 the dsc is offline
Old

Chromium OS ARM and x86 build scripts

Posted 08-28-2010 at 02:33 PM by Kenny_Strawn (Kenny the one-teen comittee to stamp out Proprietary $uckware)
Updated 09-06-2010 at 11:09 PM by Kenny_Strawn

http://public.bay.livefilestore.com/...ownload&psid=1

http://public.bay.livefilestore.com/...ownload&psid=1

The former link automatically builds Chromium OS for an ARM build target, as in automatically executing the other build scripts that are...
Senior Member
Posted in Uncategorized
Views 3799 Comments 1 Kenny_Strawn is offline
Old

MEGAkill - the process anihilator

Posted 08-28-2010 at 02:52 AM by William (Dthdealer) (Whaling the FOSS)
Updated 08-28-2010 at 03:05 AM by William (Dthdealer) (Spelling error - captial > capital)

I'm always fed up when I have to grep through ps -A output or stare at top for ages, trying to find the name or pid of a hung process. Finally today I decided to end my woes with this shell script:

Description
MEGAkill is a shell script that automates the locating of processes by their name before asking the user if they want to kill them.

Usage: megakill keywordofprocess [ signal to send ]

The script greps the output of ps -A and then checks...
Member
Views 647 Comments 3 William (Dthdealer) is offline
Old

My real blog : http://blog.milkme.co.uk

Posted 08-27-2010 at 01:05 PM by djsmiley2k

All my "real" blog entries can be found on http://blog.milkme.co.uk, however I may post Linux related blog posts here too.
Member
Posted in Uncategorized
Views 470 Comments 0 djsmiley2k is offline
Old

How to install Ubuntu Tweak 0.5.6 beta in ubuntu 10.04/9.10

Posted 08-27-2010 at 01:20 AM by sridhar11

Ubuntu Tweak is an application to config Ubuntu easier for everyone.It provides many useful desktop and system
options that the default desktop environment doesn’t provide.With its help, you will enjoy with the experience of Ubuntu!

Full Story
Member
Posted in Uncategorized
Views 360 Comments 0 sridhar11 is offline

  



All times are GMT -5. The time now is 04:19 AM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration