Computing.Net > Forums > Programming > auto cd into dir tar makes

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

auto cd into dir tar makes

Reply to Message Icon

Name: Six
Date: August 1, 2003 at 15:59:51 Pacific
OS: Gentoo
CPU/Ram: 1.0 256
Comment:

I want to simplify every day processes such as tar -xvzf filename.tar.gz, cd filename, etc with .bashrc aliases or scripts.

Is there a way to use grep or something to strip the while filename besides .tar.gz and then use that to CD to? Or even a better way?
I know it wouldn't work 100% of the time, they don't always produce the same dir as the filename...but it would help me enough.

thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Six
Date: August 1, 2003 at 16:06:14 Pacific
Reply:

Whoops, was supposed to go into Linux.


0
Reply to Message Icon

Related Posts

See More


hit generator HTML Question



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: auto cd into dir tar makes

auto cd www.computing.net/answers/programming/auto-cd-/16633.html

Run VB Program From CD www.computing.net/answers/programming/run-vb-program-from-cd/293.html

VB6 Command Need Help www.computing.net/answers/programming/vb6-command-need-help/13758.html