Re: Help required on the following...
From: Chris F.A. Johnson (c.f.a.johnson_at_rogers.com)
Date: 04/25/03
- Next message: Jan Reilink: "Re: rm - Arguments too long"
- Previous message: those who know me have no need of my name: "Re: Check proper user during script execution"
- In reply to: pdqd: "Help required on the following..."
- Next in thread: Marcin Dobrucki: "Re: Help required on the following..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 25 Apr 2003 20:20:39 GMT
On Fri, 25 Apr 2003 at 16:20 GMT, pdqd wrote:
> Hi Friends,
> -
> Could you please guide me on the following...
First, you should use a meaningful subject for your post,
e.g. Shell script homework.
Second, use the appropriate newsgroup; in this case,
comp.unix.shell. Followup set.
> 1. How can i use find command so that it searches for only those
> directories for which the user who is running the command has
> permission?
> Also is it possible to skip searching a particular
> directory(directories)?
man find
> 2. How to search for a big chunk of text in a file?
How big is big?
Define "chunk".
Does it span more than one line?
> 3. How to display few lines starting from nth line of a large file (vi
> fails saying memory shortage)
Use any of the following:
man head; man tail
man awk
man sed
man $SHELL
> 4. What is the best strategy to remove an entry from the PATH variable
man cut
man $SHELL ## search for IFS
> 5. What is the best strategy to remove nth line (or range of lines)
> from a file?
Invert the logic after you work out no. 3.
> 6. I have a file which has got very large line , how could i use the
> vi to open such a file?
Get a new version of vi, or use a different editor.
> 7. Is it possible to yank a block of text(contiguous but can contian
> partial words, lines etc)?
man $EDITOR
> 8. Is it possible to search for a string in vi with case insensitive
> mode?
man vi
> 9. If i open many files in vi , how will switch between the windows?
> (like alt-tab feature of win )
man vi
> 10. How can I know the exact size of a directory? (du <dir-name> lists
> file by file ). also, since the output of the du is in blocks, is
> there any way i can know the size of block in that particular system?
man du
> 11. Is there anyway of recovering a deleted file?
Restore from backup.
> 11. How can i know the size of physical memory , hardisk(total of all
> filesystems) of a system?
man -k memory
man df
man du
--
Chris F.A. Johnson http://cfaj.freeshell.org
===================================================================
My code (if any) in this post is copyright 2003, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
- Next message: Jan Reilink: "Re: rm - Arguments too long"
- Previous message: those who know me have no need of my name: "Re: Check proper user during script execution"
- In reply to: pdqd: "Help required on the following..."
- Next in thread: Marcin Dobrucki: "Re: Help required on the following..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|