I have a variable called result that get the the below value i.e two lines assigned.
Below is my code
I am expecting the Value of x to be printed as
But, the value of x that it is currently populating is ./logs/mymac/myserver.log:####<Jun and likewise it gets all values seperate by space when I wanted the value of x seperate by line.
Can you suggest what should be done ?
---------- Post updated at 10:54 AM ---------- Previous update was at 09:50 AM ----------
Please consider it resolved !! changed $x TO "$x"
Last edited by rbatte1; 06-08-2015 at 01:12 PM..
Reason: extra icodes
hi,
how would i go about making a loop which gets each line from a single text file, set it to a variable and then print it to screen?
thanks
eg:
#!/bin/sh
FILE="somefile.txt"
text_line=""
what kind of loop would use here? (18 Replies)
Hi all
Sorry for the basic question, but i am writing a shell script to get around a slightly flaky binary that ships with one of our servers. This particular utility randomly generates the correct information and could work first time or may work on the 12th or 100th attempt etc !.... (4 Replies)
I'm improving the way an existing script handles arrays, but the results aren't what I had in mind:
e="Too many consecutive errors... System is probably unstable!"
e="Cancelable Timer Wait Failed!"
for errcd in ${e}
do
echo ${errcd}
done
The for loop interprets the spaces... (2 Replies)
I am struggling with the for loop. I have a file name heros.txt and I would like to go through a list in file where.txt and see if I can find the name from where inside heros.
One of the problems that I am having is I dont understand how to setup the for loop to find the list to search.:wall:
... (6 Replies)
Hi,
I'm trying to put together a small script that will read a txt file that contains a list of two columns. Each column is the name of a folder..
e.g.
AIX Server1
AIX Server2
AIX Server3
$ for i in `cat /opt/apacheprod/scripts/input/copy_list.txt`
do
PLATFORMVAR=`awk ' { print $1 } '... (7 Replies)
I have two files. In file one, there are many columns, but only two of interest to me. Column 1 contains a list of individuals, defined by an ID number. Column 10 contains the diagnosis that each individual has (I am a physician). All together, there are 3000 lines in this file, one line per... (2 Replies)
Hi,
I have a requirement where I have to check for 10 files in Unix location. If all of the files present in that directory then i have execute another process.
can you help me resolving this issue.
sample
location
/home/usr
abc.txt
cde.txt
aaaa.txt
lll.txt
ooo.txt
if all the... (3 Replies)
Hi,
I have code like below
disk_list=$(ls /root/file1)
for disk in $disk_list
do
pvcreate $i
done
I know what pvcreate command does, but I do not understand what this $i do here. can someone please explain. (2 Replies)
Discussion started by: stew
2 Replies
LEARN ABOUT DEBIAN
mucous
MUCOUS(1) Museek Daemon Plus MUCOUS(1)NAME
Mucous - Python / Curses client for museek
SYNOPSIS
mucous [-c <filename>] [--config <filename>] [-l <directory>] [--log <directory>] [-v] [--version] [-h] [--help]
DESCRIPTION
Mucous provides a interface for the Museek Daemon for chatting, transferring files, managing users and browsing shares on the Soulseek P2P
network and Soulfind Servers.
You will need a configured museekd(1).
OPTIONS
Mucous accepts the following options:
-c <filename>, --config <filename>
Use a different config file.
-l <directory>, --log <directory>
Use a different chat log directory.
-v, --version
Display Version and exit.
-h, --help
Display Help and exit.
EXAMPLE
To run this program the standard way type:
mucous
Alternativly you use a different config file with:
mucous --config config
Or a different chat logging directory with:
mucous --log logdir
ENVIRONMENTAL VARIABLES
TERM Specifies the type of Terminal; changes the way mucous displays color.
For XTerm: xterm-color
For aterm or rxvt: rxvt
For urxvt: rxvt-unicode
FILES
~/.mucous/config
The default location for the mucous config file.
~/.mucous/logs/
The default directory for chat logs.
~/.mucous/logs/room/
The directory where chat room logs are stored.
~/.mucous/logs/private/
The directory where private chat logs are stored.
~/.mucous/$USER.image
The file where a user's userinfo image is saved.
AUTHORS
daelstorm <daelstorm@gmail.com>
SEE ALSO mulog(1)murmur(1)muscan(1)muscand(1)museekcontrol(1)museekd(1)museeq(1)musetup(1)musetup-gtk(1)daelstorm Release 0.8.0 MUCOUS(1)