Search Results

Search: Posts Made By: philmetz
4,181
Posted By philmetz
so what is -a?
so what is -a?
4,181
Posted By philmetz
So for what you said the cut -c4 means select...
So for what you said the cut -c4 means select character 4 from the line abobe?
4,181
Posted By philmetz
I want to use this command: ls -l some_file ...
I want to use this command:
ls -l some_file

in my shell script

But I want to then determine if the file has execute permission for the file owner.

How could i do that?
Is there a way to...
4,181
Posted By philmetz
Shell nested ifs
Hi can someone tell me whats wrong with the following:


#!/bin/sh
file1=$1
file2=$2
if [ $# = 2 && -e $file1]
then
if [ -e $file1 ]
then
echo "File 1 is" $file1
...
Showing results 1 to 4 of 4

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