LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-19-2006, 09:24 PM   #1
debiant
Member
 
Registered: Jul 2006
Distribution: Source Mage 0.9.6
Posts: 196

Rep: Reputation: 30
Shell scripting tips and tricks...


I thought this might be a cool idea for a newbie scripting thread. Since I'm just learning scripting it will be useful for me, and hopefully useful to others in the same boat.

Something I just came across in the Advance Bash Scripting Guide

most everyone who's done any work in the shell knows ~ is the home directory of the current user. What I just found out (and this may be embarrisingly simple) is that:

~+ = current working directory
~- = previous working directory

The ABS also mentions ~= but I had trouble understanding exactly what that one does.
 
Old 08-20-2006, 10:32 AM   #2
visaris
Member
 
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
That's good to know; Bump.
 
Old 08-20-2006, 11:02 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Apart from searching LQ for it (especially the programming forum is full of interesting questions and scripts) there's more (mixed) tips and tricks in the Tricks and hints thread.
 
  


Reply

Tags
bash, scripting



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GRUB tips and tricks LXer Syndicated Linux News 1 01-28-2006 08:43 AM
IRC tips/tricks? ValidiusMaximus Linux - Software 8 07-25-2005 02:56 PM
Slackware tips and tricks monkeymartin Slackware 3 11-12-2003 04:17 AM
Tips and Tricks Westdog976 LQ Suggestions & Feedback 8 07-14-2003 12:24 PM
Tips and Tricks Section trickykid LQ Suggestions & Feedback 1 06-22-2001 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration