Search Results

Search: Posts Made By: benitdhotekar
3,787
Posted By benitdhotekar
Hi Panyam, The output expected is as...
Hi Panyam,

The output expected is as follows:

D:/Test/Red_Apple/Mumbai/Red_Apple/Apple.txt

That means I want to replace the text starting from "C:\" till first occurrence of "\Apple\" by...
3,787
Posted By benitdhotekar
Thanks Franklin52 but I already knew this trick. ...
Thanks Franklin52 but I already knew this trick.

Please read query carefully. What I want is to capture first occurrence of "Apple" after "C:" in the line. between C:\ and \Apple there can be...
3,787
Posted By benitdhotekar
capture till first occurrence.
Hi,

In my file I have following to lines
-------------------------------------------
C:/India/Apple/Mumbai/Red_Apple/Apple.txt

cd C:/India/Apple && run...
5
awk
1,905
Posted By benitdhotekar
solution
df -g | grep '^/dev' | awk 'BEGIN { getline }{ if($4>80) {print $7, "\tFILESYSTEM MORE THAN 80%!!"}}'
14,587
Posted By benitdhotekar
solution
hey this is the solution

for i in $*; do test $i ;done
print $i
4,111
Posted By benitdhotekar
what mode are u using in ftp? active or passive? ...
what mode are u using in ftp? active or passive?

try passive mode , you wont get any error that you have mentioned.
1,534
Posted By benitdhotekar
awk help
Hi Holyearth,

Please put the date in file.txt. Then use the following cmd.

awk '{print $1}' file.txt

and you will get the output. You can convert it to upper and lower case as per your...
7,684
Posted By benitdhotekar
Solution
Hi,

You can build simple solution in perl for this.
Please let me know if you need source code for it.

Thanks
105,986
Posted By benitdhotekar
solution
hey you need to use the field separator if is doesnt work in normal way.

eg.

file1:
a, b, c, d, 1, 2, man, fruit

here use:

cat file1 | awk 'BEGIN{FS=","};{print NF}'

and you will get...
Showing results 1 to 9 of 9

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