Search Results

Search: Posts Made By: sreejithalokkan
1,532
Posted By RavinderSingh13
Hello, Could you please use the following. ...
Hello,

Could you please use the following.


awk '!/^$/' filename


Output will be as follows.


"/home/rit/sandbox/garuda/data/test/woman/T_RITK_F0008_ML_100080039.lab"
r
a
N
e...
1,532
Posted By Akshay Hegde
try awk '!/^$/' file OR sed '/^$/d' file
try

awk '!/^$/' file
OR
sed '/^$/d' file
1,689
Posted By Akshay Hegde
one more version try $ awk...
one more version
try

$ awk '/^Z/{_[$1$2]++}END{for (i in _)print i,_[i]}' OFS=\\t fileresulting
Z [740] 1
Z [0] 5
Z [720] 2
---------- Post updated at 05:46 AM ---------- Previous...
1,689
Posted By Scrutinizer
Try: awk '/^Z \[[0-9]+\]/{A[$0]++} END{for(i in...
Try:
awk '/^Z \[[0-9]+\]/{A[$0]++} END{for(i in A) print i " .....> " A[i]}' file

---edit----

More robust version:
awk '{$1=$1} /^Z \[[0-9]+\]/{A[$0]++} END{for(i in A) print i " .....> "...
1,689
Posted By bartus11
Try:egrep -c '^Z \[[0-9]+\]' file
Try:egrep -c '^Z \[[0-9]+\]' file
4,531
Posted By Corona688
I suppose a brutally simple way would just be a...
I suppose a brutally simple way would just be a loop:

tr '[A-Z]' '[a-z]' < inputfile | while read LINE
do
STR=""
set -- $LINE
while [ "$#" -gt 0 ]
do
...
4,531
Posted By wisecracker
Hi sreejithalokkan... Makes much more sense...
Hi sreejithalokkan...

Makes much more sense now... ;o)

I will assume that you will need a a dedicated shell Audio I/O app for platform independence.
So I will suggest SOX...

I have to...
4,531
Posted By wisecracker
(This could be homework.) I am not sure i am...
(This could be homework.)

I am not sure i am understanding you correctly but I assume you want the sounds to be like morse code...

This will generate a single tone.
...
1,248
Posted By guruprasadpr
One way: awk -F'!sil' '/!sil/{print $2}'...
One way:

awk -F'!sil' '/!sil/{print $2}' file

Guru.
1,248
Posted By hanson44
Here's another way: grep -o '!sil .* !sil'...
Here's another way:
grep -o '!sil .* !sil' temp.txt | sed 's/!sil//g'
Showing results 1 to 10 of 10

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