Hi,
Here is an example of a problem I have:
File2: contain the following lines:
a^ aaa^aa aa^~
b^ bbb^bb bb^~
c^ ccc^cc cc^~
d^ dddd^dd dd^~
File1: contain the following lines:
b^ bbb^bb bb^~
c^ ccc^cc cc^~
I get File2 as input and I want to do as following:
for each line in... (3 Replies)
I'm have some trouble, I'm doing some unix stuff for fun and I can't get something to work
I have a getquote.sh script:
wget "http://finance.yahoo.com/q?s=$1" -o /dev/null -O quote
echo `echo $1; egrep "Last Trade:" quote | cut -d ">" -f 3 | cut -d "<" -f 1`
to get the current trading price... (1 Reply)
Hi Can anybody please explain how the below script works and if there is any problems with it? The script is part of an archival process but it keeps crashing out.
#!/sbin/sh -
clear
purgelist="/var/opt/moto/live/scripts/old_messages_purge_list"
for i in `cat $purgelist`
do
... (2 Replies)
i have two problems with my phone book script the first i want to only allow a valid name if it has letters and spaces not a number in the name. so "joe smith" is ok "joe smith1" is not ok.
the second problem is how can i cut a name out of a txt file i have this as my test txt file
joe blogs... (3 Replies)
Hi Guys,
total newbie here, Ive read through some of the threads about cron and scripts not working and have still drawn a blank as to why mine isnt working correctly.
I have a script that runs the ausearch with a set of criteria i have setup, the only access i have to the system is via... (5 Replies)
Ok, don't ask me why, but all calls to perl must be called by a shell script. Its really not ideal, but its what I have to work with.
Calling it isnt the issue, its passing in the arguments.
I have about 1000 perl scripts to call by a shell script. Right now, I'm executing the shell script... (3 Replies)
Hello,
I'm having trouble with formatting some text via the terminal. I can get it perfectly formatted, but when I try and copy paste the text from the output file it loses it's formatting. Very frustrating!
Basically I have 7 files (data data2 data3 data4 data5 data6 data7) containing a... (13 Replies)
Hi, I'm a complete novice to Linux and UNIX. I'm having trouble getting a script to execute properly. I did a similar script earlier in the semester with no problems. For whatever reason I can't get this one to work. Any help would be greatly appreciated as I'm completely lost and frustrated at... (5 Replies)
Hi,
I'm newbie in the shell script world and i want to solve some problems I am experiencing.
My main goal is to create a ksh script to use 2 text files as input to execute a local shell script(create user commands in the criar.users.aix file) through a ssh connection in which the list of... (1 Reply)
I'm trying to copy script output and use it in this same script as a variable, and call the variable when script is compiled.
The script is below.
#!/bin/bash
output=$(script)
while read line; do
if ];
then
grep "$line" logfile.txt
# Create text file
echo "From: IT ... (4 Replies)