Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Display the content of the unix file Post 302478661 by vedanjalig on Wednesday 8th of December 2010 01:09:21 PM
Old 12-08-2010
No, I have to include in my program. I have to display the contents of the file at the end of the program.
Can I use cat inside editor? Inside the pico
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cant display korean file on Unix

I got a korean file from AS/400 machine and save it in a AIX Server (using ftp command). The file is converting to CCSID 949 (korean character) and CCSID 13488 (unicode) respectively. It is no problem to view 2 file by using F-Secure SSH Client (command more)from a window Xp (locale : Korean).... (0 Replies)
Discussion started by: hahahafung
0 Replies

2. UNIX for Dummies Questions & Answers

grep/cat/more -- search in a txt file and display content from a specific "keyword"

Hi, I have a .txt file Sample: ===================== NEXT HOST ===================== AEADBAS001 ip access-list extended BLA_Incoming_Filter ip access-list extended BLA_Outgoing_Filter access-list 1 permit xxxxxxxxxxxxxx access-list 2 permit xxxxxxxxxxxxxx =====================... (4 Replies)
Discussion started by: I-1
4 Replies

3. UNIX for Dummies Questions & Answers

display files name and it's content

hello, i have a question and i'll be appreciated if you can help me with this. i have i folder let's say "users" in this folder there are files (file1, file2, file2, etc) and in each file there is a number (lets say 4 in file1) i want to display some thing like bellow file1 4... (6 Replies)
Discussion started by: dndoon
6 Replies

4. Shell Programming and Scripting

display content between all similar tags pattern

hi, I m stuck at a point for more than 3days. My doubt is pretty simple.. I have a web page content in $content. ( got this by using LWP).. Now I want to display the content matching a pattern. I tried if($content =~ m{<div class="abc">(.*?)</div>}s){ print $1;} that will... (4 Replies)
Discussion started by: therockravi
4 Replies

5. Shell Programming and Scripting

Display the content in different lines in email

Hi, I am checking if a file exists or not and based on the result I am sending an email. The email part works fine but the content of the email comes in a single line and I am not able to display it in diferent lines. if ; then echo "Hi, \\n An exception exists in the process.... (3 Replies)
Discussion started by: shanth_chandra
3 Replies

6. Shell Programming and Scripting

How to copy mail content in a file in Unix

Hi Guys I want to write a script which search mail with subject line and after that I want the mail content in a file please help guys. Thanks Atul Singh (3 Replies)
Discussion started by: atul9806
3 Replies

7. Shell Programming and Scripting

Display specific lines content from the file

Hell, I want to grep certain word from file and display above 2 lines and after two lines. Here is the content of sample file. Mar 14, 2013 12:56:59 AM Agent.Agent SendTo INFO: Connection to server:7041 - Credential Transmit Successesful Mar 14, 2013 8:54:21 AM cgent SendTo WARNING:... (7 Replies)
Discussion started by: balareddy
7 Replies

8. Shell Programming and Scripting

Grep to display file name along with content in Solaris

Am using the following grep to match a particular patter in grep. grep xyz abc.txt now while i run this command, if the pattern matched, am getting the line containing xyz Output: xyz is doing some work Now if i want the file name also along with my output, what should i do Expected... (2 Replies)
Discussion started by: rituparna_gupta
2 Replies

9. Shell Programming and Scripting

Need Suggestion, on how to constantly moniter a file and display content with in that time

Dear Gurus, I'm in a strange situation, hence need some kind of advice or possible syntax to carry on. let's say current time/date is 2013-12-18, 15:58:15 I got a file something like this, which keep getting updated with respect to time. 2013-12-18,... (4 Replies)
Discussion started by: manas_ranjan
4 Replies

10. UNIX for Beginners Questions & Answers

UNIX Log File Content - Duplication Issue

I have a shell script with 2 run time arguments. During the execution if i got any error, then it needs to redirected to a error file and in console. Also both error and output to be redirected to a log file. Error output is getting copied to err file and getting displayed in console too. But... (2 Replies)
Discussion started by: sarathy_a35
2 Replies
pico(1) 						      General Commands Manual							   pico(1)

Name
       pico - simple text editor in the style of the Alpine Composer

Syntax
       pico [ options ] [ file ]

