Search Results

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

Cheers,
~senthil
1,313
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,937
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,656
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,645
Posted By senthilkumark
To save the file use esc :wq
To save the file
use esc :wq
1,245
Posted By senthilkumark
Hi, Try this one fgrep -f File1 File2 ...
Hi,
Try this one
fgrep -f File1 File2

Thanks,
Senthil
1,244
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,351
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,692
Posted By senthilkumark
Try this one awk -F\|...
Try this one

awk -F\| '{if($4~/[a-zA-Z]+/){print}}' filename
1,643
Posted By senthilkumark
Try this one cat *.avg >new_file
Try this one
cat *.avg >new_file
3,494
Posted By senthilkumark
You need to check from file for the delimiter
You need to check from file for the delimiter
1,535
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]";}'
16,917
Posted By senthilkumark
Try this one grep -A2 'bbb' inputfile
Try this one
grep -A2 'bbb' inputfile
3,264
Posted By senthilkumark
Try this one cat File* |sort |uniq -c
Try this one
cat File* |sort |uniq -c
12,751
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,905
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
11,956
Posted By senthilkumark
Hi try this one :) tar xvfz a.tar.gz ...
Hi try this one :)
tar xvfz a.tar.gz

Thanks,
Senthil
1,887
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 01:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy