Search Results

Search: Posts Made By: above8k
9,643
Posted By above8k
Thanks for the reply. I found this in my old...
Thanks for the reply.

I found this in my old book as a subsitue for ls command.

#!/bin/bash
#
for f in * ; do echo $f ; done

But here, I want to display only files when $ ./do_ls.sh files...
9,643
Posted By above8k
BASH SCRIPT of LS command
I need help in writing a BASH SCRIPT of ls command.

for example:
$ ./do_ls.sh files
f1.txt
f2.jpeg
f3.doc

$ ./do_ls.sh dirs
folder1
folder2
folder3

My attempt:
#!/bin/bash
#
if...
Showing results 1 to 2 of 2

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