04-02-2015
The last line should probably read done > searchstring.out, that is redirecting the output.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi all,
Newbie to Unix and AIX. So my apologies if this is in the wrong place, etc.
Working on box -
uname# uname -a
AIX appt 3 5 00C08AAF4C00
when i type man (some valid command)
it just returns me to the # prompt.
Its running on the KSH shell.
man was working but i was trying... (14 Replies)
Discussion started by: djdavies
14 Replies
2. AIX
hi all,
Newbie to Unix and AIX. So my apologies if this is in the wrong place, etc.
Working on box -
uname# uname -a
AIX appt 3 5 00C08AAF4C00
when i type man (some valid command)
it just returns me to the # prompt.
Its running on the KSH shell.
man was working but i was trying... (6 Replies)
Discussion started by: djdavies
6 Replies
3. Cybersecurity
Hi,
I am trying to write a script which would figure out who has run which command and their IP. As i dont have any clue as to which commands would do this job, i request some gurus to help me on this.
Thanks
Vishwas (2 Replies)
Discussion started by: loggedout
2 Replies
4. Shell Programming and Scripting
Hi ,
I would like to assign command (with pipe) output to a variable. The code is as follows. The goal of the code is to get the last folder folder with a particular name pattern.
myDate=`ls | grep 2009 | tail -1`
echo "myDate=" $myDate
However, in the presence of the pipe, the code... (3 Replies)
Discussion started by: jeff_cen
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am having a list of directories with different login id's. My requirement is that i need to list the directories of my id and need to delete them. So i am using following code
ls -ltr ¦ grep userid ¦ rm -rf
But this is not working. So is there any way of doing it. Please note... (3 Replies)
Discussion started by: sarbjit
3 Replies
6. UNIX for Advanced & Expert Users
I would like to know why this command does not work.
I have a script which connects to and ftp site.
After getting the remote files localy i need move each remote file to a archive folder on the FTP site
*Please also note that some of the files have spaces in the file name.
Im trying to... (3 Replies)
Discussion started by: juanjanse
3 Replies
7. Shell Programming and Scripting
xargs work great when a command gives multiple line output which can be input to another. In my case it is not working coz the second command uses two words in it.
$ scr.sh
gives output like
193740
638102
375449
..
..
another command takes these number as inputs. it works great... (1 Reply)
Discussion started by: mahesh113
1 Replies
8. Shell Programming and Scripting
Hi Team,
Need a help on how to pipe a command out put to a shell script. My shell script looks like below.
cat shell_script
#!/usr/bin/ksh
input =$@
echo " we are inside the shell script"
echo " here are the input parameters"
..........................
..................
... (11 Replies)
Discussion started by: gvkumar25
11 Replies
9. Shell Programming and Scripting
Hello all!
I am trying to find the "Notes" backup from my iPhone in my folder ~/Library/Application\ Support/MobileSync/Backup/ which used to be in the sqlite file ca3bc056d4da0bbf88b5fb3be254f3b7147e639c. But since an update of the MacOS it is still there, but not updated anymore. (This is... (9 Replies)
Discussion started by: marek
9 Replies
10. Shell Programming and Scripting
Since output of w command have variable number of columns I want to get the output in pipe delimited format. I tried
export OFS="|"; w
but that does not work.
Any ideas? (4 Replies)
Discussion started by: Soham
4 Replies
mm(1) General Commands Manual mm(1)
NAME
mm, osdd - print documents formatted with the mm macros
SYNOPSIS
[options] [files]
[options] [files]
DESCRIPTION
can be used to format and print documents using and the text-formatting macro package (see nroff(1)). It has options to specify prepro-
cessing by and/or (see tbl(1) and neqn(1)), and postprocessing by various terminal-oriented output filters. The proper pipelines and the
required arguments and flags for and are generated, depending on the options selected.
is equivalent to the command
Options
recognizes the following options and command-line arguments. Any other arguments or options (such as are passed to or to as appropriate.
Such options can occur in any order, but they must appear before the files arguments. If no arguments are given, prints a list of its
options.
Specifies the type of output terminal;
for a list of recognized values for term, type If this option is used, uses the value of the shell variable from the envi-
ronment (see profile(4) and environ(5)) as the value of term if is set; otherwise, uses as the value of term. If several
terminal types are specified, the last one is used.
Indicates that the document is to be produced in 12-pitch.
Can be used when is set to one of and (The pitch switch on the DASI 300 and 300s terminals must be manually set to if this
option is used.)
Causes to invoke col(1); note that col(1) is invoked automatically by unless term is one of and
Causes to invoke
Causes to invoke
Invokes the
option of
DIAGNOSTICS
sends the message if none of the arguments is a readable file and is not used as a filter.
EXAMPLES
Assuming that the shell variable is set in the environment to the two command lines below are equivalent:
reads the standard input when is specified instead of any file names (mentioning other files along with leads to disaster). This option
allows to be used as a filter, as in this example:
Hints
o invokes with the option. With this option, assumes that the terminal has tabs set every 8 character positions.
o Use the option of to specify ranges of pages to be output. Note, however, that if invoked with one or more of the and options, together
with the option of may cause a harmless ``broken pipe'' diagnostic if the last page of the document is not specified in list.
o If you use the option of (to stop between pages of output), use line-feed (rather than return or new-line) to restart the output. The
option of does not work with the option of or if automatically invokes (see option above and col(1)).
o If you specify an incorrect output terminal type, produces (often subtle) unpredictable results. However, if you are redirecting output
into a file, use the option, then use the appropriate terminal filter when actually printing the formatted file.
SEE ALSO
col(1), env(1), nroff(1), tbl(1), profile(4), term(4), mm(5).
mm(1)