Search Results

Search: Posts Made By: RoronoaZoro
1,632
Posted By RoronoaZoro
will this work? if [ -e $(ls -tr...
will this work?

if [ -e $(ls -tr /folder/ABC* | tail -1) ]
then
echo 'File found'
fi

Also quick question why when I do this

FILE = 'ls -ltr /folder/ABC* | tail -n 1'

I get an error...
1,632
Posted By RoronoaZoro
The last one modification time with the name ABC*...
The last one modification time with the name ABC*

I'm going to do more thing after that but for now I just want to see how to check if a file exist and do echos.

I'm new at this that is why I'm...
1,632
Posted By RoronoaZoro
Hello, This is not a homework. I'm just...
Hello,
This is not a homework. I'm just learning UNIX and that is why I posted the question here.
I'm using the sh shell
I'm looking for the last file that matches the first 3 letters ABC. There...
1,632
Posted By RoronoaZoro
Need to check last file with a starting name
Hello,

I need help on finding with an if statement or with a command a file that exist in lets suppose /folder with the name ABC* but i need to get the last file generated with that name and fi...
Showing results 1 to 4 of 4

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