Description
       Pico  is a simple, display-oriented text editor based on the Alpine message system composer.  As with Alpine, commands are displayed at the
       bottom of the screen, and context-sensitive help is provided.  As characters are typed they are immediately inserted into the text.

       Editing commands are entered using control-key combinations.  As a work-around for communications programs  that  swallow  certain  control
       characters,  you  can  emulate a control key by pressing ESCAPE twice, followed by the desired control character, e.g. "ESC ESC c" would be
       equivalent to entering a ctrl-c.  The editor has five basic features: paragraph	justification,	searching,  block  cut/paste,  a  spelling
       checker, and a file browser.

       Paragraph  justification  (or  filling)	takes  place in the paragraph that contains the cursor, or, if the cursor is between lines, in the
       paragraph immediately below.  Paragraphs are delimited by blank lines, or by lines beginning with a space or tab.  Unjustification  can	be
       done immediately after justification using the control-U key combination.

       String  searches are not sensitive to case.  A search begins at the current cursor position and wraps around the end of the text.  The most
       recent search string is offered as the default in subsequent searches.

       Blocks of text can be moved, copied or deleted with creative use of the command for mark (ctrl-^), delete (ctrl-k) and  undelete  (ctrl-u).
       The  delete  command  will  remove text between the "mark" and the current cursor position, and place it in the "cut" buffer.  The undelete
       command effects a "paste" at the current cursor position.

       The spell checker examines all words in the text.  It then offers, in turn, each misspelled word for correction while  highlighting  it	in
       the  text.  Spell checking can be cancelled at any time.  Alternatively, pico will substitute for the default spell checking routine a rou-
       tine defined by the SPELL environment variable.	The replacement routine should read standard input and write standard output.

       The file browser is offered as an option in the "Read File" and "Write Out" command prompts.  It is intended to help in searching for  spe-
       cific  files and navigating directory hierarchies.  Filenames with sizes and names of directories in the current working directory are pre-
       sented for selection.  The current working directory is displayed on the top line of the display while the list of available commands takes
       up the bottom two.  Several basic file manipulation functions are supported:  file renaming, copying, and deletion.

       More specific help is available in pico's online help.

Options
       +n     Causes pico to be started with the cursor located n lines into the file. (Note: no space between "+" sign and number)

       -a     Display all files including those beginning with a period (.).

       -b     Enable  the  option to Replace text matches found using the "Where is" command. This now does nothing. Instead, the option is always
	      turned on (as if the -b flag had been specified).

       -d     Rebind the "delete" key so the character the cursor is on is rubbed out rather than the character to its left.

       -e     Enable file name completion.

       -f     Use function keys for commands.  This option supported only in conjunction with UW Enhanced NCSA telnet.

       -h     List valid command line options.

       -j     Enable "Goto" command in the file browser.  This enables the command to permit explicitly telling pilot which directory to visit.

       -g     Enable "Show Cursor" mode in file browser.  Cause cursor to be positioned before the current selection rather  than  placed  at  the
	      lower left of the display.

       -k     Causes "Cut Text" command to remove characters from the cursor position to the end of the line rather than remove the entire line.

       -m     Enable mouse functionality.  This only works when pico is run from within an X Window System "xterm" window.

       -nn    The  -nn	option	enables  new  mail notification.  The n argument is optional, and specifies how often, in seconds, your mailbox is
	      checked for new mail.  For example, -n60 causes pico to check for new mail once every minute.  The default interval is 180  seconds,
	      while the minimum allowed is 30. (Note: no space between "n" and the number)

       -o dir Sets  operating directory.  Only files within this directory are accessible.  Likewise, the file browser is limited to the specified
	      directory subtree.

       -rn    Sets column used to limit the "Justify" command's right margin

       -s speller
	      Specify an alternate program spell to use when spell checking.

       -t     Enable "tool" mode.  Intended for when pico is used as the editor within other tools (e.g., Elm, Pnews).	Pico will not  prompt  for
	      save on exit, and will not rename the buffer during the "Write Out" command.

       -v     View the file only, disallowing any editing.

       -version
	      Print Pico version and exit.

       -w     Disable word wrap (thus allow editing of long lines).

       -x     Disable keymenu at the bottom of the screen.

       -z     Enable ^Z suspension of pico.

       -p     Preserve the "start" and "stop" characters, typically Ctrl-Q and Ctrl-S, which are sometimes used in communications paths to control
	      data flow between devices that operate at different speeds.

       -Q quotestr
	      Set the quote string.  Especially useful when composing email, setting this allows the quote string to be checked for when  Justify-
	      ing paragraphs.  A common quote string is "> ".

       -W word_separators
	      If  characters  listed  here appear in the middle of a word surrounded by alphanumeric characters that word is split into two words.
	      This is used by the Forward and Backward word commands and by the spell checker.

       -q     Termcap or terminfo definition for input escape sequences are used in preference to sequences defined by default.   This	option	is
	      only available if pico was compiled with the TERMCAP_WINS define turned on.

       -setlocale_ctype
	      Do setlocale(LC_CTYPE) if available. Default is to not do this setlocale.

       -no_setlocale_collate
	      Do not do setlocale(LC_COLLATE). Default is to do this setlocale.

       Lastly,	when  a running pico is disconnected (i.e., receives a SIGHUP), pico will save the current work if needed before exiting.  Work is
       saved under the current filename with ".save" appended.	If the current work is unnamed, it is saved under the filename "pico.save".

Bugs
       The manner in which lines longer than the display width are dealt is not immediately obvious.  Lines that continue beyond the edge  of  the
       display are indicated by a '$' character at the end of the line.  Long lines are scrolled horizontally as the cursor moves through them.

Files
       pico.save	Unnamed interrupted work saved here.
       *.save		Interrupted work on a named file is saved here.

Authors
       Michael Seibel <mikes@cac.washington.edu>
       Laurence Lundblade <lgl@cac.washington.edu>
       Pico was originally derived from MicroEmacs 3.6, by Dave G. Conroy.
       Copyright 1989-2008 by the University of Washington.

See Also
       alpine(1)
       Source distribution (part of the Alpine Message System):

       $Date: 2008-08-22 13:40:16 -0700 (Fri, 22 Aug 2008) $

								   Version 5.04 							   pico(1)
All times are GMT -4. The time now is 02:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy