Search Results

Search: Posts Made By: pc03
1,872
Posted By pc03
Receive only absolute path
I have a script that can only receive absolute path and if it is relative i have to send error message thats a realtive path.
how to do this?

/home/user/file.txt yes
/user/file.txt wrong...
5,344
Posted By pc03
I tried everything you all said but nothing works...
I tried everything you all said but nothing works

---------- Post updated at 07:38 PM ---------- Previous update was at 05:21 PM ----------

Yes ! finally i find the solution
prueba=`echo...
5,344
Posted By pc03
with tr " " "\n" i get the same result ...
with tr " " "\n" i get the same result
/home/user /home/user/dir1
5,344
Posted By pc03
replace space for enter
i have to print in a html file directories like this
/home/user
/home/user/dir
but the problem is that when i us this comand
listado=`find $direcreal -type f -print`

i get this
/home/user...
1,060
Posted By pc03
thanks for answering so fast, but the problem is...
thanks for answering so fast, but the problem is that this came out
usr
usr
usr
usr
usr

and i want this
user/file.txt
user/dir1/file2.txt
like this with just the subdirectories with files...
1,060
Posted By pc03
find files
if i do find /home -type f -print
i get this
/home/user/file.txt
/home/user/dir1/file2.txt

i want to get this
user/file.txt
user/dir1/file2.txt
Showing results 1 to 6 of 6

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