How do I find where line 468 is?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How do I find where line 468 is?
# 8  
Old 01-02-2002
A useful hint for using the set command....

":set all" will provide you a list of the set commands that can be used....very helpful.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find line then evaluate text on next line, print when condition is met

Hello, I am looking for a specific situation in a text file. The conditions are, > <CompoundName> InChI=1S/C5H12NO2/c1-5(2)4-8-6(3)7/h5H,4H2,1-3H3/q+1 I am looking for cases where the line "> <CompoundName>" is followed by a line that contains the string "InChI=" without regard to... (5 Replies)
Discussion started by: LMHmedchem
5 Replies

2. UNIX for Dummies Questions & Answers

To find and display the middle line in a file using single line command.

Hi all, How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies

3. UNIX for Advanced & Expert Users

How to find a string in a line in UNIX file and delete that line and previous 3 lines ?

Hi , i have a file with data as below.This is same file. But actual file contains to many rows. i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ? Field 004... (7 Replies)
Discussion started by: vadlamudy
7 Replies

4. Shell Programming and Scripting

find a certain line and append text to the end of the line

After I create printer queues in AIX, I have to append a filter file location within that printers custom file. within lets say test_queue.txt I need to find the row that starts with :699 and then I need to append on the end the string /usr/local/bin/k_portrait.sh. Now I've gotten the sed... (2 Replies)
Discussion started by: peachclift
2 Replies

5. Emergency UNIX and Linux Support

Find a line using a condition and replace a string in that line

Hello, I have a 100 line code. I have given a sample of it below: ABC*654654*1*54.54*21.2*87*1*654654654654 CCC*FS*FS*SFD*DSF GGG*FGH*CGB*FBDFG*FGDG ABC*654654*1*57.84*45.4*88*2*6546546545 CCC*WSF*SG*FGH*GHJ ADA*AF*SFG*DFGH*FGH*FGTH I need to select the line starting with "ABC" its... (3 Replies)
Discussion started by: nithins007
3 Replies

6. Shell Programming and Scripting

Find a line using a condition and replace a string in that line

Hello, I have a 100 line code. I have given a sample of it below: ABC*654654*1*54.54*21.2*87*1*654654654654 CCC*FS*FS*SFD*DSF GGG*FGH*CGB*FBDFG*FGDG ABC*654654*1*57.84*45.4*88*2*6546546545 CCC*WSF*SG*FGH*GHJ ADA*AF*SFG*DFGH*FGH*FGTH I need to select the line starting with "ABC" its... (6 Replies)
Discussion started by: nithins007
6 Replies

7. Shell Programming and Scripting

Find specific line and delete line after.

I'm looking for a way to search a file, in this case init.rc for a specific match, service adbd /sbin/adbd, and delete the a specific line after it Original: # adbd is controlled by the persist.service.adb.enable system property service adbd /sbin/adbd disabled After deletion: #... (5 Replies)
Discussion started by: GabrialDestruir
5 Replies

8. UNIX for Dummies Questions & Answers

Find Pattern delete line and next line

I am trying to delete the line with pattern and the next line. Found the below command in forum which also deleted the previous line. how should i modify that to make sure that only the line with pattern and the next line are deleted but not the previous line? awk '/key... (1 Reply)
Discussion started by: rdhanek
1 Replies

9. Shell Programming and Scripting

Find the line/line of a script that is exceuted

Hello all, how can i get the line/line number from a script that is being executed. Its not running in a verbose mode. Unable to get them using ps command. Anyone to help on this. Thnx Sri (3 Replies)
Discussion started by: srivat79
3 Replies

10. Shell Programming and Scripting

find previous line, next line on solaris

Hi, Unlike the GNU version, grep on SunOS doesn't have the switches -B and -A to fetch me the lines before n after the match and looking for an alternate way. Any Suggestions?. -Anduzzi (1 Reply)
Discussion started by: anduzzi
1 Replies
Login or Register to Ask a Question
Mojolicious::Commands(3pm)				User Contributed Perl Documentation				Mojolicious::Commands(3pm)

