Search Results

Search: Posts Made By: senthilkumark
1,614
Posted By senthilkumark
Hi, Try this one fgrep -f file2.csv...
Hi,
Try this one
fgrep -f file2.csv file1.csv

Cheers,
~senthil
1,327
Posted By senthilkumark
Try this one since it is one line awk -F,...
Try this one since it is one line

awk -F, '{if($4 ~/1\.0|2\.0|3\.0|4\.0|5\.0/){$3="S30"}else{$3="S40"}1} OFS=","' file_name
39,985
Posted By senthilkumark
Try this one t=$(date -d "20121012...
Try this one

t=$(date -d "20121012 11:48:30" +%s)
t1=$(date -d "20121012 13:13:48" +%s)
diff=$(expr $t1 - $t)
echo $diff

You need the date value to calculate timestamp
2,704
Posted By senthilkumark
Hi try this one Use the symbol on that is...
Hi try this one

Use the symbol on that is on "~" on your key board
DIFF=`expr $current - $last_modified`
2,659
Posted By senthilkumark
To save the file use esc :wq
To save the file
use esc :wq
1,253
Posted By senthilkumark
Hi, Try this one fgrep -f File1 File2 ...
Hi,
Try this one
fgrep -f File1 File2

Thanks,
Senthil
1,269
Posted By senthilkumark
Try this one also awk...
Try this one also
awk '/Post/{gsub(/Post/,"\nPost");sub(/^\n/,"");print;}' f1

Thank you,
Senthil
9,385
Posted By senthilkumark
Hi If the environment variable `TMPDIR' is...
Hi

If the environment variable `TMPDIR' is set, `sort' uses its value
as the directory for temporary files instead of `/tmp'. The
`--temporary-directory' (`-T') option in turn overrides the...
15,791
Posted By senthilkumark
Try this one awk -F\|...
Try this one

awk -F\| '{if($4~/[a-zA-Z]+/){print}}' filename
1,727
Posted By senthilkumark
Try this one cat *.avg >new_file
Try this one
cat *.avg >new_file
3,545
Posted By senthilkumark
You need to check from file for the delimiter
You need to check from file for the delimiter
1,575
Posted By senthilkumark
Try this one cat filename |perl -e...
Try this one
cat filename |perl -e 'while($line=<>){@fields = ($line =~ /(?:^|,)(".*?"|[^,]*?)(?=,|$)/g);print "$fields[0],$fields[1]";}'
17,042
Posted By senthilkumark
Try this one grep -A2 'bbb' inputfile
Try this one
grep -A2 'bbb' inputfile
3,416
Posted By senthilkumark
Try this one cat File* |sort |uniq -c
Try this one
cat File* |sort |uniq -c
12,796
Posted By senthilkumark
Hi Try this :) sed -e 's/\s\s*/\t/g' filename
Hi Try this :)
sed -e 's/\s\s*/\t/g' filename
2,948
Posted By senthilkumark
Hi try this one :) cat input_file|sed...
Hi try this one :)
cat input_file|sed 's/^\s*//g' >output_file

cheers,
Senthil
12,219
Posted By senthilkumark
Hi try this one :) tar xvfz a.tar.gz ...
Hi try this one :)
tar xvfz a.tar.gz

Thanks,
Senthil
1,892
Posted By senthilkumark
Try this one using perl my %fruit_name; ...
Try this one using perl


my %fruit_name;
open(FRUIT,File_A) or die "Cannot open File_A File \n";
open(REC,File_B) or die "Cannot open File_B File \n";
while(my $friut_line = <FRUIT>) {
...
Showing results 1 to 18 of 18

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