Search Results

Search: Posts Made By: lamagra
23,502
Posted By lamagra
That worked but, I have a little bit of a problem...
That worked but, I have a little bit of a problem now. I have it cutting left and right for one pattern but it messes up the other pattern.

Is there any way to cut for the two different patterns...
23,502
Posted By lamagra
grep -e
Hello all,

I am trying this command:


run something | grep -e [ "TEST"|"TEST2"] | cut -f1 -d " "

it is returning on the grep -e saying that it is an illegal operation/command..


I am...
35,443
Posted By lamagra
You all were right. It was because I was...
You all were right.

It was because I was cding to the different directory which was taken me out of scope for that file.

What I did was created variable that held the path of the command.
...
35,443
Posted By lamagra
You know shell thats a really good idea.. ...
You know shell thats a really good idea..

Sorry all I guess it would have been a little more beneficial if I would have done that the first.


#!/bin/bash

cd /test/me/i/am/a/noob/ie
...
35,443
Posted By lamagra
All, If I do an ls -l both files are in the...
All,

If I do an ls -l both files are in the same directory.

Here is what I do to run my simple.sh

./simple.sh test[Tab Complete]

which gives me
./simple.sh test.txt

if I can tab...
35,443
Posted By lamagra
Simple Bash Read File question
Hello all,

I am trying to write a simple script that will parse through a text/properties file and check a couple of if statements.

Here is what I have so far:

FILENAME=$1
while read line
...
Showing results 1 to 6 of 6

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