Search Results

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

Cheers,
~senthil
1,336
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
40,012
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,730
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,671
Posted By senthilkumark
To save the file use esc :wq
To save the file
use esc :wq
1,257
Posted By senthilkumark
Hi, Try this one fgrep -f File1 File2 ...
Hi,
Try this one
fgrep -f File1 File2

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

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

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