Search Results

Search: Posts Made By: rockytriton
24,624
Posted By rockytriton
nice, I didn't know that worked on a regular...
nice, I didn't know that worked on a regular expression.
24,624
Posted By rockytriton
if you are using gawk, you can set IGNORECASE=1...
if you are using gawk, you can set IGNORECASE=1 first. Other than that I would say do a google search, there are some ways to do it, but it's not as easy as passing -i to grep.
3,073
Posted By rockytriton
try changing -eq to == I think you need a...
try changing -eq to ==

I think you need a number of -eq, not text.
7,427
Posted By rockytriton
the script/program doesn't have access to the...
the script/program doesn't have access to the name of the file you are redirecting its output to. I suppose you can pass the file as a parameter to the script and then redirect all output to the...
10,196
Posted By rockytriton
maybe what you want is something more like: ...
maybe what you want is something more like:


#!/bin/sh

# Get the files
FILES=`ls -1`

for FILE in $FILES
do
# Get the position of the .
INDEX=`expr index "$FILE" .`

# need...
2,724
Posted By rockytriton
well, that probably made a lot of things unable...
well, that probably made a lot of things unable to execute. For now I'd say to do a chmod -R 777 /, then restart and implement better security. If the linux box is on the internet, I'd suggest just...
15,803
Posted By rockytriton
Ok thanks, I tested the system on AIX and on...
Ok thanks, I tested the system on AIX and on redhat, both using bourne shell.

-- Rocky
4,014
Posted By rockytriton
Maybe there's a better way, but this should work:...
Maybe there's a better way, but this should work:

awk '{print $2}' testfile | grep "^/aa/bb" | grep "_\$data.log$"

If testfile is your file with that data.
15,803
Posted By rockytriton
Shell Scripting Tutorial
Hi everyone, I created a nice little shell scripting tutorial. I don't know if I'm allowed to post it here or not, but if so, here's the link:

http://www.dreamsyssoft.com/shell_prog.jsp

If...
Showing results 1 to 9 of 9

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