Search Results

Search: Posts Made By: macastor
Forum: SCO 07-19-2016
8,243
Posted By macastor
Not able to telnet to server
Out of the blue for some odd reason I am no longer able to telnet to one of my SCO Unix servers. I can ping, ftp and do a traceroute to it, just cant telnet. When I attempt to telnet to it, I just...
1,349
Posted By macastor
Ahhh! Thanks Scrutinizer! :b:
Ahhh! Thanks Scrutinizer! :b:
1,349
Posted By macastor
sed command
Hi all!
Need a little help on a sed command that I've used in the past, but I'd like to change it up a bit. Here is my script


SearchVal = "RED"
ReplaceVal = "BLUE"
wrkFile = /u/tmp/file1...
3,537
Posted By macastor
Gotcha! I was planning on changing the...
Gotcha! I was planning on changing the permissions to the unix script, just thought maybe I'd also have the location of this file defined as a variable in a private location. I'll try defining it in...
3,537
Posted By macastor
Trying to access a file that I would not want any...
Trying to access a file that I would not want any other user to know where this file resides. Hope I make sense.... :confused: Basically I created a unix script to manipulate data in a text file that...
3,537
Posted By macastor
Define variables with UNIX script
oopps! I Meant "Define Variables within a UNIX Script"


What would be the best way to define a variable in a unix shell script so anyone who views this script doesn't know what value is assigned...
3,292
Posted By macastor
Ok thanks again CarloM for all your help. :D Have...
Ok thanks again CarloM for all your help. :D Have a good day.
3,292
Posted By macastor
Thank you so much CarloM! I was wondering though...
Thank you so much CarloM! I was wondering though what is it in the printf command that pads the data with space? I was wondering if say I wanted to pad with zero's instead of spaces. :)
3,292
Posted By macastor
Thanks again CarloM, but now lets say I change...
Thanks again CarloM, but now lets say I change "PHOENIX" to "LAS VEGAS" it separates "LAS" as a 20 characters and "VEGAS" as the next 20 characters. Sorry to keep making this harder than what it...
3,292
Posted By macastor
Awesome! Thanks CarloM. Small problem...
Awesome! Thanks CarloM.
Small problem though.... How would I pad data I replaced with spaces. Lest say I would like to search for name "CLARK KENT" and replace the city "LAS VAGAS" with "DEMING"....
3,292
Posted By macastor
Hmmm? So I tested the sed command and didn't get...
Hmmm? So I tested the sed command and didn't get any results. Am I doing something wrong??
3,292
Posted By macastor
Search and Replace by record position
Hi All,
I have a file that I would like to search for data and replace other data by record position number:

Example search..
search for "CLARK KENT" and replace Amt data "000025" with...
1,741
Posted By macastor
Thanks guys!:b:
Thanks guys!:b:
1,741
Posted By macastor
grep command
Not sure what I'm doing wrong here???? Trying to execute a grep command within a unix script and keep getting an error. Here is an example of the process I'm trying to execute

a="\"JERRY...
1,217
Posted By macastor
Yes I am somewhat familiar with this command, but...
Yes I am somewhat familiar with this command, but the data that I am replacing can't shift right or left. This file must stay as a fixed format to be read by other processes. So if i search for data...
1,217
Posted By macastor
Search & Replacing text within a file
Hi all!
I'm a newbie and I'm writing a script which will ask a user for data to search. I will then search for this data using grep and displaying this data back to the screen for the user to see....
1,634
Posted By macastor
Yeah thanks Corona688 going to use with the "test...
Yeah thanks Corona688 going to use with the "test -e" command instead. :) thanks again everyone for the help.
1,634
Posted By macastor
I figured it out... I'm going to just redirect...
I figured it out... I'm going to just redirect the error message from the screen to an error file etc.

ls /etc/filename 2> /dev/null |wc -l

Thanks for the help Yazu and verdepollo!
1,634
Posted By macastor
search for a file
Sorry for the dumb question. :confused: looking for a way to search for a file and just return me a value of say like 0 or 1. When I use the ls or find command and file name does not exists, the...
2,977
Posted By macastor
Awesome!!! Thank you very much Shell_Life, that...
Awesome!!! Thank you very much Shell_Life, that worked like a champ. :b:
2,977
Posted By macastor
Awesome! Thanks Shell_Life, one thing though as I...
Awesome! Thanks Shell_Life, one thing though as I inserted these 4 characters my data shifted to the right 4 spaces. Anyway to do this without shifting the data over??
2,977
Posted By macastor
Reading a file and replacing char by position
Hi
I'm looking for a way to read a text file that may contain 1000 records or more and each of these records has 460 characters. I need to read each record, and add a string of characters starting...
Showing results 1 to 22 of 22

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