Search Results

Search: Posts Made By: sapan123
1,913
Posted By sapan123
Print related query
i Am using the below query and printing the $8 and $9 filed..

find /A/B/C/{1,3,5,7} -name "*.txt" -o -name "*.csv" -o -name "*.TXT" -o -name "*.dat" |xargs ls -ltr |awk '{print $8 ,$9}' >...
3,361
Posted By sapan123
This part will come in A column 2008 ...
This part will come in A column

2008
20:25
2008

the below part will come in column B
/home/ADMIN/om/1.txt
/home/ADMIN/om/hi.txt
/home/ADMIN/owl/1.txt
3,361
Posted By sapan123
2008 /home/ADMIN/om/1.txt 20:25 ...
2008 /home/ADMIN/om/1.txt
20:25 /home/ADMIN/om/hi.txt
2008 /home/ADMIN/owl/1.txt
3,361
Posted By sapan123
2008/home/ADMIN/om/1.txt ...
2008/home/ADMIN/om/1.txt
20:25/home/ADMIN/om/hi.txt
2008/home/ADMIN/owl/1.txt
but i need like
A B C
2008 /home/ADMIN/om/1.txt
20:25 ...
3,361
Posted By sapan123
Sorry.. i didnt get you man.. could you...
Sorry..

i didnt get you man..

could you please help me out again..
thanks in advance..
3,361
Posted By sapan123
Excel related query for the code..need help..
find /A/B/C/{1,3,5,7} -name "*.txt" -o -name "*.csv" -o -name "*.TXT" -o -name "*.dat" |xargs ls -ltr |awk '{print $8 ,$9}' > result.xls

it will give the result that is $8 and &9 in the result...
2,846
Posted By sapan123
let say owl contain 1.txt 2.txt and...
let say owl contain

1.txt
2.txt

and xyz contail
3.doc
4.txt

then result will be like

1.txt
2.txt

3.doc
4.txt

i blank line betwen this..
2,846
Posted By sapan123
many thanks... find /home/ADMIN/{owl,xyz}...
many thanks...

find /home/ADMIN/{owl,xyz} -name '*.txt' -o -name '*.doc' | xargs ls -l | awk '{print $8 , $9 , "\n"}' > hi.txt

if i need all the results from owl , then all the results from...
2,846
Posted By sapan123
thanks for the reply.. my below code working...
thanks for the reply..

my below code working fine..

find /home/ADMIN/owl -name '*.txt' -o -name '*.doc' | xargs ls -l | awk '{print $8 , $9}' > hi.txt

its giving me result inside hi.txt...
2,846
Posted By sapan123
let say my out put is like below.. i am a...
let say my out put is like below..

i am a boy
i am a boy
i am a boy

but i need the reply as

i am a boy

i am a boy

i am a boy

i mean there must be a line between two line in out...
2,846
Posted By sapan123
What syntax is required so that result will start from a new line..
What syntax is required to start the result in a new line
2,620
Posted By sapan123
.. awk -F'/' '{print $NF}' .... i didnt get...
.. awk -F'/' '{print $NF}' ....

i didnt get this...
2,620
Posted By sapan123
thanks danmero..Frank many thanks.... for i...
thanks danmero..Frank many thanks....

for i in `ls {1,3,5,7}/*.{txt,TXT,dat,csv} 2>/dev/null`;do echo ${i#*/} >> results.txt;done...
2,620
Posted By sapan123
or let say... A/B/C/1 2 3 4 5 6 7 8 9 10... ...
or let say...

A/B/C/1 2 3 4 5 6 7 8 9 10...

i mean inside C i have 10 folder..
in 1- a.txt
in 2- b.txt
in 3- c.txt
in 4- d.txt
in 5- e.txt
in 6- f.txt
in 7- g.txt
in 8- h.txt

the...
2,620
Posted By sapan123
plz
i mean let say the path is A/B/C...and inside C...i have 1-10 folder...

i need to find the different file type from different folder and to print those results in single out file..

for i in 1 3...
2,620
Posted By sapan123
thats true..Could you please help me out on...
thats true..Could you please help me out on this...could you plse give me the solution for this...

for i in 1 3 5 7; do
find /A/B/C/${i} -name "*.txt" -o -name "*.csv" -o -name "*.TXT" -o -name...
1,623
Posted By sapan123
can any body help me out on this...
Hi friends..
I am using the below command to search few files from many folders which is under one folder..

i mean let say the path is A/B/C...and inside C...i have 1-10 folder...

the below...
2,620
Posted By sapan123
Can any body give me a solution to this...
Hi friends..
I am using the below command to search few files from many folders which is under one folder..

i mean let say the path is A/B/C...and inside C...i have 1-10 folder...

the below...
1,871
Posted By sapan123
need help urgent...........
Hi friends..
I am using the below command to search few files from many folders which is under one folder..

i mean let say the path is A/B/C...and inside C...i have 1-10 folder...

the below...
3,428
Posted By sapan123
Can u give idea on this...
Can u give idea on this...
3,428
Posted By sapan123
Hi Danmero.. thanks for the reply... will...
Hi Danmero..

thanks for the reply...
will it work if i will give this..

find /A/B/C/{1,3,5,7} -name "*.txt" -o -name "*.csv" -o -name "*.TXT" -o -name "*.dat" |xargs ls -ltr |awk '{print $8...
3,428
Posted By sapan123
thanks for the reply again.. but i need all...
thanks for the reply again..

but i need all these result in a sigle out file....

i mean let say result.txt will be the out file.....

and it should contain the results from 1 3 5 7 etc...
3,428
Posted By sapan123
Friend one more thing... As you mentioned ...
Friend one more thing...

As you mentioned
for i in 1 3 5 7; do
find /A/B/C/${i} -name "*.txt" -o -name "*.csv" -o -name "*.TXT" -o -name "*.dat" |xargs ls -ltr |awk '{print $8 ,$9}' > ${i}.txt...
3,428
Posted By sapan123
Thanks alot man.. can you give me some more...
Thanks alot man..

can you give me some more idea....syntax
1,293
Posted By sapan123
Help with "find" needed
Hi friends..
I am using the below command to search few files from many folders which is under one folder..

i mean let say the path is A/B/C...and inside C...i have 1-10 folder...

the below...
Showing results 1 to 25 of 39

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