Search Results

Search: Posts Made By: EAGL€
2,402
Posted By EAGL€
$2==$2 means to compare the second column to next...
$2==$2 means to compare the second column to next second column right? if so why you have used $2==$2 as they are not equal when $1==$1 right?
2,510
Posted By EAGL€
find /path/to/dir -type f -name "filename" -mtime...
find /path/to/dir -type f -name "filename" -mtime -1 2>/dev/null | xargs grep -iw "word"

filename could be *.txt , *abc*txt etc.
-mtime -1 means modification(or creation time) less than 1 day
3,055
Posted By EAGL€
Alister's solution sure simpliest and better but...
Alister's solution sure simpliest and better but if you want to do it with awk then using different seperator rather than "A" cold be better i guess:
echo...
3,256
Posted By EAGL€
awk -F"[/:]" '{print $2}' foo.txt >> outfile ...
awk -F"[/:]" '{print $2}' foo.txt >> outfile

[root@localhost ugr]# cat outfile
1312288621.V804I59c1aaa3M731667.sam.company.local
1312289223.V804I59c1aad4M503269.sam.company.local

this works...
1,950
Posted By EAGL€
echo "busybox-1.11.1-1_WR3.0bg.armv6jel_vfp.rpm"...
echo "busybox-1.11.1-1_WR3.0bg.armv6jel_vfp.rpm" | sed 's/\(.*\)\....$/\1/'
2,317
Posted By EAGL€
After you save your files as data_DDMMYY you can...
After you save your files as data_DDMMYY you can use them in below code like file1 and file2, compared files has only one column:

awk '{if(FNR==NR) {arr[$0]++;next} if($0 in arr) { arr[$0]--; if...
7,837
Posted By EAGL€
paste -d " " file1 file2 > file3 -d...
paste -d " " file1 file2 > file3

-d indicates delimeter, in your case a space, so set it according to the field seperator in your resulting output field
2,344
Posted By EAGL€
while read line; do echo ${line:0:1}...
while read line; do echo ${line:0:1} >>output.txt; done<input.txt
2,467
Posted By EAGL€
echo...
echo "11111*X*005010X279~ST*270*1111111*005010X279~BHT*0011*11" | sed 's/.*\(005010X[0-9]\{3\}[A-Za-z]\).*$/\1/'

gave

005010X279

is this what you looking for?
2,758
Posted By EAGL€
egrep '>|^[A,G,C]*$' infile
egrep '>|^[A,G,C]*$' infile
Forum: Solaris 06-04-2010
55,896
Posted By EAGL€
First of all my aim was to be able to use ssh...
First of all my aim was to be able to use ssh daemon so thats way i asked for your help.

Now It works like a charm after trying below commands:

#svcadm -v clear...
101,044
Posted By EAGL€
I am using the below script in a production...
I am using the below script in a production machine in a backup script and it works pretty well, on 1st of Jan and 1st of March (leap years) it works correctly, considers leap year well, try it

#!...
60,424
Posted By EAGL€
Sorry for late reply, I hope it'll give you...
Sorry for late reply,

I hope it'll give you an idea to do it. I checked a production machine which is working over tomcat but i coudlnt be sure what is the right command to see that tomcat is up?...
Showing results 1 to 13 of 13

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