Search Results

Search: Posts Made By: posix
Forum: Solaris 02-12-2013
17,398
Posted By jim mcnamara
lsof is not normally on Solaris. You can install...
lsof is not normally on Solaris. You can install the package for it.
Where srchp is the port number... you have to be root to do this, and it is not very efficient.


srchp=14002
ptree -a |...
9,585
Posted By cfajohnson
## NAME: topntail ## USAGE: topntail [-b N] [-e...
## NAME: topntail
## USAGE: topntail [-b N] [-e N] [FILE ...]

b=1 ## No. of lines to remove from beginning
e=1 ## No. of lines to remove from end

## Parse command-line options
while...
1,179
Posted By Franklin52
Try this: awk '{print}/pattern/{system("cat...
Try this:
awk '{print}/pattern/{system("cat source.txt")}' second.txt
1,768
Posted By zaxxon
$> cat infile <Jul 30, 2010 7:01:12 AM EEST>...
$> cat infile
<Jul 30, 2010 7:01:12 AM EEST> <Error> <WebLogicServer>
<Jul 30, 2010 8:04:12 AM EEST> <Error> <WebLogicServer>
<Jul 30, 2010 8:09:12 AM EEST> <Error> <WebLogicServer>
<Jul 30,...
5,139
Posted By amitranjansahu
while read line do echo $line | grep...
while read line
do

echo $line | grep $pattern >/dev/null



if [ $? -eq 0 ]
then
echo $line4

fi

line4=$line3
line3=$line2
line2=$line1
line1=$line
done < $filename
34
78,544
Posted By ungalnanban
Shift + k is used to open the man page under the...
Shift + k is used to open the man page under the cursor. if you want to execute the command instead of opening the man page use the following functions.

"This function used to get the current...
2,361
Posted By zaxxon
I would go for a shell array: bash: $>...
I would go for a shell array:

bash:

$> IFS="-"
$> A=( `echo this-is-the-case` )
$> echo ${A[2]}
the


ksh:

$> IFS="-"
$> set -A A `echo this-is-the-case`
$> echo ${A[3]}
case

...
Forum: Tips and Tutorials 08-30-2007
755,559
Posted By Perderabo
Using perl to display the file timestamps
The ls program will display mtime if you use "ls -l". And you can get atime or ctime with "ls -lu" or "ls -lc". But ls uses a strange format. It displays the month and day in all cases. If the...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 12:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy