Search Results

Search: Posts Made By: lramirev
2,107
Posted By lramirev
Unquoting redex worked
Thank you. I just noticed your reply and yes, it needs to be unquoted.

# [[ "1420088400" =~ ^[0-9]+$ ]] && echo true || echo false
true
# [[ "1 day ago" =~ ^[0-9]+$ ]] && echo true || echo false...
2,107
Posted By lramirev
Bash regex evaluation not workin
I'm building a script that may received start and end date as parameters. I whant to make it as flexible as possible so I'm accepting epoch and date in a way that "date --date=" command may accept....
6,460
Posted By lramirev
Every day you learn something new. I would like...
Every day you learn something new. I would like to write a better command with the suggestion from jpradley. thanks for you suggestion. Using xargs is good you would only need to redirect standar...
6,460
Posted By lramirev
Deleting empty directories using find
Hello, I'm submitting this thread, because I was looking a way to delete empty directories using find and I found a thread from 2007 that helped me. I have worked from that threat, but I found that...
3,633
Posted By lramirev
You may build using shell variable too, under...
You may build using shell variable too, under "bash" or "ksh" they work the same.

X=Test_Test_EAR_1234.ear
XExt=${X#*.}
XNoExt=${X%.*}
XNewBody=${XNoExt%_*}
XNew=${XNewBody}.${XExt}
echo $X...
3,615
Posted By lramirev
You can use "tr" too. echo "$abc" | tr -d...
You can use "tr" too.
echo "$abc" | tr -d "[%]"
5,981
Posted By lramirev
Bhanu72: I when to my server and tryed the...
Bhanu72:
I when to my server and tryed the script and it did worked. But when ran into a diffrent server "ls -e" is not supported. I look into diffrence on SunOS and notice that the server not...
9,251
Posted By lramirev
:eek: I must read more detail next time. I was...
:eek: I must read more detail next time. I was missing the /etc/file. I created it as suggested and now FTP is working. I'm sorry if I did not read all documentation closely. I was missing third rule...
9,251
Posted By lramirev
Maybe I had to add the info before, but I'm using...
Maybe I had to add the info before, but I'm using Solaris 10 and I don't have /etc/shells. I have look into the man pages fo FTPD and SSHD and they don't relate to /etc/shells. Do you have any other...
5,981
Posted By lramirev
First you would need your file list sorted by...
First you would need your file list sorted by file size
#!/bin/ksh
SearchPath=/whereever0
LowerSizeFilePath=/whereever1
UpperSizeFilePath=/whereever2
#
cd $SearchPath
ls -e | egrep -v "/$|->"...
9,251
Posted By lramirev
ksh script as a login shell return "no controlling terminal"
I have created a ksh shell script and used it as a login shell for a user.

</etc/passwd>
lramirev:x:111:200:Luis:/export/home/menush:/usr/local/menush/menush

My shell script is like this:...
Showing results 1 to 11 of 11

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