Search Results

Search: Posts Made By: Nithz
30,637
Posted By gary_w
Works fine for me using ksh and bash when run...
Works fine for me using ksh and bash when run from both command line and nohup'ed. What is your shell? if you are using the bourne shell, the "$( )" command substitution syntax is not supported. ...
5,048
Posted By Scrutinizer
Try something like: awk -v dd="$DATE" -v...
Try something like:
awk -v dd="$DATE" -v s=$START -v t=$END '$0~dd FS s,$0~dd FS t' logfile.log
You cannot use END as a variable name, it is a reserved word....
26,862
Posted By binlib
To find all files under a directory (not...
To find all files under a directory (not including sub directories) without using maxdepth:
find /full/path/dir \( ! -name dir -o -type f \) -prune -type f
Here we use prune to not descending to...
8,204
Posted By itkamaraj
use the if condition like this if [ $var1 >...
use the if condition like this

if [ $var1 > 10 ] # use square brackets
8,346
Posted By homeboy
sh inputfile #! /bin/bash declare -i...
sh inputfile

#! /bin/bash

declare -i now
declare -i seconds
declare -i delta
declare -i time

touch temp

time=1*24*3600 #one day before
now=`date --date="today" +%s`
while read month...
Forum: Solaris 05-15-2007
121,382
Posted By vino
find /path/to/directory -exec grep "abc" {}...
find /path/to/directory -exec grep "abc" {} /dev/null \;
Showing results 1 to 6 of 6

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