Search Results

Search: Posts Made By: rob2468
4,584
Posted By rob2468
crontab -e use this command to set the time and...
crontab -e
use this command to set the time and commands, you can refer to the manual to get the rules. This command automatically uses a simple editor for user to implement settings. After your...
2,345
Posted By rob2468
you should change awk '{ x=substr($0,1,9);...
you should change
awk '{ x=substr($0,1,9); z=substr($0,18); print x "$shell_var" z }' data.txt
to
awk '{ x=substr($0,1,9); z=substr($0,18); print x "'$shell_var'" z }' data.txt

so ,you can use...
5,532
Posted By rob2468
a=fadfagr_whatiwant.sh a=${a#*_} a=${a%.*} ...
a=fadfagr_whatiwant.sh
a=${a#*_}
a=${a%.*}

a is the variable
2,181
Posted By rob2468
i write the command in this way awk...
i write the command in this way
awk '{subs[$1]+=1}END{print subs["dddd"]}'
input context is what you post
it gives 3

$1"_subs"?
i just saw this kind of variable in "MakeFile",maybe shell...
Showing results 1 to 4 of 4

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