Sponsored Content
Top Forums UNIX for Advanced & Expert Users Unix Commands to display the Filesnames Post 302116145 by anbu23 on Wednesday 2nd of May 2007 05:05:46 AM
Old 05-02-2007
Quote:
Originally Posted by kish_kk84
Query: In a directory there are 20 files, I have to display the Filenames which contains the content as JAVA in any line of the file. Please tell me the command or commands.
Code:
grep -l "JAVA" *

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Maingrame to UNIX sending UNIX commands

I want to know if there is a way to send unix commands thru FTP from a mainframe to kick off Autosys Jobs. I just need to send a command from the mainframe to UNIX and have UNIX execute that command. (2 Replies)
Discussion started by: skammer
2 Replies

2. Shell Programming and Scripting

How to display fractions of a second in UNIX

How can I display fraction of a second using Date command? (2 Replies)
Discussion started by: GNMIKE
2 Replies

3. Shell Programming and Scripting

Listing filesnames in bare format with fullpath

Hi, Need help. How can I get a listing of files in bare format with full path. I mean in the following format. /root/dir1/sub-dir1/file1 /root/dir1/sub-dir1/file2 /root/dir1/sub-dir2/file1 /root/dir1/sub-dir2/file2 /root/dir2/sub-dir1/file1 /root/dir2/sub-dir2/file1... (2 Replies)
Discussion started by: tipsy
2 Replies

4. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

5. Solaris

display remote commands

is there a way to display the commands the the remote user is typing -I would like to know a way by which i can log onto a remote system and type commands as the user watched on the console - I know about vnc but that is not what i am looking for -or is it rexec ? Ndegem SCSA (4 Replies)
Discussion started by: ndegem
4 Replies

6. UNIX for Dummies Questions & Answers

Display Commands

Hi everyone, I am kunal,.... What command is used to display only directories (not files). ? thanks in advance..... kunal patil kunalpatil09@gmail.com (2 Replies)
Discussion started by: kunalpatil09
2 Replies

7. UNIX for Dummies Questions & Answers

Display lines 30 to 40 of a text file using head and/or tail commands

Assume that the text file contains over 40 lines. How do you do this?!?!? (5 Replies)
Discussion started by: phunkypants
5 Replies

8. UNIX for Advanced & Expert Users

Fc command does not display all commands history of a user

hi, i have an AIX6.1 machine and i modified a user's profile so that it creates history file for each ip address that connects with this user. the reason i did this is because more than 1 person connects with the same user so i want to keep track of command run by all of them. therefore, in the... (5 Replies)
Discussion started by: omonoiatis9
5 Replies

9. UNIX for Dummies Questions & Answers

Display Pie Chart/Bar Graph in microsoft outlook email using UNIX commands/Shell scripts

I have a shell script which executes to write html codes into a text file. My next step is to email the text file so that receiving person (people who i send email to) should be able to see pie/chart or bar graph (whatever i design in my code) in their email. Following is the example of a sample... (7 Replies)
Discussion started by: bikerboy
7 Replies

10. UNIX for Beginners Questions & Answers

UNIX commands to display the biggest file by size in a directory

Hello guys, Please i need to know the biggest files in my directory let's say$ >du -h | egrep 'M|G|G' 195M ./TMP 3.6M ./TP_DEC2012 146G . But here the result it's giving me the biggest directory in the path. Actually i want to know the biggest file in 146G . Can anyone... (6 Replies)
Discussion started by: gillesi
6 Replies
bbrun(1)							      bbtools								  bbrun(1)

NAME
bbrun - An elegant tool for the Blackbox window manager that runs commands SYNTAX
bbrun [OPTIONS] [-- [-display <display>]]... DESCRIPTION
bbrun is a small but very useful application. It makes it convenient to quickly execute commands from the blackbox or fluxbox window man- agers. bbrun is very similar to KDE's Alt+F2 Run Command dialog box. When launched, it occupies a small portion of the desktop and docks itself to the right side of the screen. The run dialog is opened by clicking on the tiny bbrun window. You don't necessarily need blackbox for this program to work. It looks just as good in fluxbox, but it won't look the same in other window managers. FILES
~/.bbrun_history OPTIONS
-a, --advanced - advanced mode, shows more options than the normal command entry box. The default is for it to be in normal (tradi- tional/simple) mode. -h, --help - this help screen -i, --history-file=<history file> - set the history file to use. (default: ~/.bbrun_history) -v, --version - print the version number -w, --withdraw - withdrawn mode, will go straight to command entry box Options that must occur after '--' if they are used: -display <display> - set the display that the gearbox should show up on GENERAL USAGE INFO
bbrun can be run in normal mode where it creates an icon that sits in the slit. You can then click on the gear icon to make the text entry window popup. You can also run bbrun in withdrawn mode by specifying the -w flag. This is ideal for use with the key shortcut program bbkeys since it will jump straight to the text entry screen. bbrun also supports the 'escape' and 'enter' keys for those of you who like to use the mouse as little as possbile. bbrun keeps a history of your most recent commands. The history list is stored in the '.bbrun_history' file in your home directory. If the file does not exist it is created automatically. Also keep in mind that you need quotes when you specify arguments with spaces in them. eg. mpg123 '/mp3/Creed - Higher.mp3' This file was updated by Kevin Coyner <kcoyner@debian.org> on February 12, 2007. Josh King <;jking@dwave.net> 1.6 bbrun(1)
All times are GMT -4. The time now is 07:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy