Search Results

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

Cheers,
~senthil
1,335
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,007
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,726
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,670
Posted By senthilkumark
To save the file use esc :wq
To save the file
use esc :wq
1,256
Posted By senthilkumark
Hi, Try this one fgrep -f File1 File2 ...
Hi,
Try this one
fgrep -f File1 File2

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

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

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