Solved

Combine commands

Posted on 2007-04-03
2
250 Views
Last Modified: 2013-12-27
hi.
Having trouble figuring out how to combine commands in Solaris.
ex: I normally use pwd to check where I am.  There are quite a fiew long paths on my system, so I'd like to something as:
find pwd -name test
instead of
find /path/to/the/polder/i'm/allready/in -name test

But I'cant figure out how to combine stuff like find and pwd. I know it's possible, but not how.
Any one?
0
Comment
Question by:kristian_gr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
nixfreak earned 500 total points
ID: 18843157
find `pwd` -name test
0
 
LVL 48

Expert Comment

by:Tintin
ID: 18847306
The normal/usual way of doing it is

find . -name test
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question