NAME
Mojolicious::Commands - Command line interface SYNOPSIS
use Mojolicious::Commands; # Command line interface my $commands = Mojolicious::Commands->new; $commands->run(@ARGV); DESCRIPTION
Mojolicious::Commands is the interactive command line interface to the Mojolicious framework. It will automatically detect available commands in the "Mojolicious::Command" namespace. COMMANDS
These commands are available by default. "help" $ mojo $ mojo help $ ./myapp.pl help List available commands with short descriptions. $ mojo help <command> $ ./myapp.pl help <command> List available options for the command with short descriptions. "cgi" $ ./myapp.pl cgi Start application with CGI backend. "cpanify" $ mojo cpanify -u sri -p secr3t Mojolicious-Plugin-Fun-0.1.tar.gz Upload files to CPAN. "daemon" $ ./myapp.pl daemon Start application with standalone HTTP 1.1 server backend. "eval" $ ./myapp.pl eval 'say app->home' Run code against application. "generate" $ mojo generate $ mojo generate help $ ./myapp.pl generate help List available generator commands with short descriptions. $ mojo generate help <generator> $ ./myapp.pl generate help <generator> List available options for generator command with short descriptions. "generate app" $ mojo generate app <AppName> Generate application directory structure for a fully functional Mojolicious application. "generate lite_app" $ mojo generate lite_app Generate a fully functional Mojolicious::Lite application. "generate makefile" $ mojo generate makefile $ ./myapp.pl generate makefile Generate "Makefile.PL" file for application. "generate plugin" $ mojo generate plugin <PluginName> Generate directory structure for a fully functional Mojolicious plugin. "get" $ mojo get http://mojolicio.us $ ./myapp.pl get /foo Perform requests to remote host or local application. "inflate" $ ./myapp.pl inflate Turn templates and static files embedded in the "DATA" sections of your application into real files. "psgi" $ ./myapp.pl psgi Start application with PSGI backend. "routes" $ ./myapp.pl routes List application routes. "test" $ mojo test $ ./myapp.pl test $ ./myapp.pl test t/fun.t Runs application tests from the "t" directory. "version" $ mojo version $ ./myapp.pl version Show version information for installed core and optional modules, very useful for debugging. ATTRIBUTES
Mojolicious::Commands inherits all attributes from Mojo::Command and implements the following new ones. "hint" my $hint = $commands->hint; $commands = $commands->hint('Foo!'); Short hint shown after listing available commands. "message" my $message = $commands->message; $commands = $commands->message('Hello World!'); Short usage message shown before listing available commands. "namespaces" my $namespaces = $commands->namespaces; $commands = $commands->namespaces(['Mojolicious::Commands']); Namespaces to load commands from, defaults to "Mojolicious::Command" and "Mojo::Command". # Add another namespace to load commands from push @{$commands->namespaces}, 'MyApp::Command'; METHODS
Mojolicious::Commands inherits all methods from Mojo::Command and implements the following new ones. "detect" my $env = $commands->detect; my $env = $commands->detect($guess); Try to detect environment. "run" $commands->run; $commands->run(@ARGV); Load and run commands. Automatic deployment environment detection can be disabled with the "MOJO_NO_DETECT" environment variable. "start" Mojolicious::Commands->start; Mojolicious::Commands->start(@ARGV); Start the command line interface. # Always start daemon and ignore @ARGV Mojolicious::Commands->start('daemon', '-l', 'http://*:8080'); "start_app" Mojolicious::Commands->start_app('MyApp'); Mojolicious::Commands->start_app(MyApp => @ARGV); Load application and start the command line interface for it. # Always start daemon for application and ignore @ARGV Mojolicious::Commands->start_app('MyApp', 'daemon', '-l', 'http://*:8080'); SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojolicious::Commands(3pm)