Search Results

Search: Posts Made By: anishkumarv
1,104
Posted By vbe
Usually NTP uses only one time : UTC So you...
Usually NTP uses only one time : UTC
So you should not have issues ( time zones are local ENV settings...)
2,785
Posted By Corona688
history, the command, is a shell builtin, not an...
history, the command, is a shell builtin, not an external thing. Some shells don't have it at all. How to get at the data from outside depends on what shell they use.

If you use the bash shell,...
6,313
Posted By binlib
Three ways of computing the number of deletions,...
Three ways of computing the number of deletions, additions and unchanged, experiment with your data and OS to see which is the best:

# generate raw data
awk -v n=1e6 '
BEGIN {
srand()
...
6,313
Posted By Corona688
To make it clearer: gunzip < biz.zone.gz |...
To make it clearer:

gunzip < biz.zone.gz | awk -v TOTALFILE="$RootPath/$today.count" -v BIZFILE="$RootPath/$today.biz" '
# print ALL lines into BIZFILE
{ print $0 > BIZFILE }
/^[^ ]+ IN NS/ &&...
4,910
Posted By ahamed101
It is working for me. which is your shell? Hope...
It is working for me. which is your shell? Hope you are running the command from where you have the anish.txt and kumar.txt files.

--ahamed
4,910
Posted By ahamed101
awk 'NR==FNR{a=$0;next} {b=$0; print a-b}'...
awk 'NR==FNR{a=$0;next} {b=$0; print a-b}' anish.txt kumar.txt


--ahamed
4,910
Posted By Corona688
In shell: read VAR1 < file1.txt read VAR2 <...
In shell:
read VAR1 < file1.txt
read VAR2 < file2.txt
expr "${VAR1}" "+" "${VAR2}" There's better ways than 'expr' in some shells, but I don't know what your system and shell is.
4,910
Posted By ahamed101
one entry per file? --ahamed
one entry per file?

--ahamed
3,542
Posted By danmero
#!/bin/bash A=( $(<file) ) for w in ${A[@]} ...
#!/bin/bash
A=( $(<file) )
for w in ${A[@]}
do
echo ${w##*.}
done
3,542
Posted By danmero
while read line;do echo ${line##*.};done < file ...
while read line;do echo ${line##*.};done < file
or using awk
awk -F. '{$0=$NF}1' file
3,542
Posted By rdcwayx
awk -F \. '{print $NF}' infile
awk -F \. '{print $NF}' infile
25,281
Posted By Scott
for file in AA*; do mv "$file" "${file#AA}" ...
for file in AA*; do
mv "$file" "${file#AA}"
done
8,387
Posted By kato
sed -i 's/triumph and disaster must be treated...
sed -i 's/triumph and disaster must be treated same./follow excellence success will chase you./' file1
1,352
Posted By pravin27
sort inputfile | awk '{if($1!=a){a=$1;print $0...
sort inputfile | awk '{if($1!=a){a=$1;print $0 >"file_"++i}else{a=$1;print $0>>"file_"i}}'
1,713
Posted By rajesh_pola
Hi, use the following command for this in...
Hi,

use the following command for this in this given formate.
paste file1 file2 > file3

file3 is the correct file of your requirement.

regards
rajesh
Showing results 1 to 15 of 15

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