Sponsored Content
Full Discussion: Command syntax
Top Forums UNIX for Dummies Questions & Answers Command syntax Post 62596 by thumsup9 on Thursday 17th of February 2005 01:13:30 PM
Old 02-17-2005
find / -type f -cmin -10

if you are on linux
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Syntax for tar command

I am trying to extract a file using tar. I cd'ed to the directory I wanted to start in. I had the tar file in the same directory. I executed tar xvf filename . It appeared that it was extracting into the directory the tar file was created from instead of into the directory I was in. How do I... (1 Reply)
Discussion started by: baunocj
1 Replies

2. UNIX for Dummies Questions & Answers

command syntax

Hi, Does anyone knows the command syntax for the following Unix commands: at mount The OS is the Chorus/Mix 4.3 BSD Unix. The "at" command does the following: at a precise date and hour it executes a desirede command. Many thanks !!! Regards, Pedro Pereira (3 Replies)
Discussion started by: pmap
3 Replies

3. Shell Programming and Scripting

until command syntax error

Hi there. I spent too much time away from Unix, now I can't remember how to issue a simple until command in ksh :mad: could you tell me what is wrong with the following code sample: export v = "1" until do echo 'executing repeat_until' v = `expr $v + 1` done I've... (3 Replies)
Discussion started by: 435 Gavea
3 Replies

4. UNIX for Dummies Questions & Answers

bind command syntax

Can anyone tell me what the syntax is for the bind command in bash? I'm using OS X and the book i have ias written in 2005 ('Learning the bash shell') I'm guessing it was for an earlier version. It says something about single and double quotes, but I'm not sure exactly in what order they're... (2 Replies)
Discussion started by: Straitsfan
2 Replies

5. Shell Programming and Scripting

awk command syntax

I want the output to show 2 lines following this line. How do I amend my awk command. Please guide. Thanks (3 Replies)
Discussion started by: Tirmazi
3 Replies

6. UNIX for Dummies Questions & Answers

Syntax for own UNIX command

hi All, how can i make my own commamnds for unix shell scripts. lets xmple.. 1-i want to use "down arrow key" for previous runned unix commands. then how to acheive it. 2-Generally TAB --- complete filename or command up to the point of uniqueness ..but here its not working .. I m new to... (1 Reply)
Discussion started by: pradeepcarya
1 Replies

7. UNIX for Dummies Questions & Answers

to take backup what is the command tell syntax

to take backup what is the command tell syntax (1 Reply)
Discussion started by: sunilamarnadh
1 Replies

8. HP-UX

ps command syntax

I use hp HP-UX. I want to get vsz of the process . What is the syntax ... /run>ps -help ps: illegal option -- h ps: option requires an argument -- p usage: ps (3 Replies)
Discussion started by: chuikingman
3 Replies

9. Shell Programming and Scripting

Alias command syntax

Hi all, I want to add a shortcut "xmll" to my .cshrc file. By using "xmll" I want the following command to be executed: find . -type f -name 'T*.xml' > xml_list.txt BUT: alias xmll 'find . -type f -name 'T*.xml' > xml_list.txt' doesn't work. What is the correct syntax? Thank... (7 Replies)
Discussion started by: friend
7 Replies

10. UNIX for Advanced & Expert Users

Syntax when using the 'exec' command

Hey gang, I'm confused about the 'exec' command. I get the basics. I can redirect stdout and stderr to one log file with: exec >> $logFile 2>&1 However, that code requires admin rights. In other scripts, when faced with this, I'll call 'sudo' and then pass a hashed password like this: ... (8 Replies)
Discussion started by: hungryd
8 Replies
PTARGREP(1)						User Contributed Perl Documentation					       PTARGREP(1)

NAME
ptargrep - Apply pattern matching to the contents of files in a tar archive SYNOPSIS
ptargrep [options] <pattern> <tar file> ... Options: --basename|-b ignore directory paths from archive --ignore-case|-i do case-insensitive pattern matching --list-only|-l list matching filenames rather than extracting matches --verbose|-v write debugging message to STDERR --help|-? detailed help message DESCRIPTION
This utility allows you to apply pattern matching to the contents of files contained in a tar archive. You might use this to identify all files in an archive which contain lines matching the specified pattern and either print out the pathnames or extract the files. The pattern will be used as a Perl regular expression (as opposed to a simple grep regex). Multiple tar archive filenames can be specified - they will each be processed in turn. OPTIONS
--basename (alias -b) When matching files are extracted, ignore the directory path from the archive and write to the current directory using the basename of the file from the archive. Beware: if two matching files in the archive have the same basename, the second file extracted will overwrite the first. --ignore-case (alias -i) Make pattern matching case-insensitive. --list-only (alias -l) Print the pathname of each matching file from the archive to STDOUT. Without this option, the default behaviour is to extract each matching file. --verbose (alias -v) Log debugging info to STDERR. --help (alias -?) Display this documentation. COPYRIGHT
Copyright 2010 Grant McLean <grantm@cpan.org> This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.3 2013-05-12 PTARGREP(1)
All times are GMT -4. The time now is 07:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy