Search Results

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

Cheers,
~senthil
1,328
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,994
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,710
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,664
Posted By senthilkumark
To save the file use esc :wq
To save the file
use esc :wq
1,254
Posted By senthilkumark
Hi, Try this one fgrep -f File1 File2 ...
Hi,
Try this one
fgrep -f File1 File2

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

awk -F\| '{if($4~/[a-zA-Z]+/){print}}' filename
1,751
Posted By senthilkumark
Try this one cat *.avg >new_file
Try this one
cat *.avg >new_file
3,559
Posted By senthilkumark
You need to check from file for the delimiter
You need to check from file for the delimiter
1,576
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,077
Posted By senthilkumark
Try this one grep -A2 'bbb' inputfile
Try this one
grep -A2 'bbb' inputfile
3,434
Posted By senthilkumark
Try this one cat File* |sort |uniq -c
Try this one
cat File* |sort |uniq -c
12,812
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,954
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,304
Posted By senthilkumark
Hi try this one :) tar xvfz a.tar.gz ...
Hi try this one :)
tar xvfz a.tar.gz

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