Search Results

Search: Posts Made By: homeboy
1,042
Posted By homeboy
try this,"file" is the input file sed...
try this,"file" is the input file
sed 's/\(.\)/\1 /g' file | awk '{a=$1||$3;b=$2||$4;printf "%d%d(binary)=%d(decimal)\n",a,b,a*2+b}'
3,393
Posted By homeboy
you should quota the second parameter of mv,you...
you should quota the second parameter of mv,you see,if you have a file named "name with blanks",the shell will expand the blanks within variables without double quotas or single quotas or backslash....
994
Posted By homeboy
-eq and others like that are used to compare two...
-eq and others like that are used to compare two numeric variables,if you wanna compare two strings,use "=" and "!="
2,395
Posted By homeboy
you can extract the filename by command---basename
you can extract the filename by command---basename
3,302
Posted By homeboy
try this AWK file,you can use it by: awk -f...
try this AWK file,you can use it by:
awk -f awkfile inputfile

{
2 for(i=1;i<=4;i++)a[$i]++
3 if(a[$1]+a[$2]+a[$3]+a[$4] > 4)
4 printf "%s <",$0;
5 for(i=1;i<=4;i++){
...
Forum: Programming 03-07-2011
1,991
Posted By homeboy
Thanks to all,my initialization is...
Thanks to all,my initialization is uncompleted.Now it's ok by added :

sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
5,411
Posted By homeboy
ps aux | sort -k1 - | awk '{print $1}' | uniq -c ...
ps aux | sort -k1 - | awk '{print $1}' | uniq -c
is this OK?
Forum: Programming 02-17-2011
1,483
Posted By homeboy
Thanks for your post,it's clear now.And i...
Thanks for your post,it's clear now.And i realized that i misunderstand the remove_copy_if,this algorithm Copies the values of the elements in the range [first,last) to the range positions beginning...
1,994
Posted By homeboy
the simpler way is : echo "123456" | sed...
the simpler way is :

echo "123456" | sed 's/\(.\)/\1 /g'
8,276
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...
Showing results 1 to 10 of 10

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