Search Results

Search: Posts Made By: darkhider
3,794
Posted By darkhider
I'm still trying to figure out on what I'm doing...
I'm still trying to figure out on what I'm doing wrong. Any help is greatly appreciated.
3,794
Posted By darkhider
moving cursor up and other things
Hi guys, this is how my script looks like so far:

height=$(($(tput lines) -2))

echo 'Owner Group Other Filename'
echo '----- ----- ----- --------'
echo
cd $directory...
2,040
Posted By darkhider
spacing problem
Hi guys, I have this little code:

for directory in / $(echo $path | tr '/' ' ' )
do
cd $directory
echo "$(ls -ld | cut -c2-10 | sed 's/.\{3\}/& /' | sed 's/.\{7\}/& /' |
sed 's/.\{1\}/& /g')"...
1,939
Posted By darkhider
Need to know if theres "and if" like command
Hi guys, I need to know if there is a "and if" statement. Because I need to compare the 1st variable and 2nd variable at the same time and im not sure how to do it.

I tried something like this:
...
10,055
Posted By darkhider
Okay, I have another question. This script that i...
Okay, I have another question. This script that i am trying to make is about the find command. The 1st variable is the size and the 2nd variable is the directory.

So for example the user inputs...
10,055
Posted By darkhider
I don't fully understand what the above sample...
I don't fully understand what the above sample script you have provided but I have modified mine so it looks like this but it has some errors.

I would appreciate if someone can fix it for me.
...
10,055
Posted By darkhider
First argument is numeric or not
Hi everyone, I want my script to check if the first argument has only numbers or not. Im not sure what im doing wrong.

This is how it looks like:

if [ $1 = ( grep "[^0-9]*") ]
then
...
Showing results 1 to 7 of 7

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