Sponsored Content
Top Forums Shell Programming and Scripting Need quick help with basic FIND in korn shell Post 11148 by Freakytah on Thursday 29th of November 2001 03:55:14 PM
Old 11-29-2001
Need quick help with basic FIND in korn shell

I gotta make a script to find files, not quite sure whats wrong...

filename is search

i run it

search ass* $HOME
ass* is the filename

and in my script i have...

find $2 -name $1 -print

but it never works, anyone know what i gotta fix?

and does anyone know the difference bettwen regular expressions and file expansion char's when it comes to seraching?
i know reg exp is but not expan.
thanks, steve
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find -name "*.txt" in Korn Shell Script

The following find command works on the Korn Shell command line: find . \( ! -name . -prune \) -type f -name "*.txt" -mtime +100 In the particular directory I'm in, the above find will list correctly the three text files that exist that haven't been modified in over 100 days: ... (3 Replies)
Discussion started by: jwperry
3 Replies

2. Shell Programming and Scripting

KORN Shell - Spawn new shell with commands

I want to be able to run a script on one server, that will spawn another shell which runs some commands on another server.. I have seen some code that may help - but I cant get it working as below: spawn /usr/bin/ksh send "telnet x <port_no>\r" expect "Enter command: " send "LOGIN:x:x;... (2 Replies)
Discussion started by: frustrated1
2 Replies

3. Shell Programming and Scripting

how to convert from korn shell to normal shell with this code?

well i have this code here..and it works fine in kornshell.. #!/bin/ksh home=c:/..../ input=$1 sed '1,3d' $input > $1.out line="" cat $1.out | while read a do line="$line $a" done echo $line > $1 rm $1.out however...now i want it just in normal sh mode..how to convert this?... (21 Replies)
Discussion started by: forevercalz
21 Replies

4. UNIX for Dummies Questions & Answers

find and FTP multiple files in Korn Shell

I want to FTP multiple files in a directory that the files were created since midnight of the same day using korn shell. I can use the "find" command using -newer arguement that compares against a time stamp file. The script identifies the files, I can't use a variable = `find . ` as the... (2 Replies)
Discussion started by: lambjam
2 Replies

5. Shell Programming and Scripting

need a quick basic shell script help

im trying to run the below if command ifconfig -a |grep 10.100.120.21 gives me below output inet addr:10.100.120.21 Bcast:10.100.120.255 Mask:255.255.255.0 i just want a basic shell which says if above exists then continue how would i do this? (6 Replies)
Discussion started by: eb222
6 Replies

6. Shell Programming and Scripting

quick script C shell

Cool. I played with scripts at home over the weekend. Come to find out not working on other shells. I have linux/bash at home, but now I'm trying on Solaris csh. How would I write the following script for Solaris C shell? ---------- #!/bin/bash NBR=231 for ((i = 0; i < $NBR; i++ )) do... (1 Reply)
Discussion started by: ajp7701
1 Replies

7. Shell Programming and Scripting

Korn Shell Script to find out error in logfile

Hi All, I am new to this forum as well as to unix scripting. Can you please help me to create a korn shell script to find out errors in logfiles and get the name of that logfile ( which is having error) in email and email it to me? (2 Replies)
Discussion started by: jithu
2 Replies

8. Shell Programming and Scripting

Find command in Korn Shell

Hi, I am trying to execute the below in Ksh (telnet) find ./request.txt -mmin -30 It says find: bad option -mmin What i am trying to do is by using find command i am checking wheather the file request.txt is there for 30 minutes or not Please help (1 Reply)
Discussion started by: chinniforu2003
1 Replies

9. Shell Programming and Scripting

How to activate Korn Shell functionnalities in Bourne Shell

Hi All I have writing a Korn Shell script to execute it on many of our servers. But some servers don't have Korn Shell installed, they use Borne Shell. Some operations like calculation don't work : cat ${file1} | tail -$((${num1}-${num2})) > ${file2} Is it possible to activate Korn Shell... (3 Replies)
Discussion started by: madmat
3 Replies

10. Shell Programming and Scripting

Quick Help in shell script

Need to subtract date stored in variable from the current date, answer should come in days..and months. Suppose two variable having value like A=”Wed Jan 15 08:59:08 GMT 2014” B= `date` #Sun May 23 09:29:40 GMT 2010 SubtractAB= $A-$B #..? AddAB=$A+$B #... ? C=$B+9 # Sun May 23... (3 Replies)
Discussion started by: KuldeepSinghTCS
3 Replies
gnome-search-tool(1)					      General Commands Manual					      gnome-search-tool(1)

NAME
gnome-search-tool - the GNOME Search Tool SYNOPSIS
gnome-search-tool [options] or select Search for Files... from a Main Menu or from the Places menu in a Menu Bar DESCRIPTION
GNOME Search Tool is a utility for finding files on your system. To perform a basic search, you can type a filename or a partial filename, with or without wildcards. To refine your search, you can apply additional search options. GNOME Search Tool uses the find, grep, and locate UNIX commands. The case sensitivity of the search depends on your operating system. For example, on Linux, the find, grep, and locate commands support the -i option, so all searches are case-insensitive. For full documentation see the GNOME Search Tool online help. OPTIONS
--help Show help message --named=STRING Set the text of "Name contains" search option --path=PATH Set the text of "Look in folder" search option --sortby=VALUE Sort files by one of the following: name, folder, size, type, or date --descending Set sort order to descending, the default is ascending --start Automatically start a search --contains=STRING Select and set the "Contains the text" search option --mtimeless=DAYS Select and set the "Date modified less than" search option --mtimemore=DAYS Select and set the "Date modified more than" search option --sizemore=KILOBYTES Select and set the "Size at least" search option --sizeless=KILOBYTES Select and set the "Size at most" search option --empty Select the "File is empty" search option --user=USER Select and set the "Owned by user" search option --group=GROUP Select and set the "Owned by group" search option --nouser Select the "Owner is unrecognized" search option --notnamed=STRING Select and set the "Name does not contain" search option --regex=PATTERN Select and set the "Name matches regular expression" search option --hidden Select the "Show hidden and backup files" search option --follow Select the "Follow symbolic links" search option --mounts Select the "Exclude other filesystems" search option AUTHOR
GNOME Search Tool was originally written by George Lebl (<jirka@5z.com>). Version 2 was written by Dennis M. Cranston (<den- nis_cranston@yahoo.com>). This manual page was originally written by Jochen Voss <voss@mathematik.uni-kl.de>. Version 2 was written by Dennis M. Cranston (<den- nis_cranston@yahoo.com>). SEE ALSO
find(1), locate(1), grep(1) gnome-utils 2.27.1 March 16 2009 gnome-search-tool(1)
All times are GMT -4. The time now is 09:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy