I have a variable from a txt file, can i create more variables from the same txt file?
Code:
diffs.txt
device for 0117bd1: lpd://172.25.29.60:515
device for 2001bl7: socket://172.25.44.188:9100
device for 2201bl7: socket://172.25.11.170:9100
device for 5001bl1: lpd://172.25.11.203:515
I have a variable which is not being populated with the contents of a text file, and I'm wondering if anyone happens to know how to do this for a sh type script?
#!/bin/sh
set alertperson = cat /export/home/bdodym/alert.person
if
then
cat /export/home/bdodym/callout6.msg |... (6 Replies)
Hi,
I need to place a number located in a text file in a variable so I can perform if/then comparison. How would I go about doing this? Using A=awk '{print $2}' maintenance_date.tmp does not seem to work.
Thanks (1 Reply)
Hi Gurus,
I am new to unix.I have a requirement as below
I have text file like a.txt which contains
a.txt
hi hello
process update
status
Ok to Proceed no issues good
data arrangement
My requirement here is i need to read the file and check for the words
"OK to Proceed" and if... (2 Replies)
Hi
I have a text file (mytext.txt), the content of which is as following:
My name is <@MY_NAME@> and my age is <@MY_AGE@> .
Now i have another property file (myprops) which is as following:
MY_NAME=abcdefgh
MY_AGE=000000
I was wondering, how can i replace the tags of mytext.txt, with its... (1 Reply)
I have a txt file
output.txt
Freq = 1900
L = 159I want to assign the values to a variable so that i can further use it in some other script.
like
F=1900
Len=159
etc
i tried doing something with awk but dosent work
F=$(awk 'BEGIN {}/Freq/ {split ($2,a);depth=a};printf "%d\t,... (2 Replies)
Hi,
I'm making a script that automaticaly set file size and path in xml file.
I tried with :
sed -i 's/BOOTPATH/TEST/g' file.xml
it works fine
but if I use a viriable :
sed -i 's/BOOTPATH/$bootpathf/g' file.xml
with this one, no change are made.
I don't understand why. If a make a ... (13 Replies)
Hi Guys,
I have one text file ABC.txt...It have 3 lines
List=/home/klk/dir/ABC.txt
Leajnk123
KJUHIO1234
IJOKIJ7676
I want use as different variable of each line.Just like
X=firstline
Y=Secound Line
Z=Third Line (4 Replies)
i have a text file consists of different file names like:
line 1: lib/libIMb.so message broker file
line 2: lil/imbdfg.lil message broker file
i need to extract libIMb.so and imbdfg.lil files from those lines and save them in a variable. so that i can search for... (9 Replies)
Hey guys,
I need to write a script that will add a specific text at the end of a specific line (of a text file). but the line is a variable
this is my text file :
device_2 ansible_ssh_host=127.0.0.1 ansible_ssh_port=30000 ansible_ssh_user='root'
device_2 ansible_ssh_host=127.0.0.1... (1 Reply)
I have a text file that has many lines, and for each line I need to extract different sections of text, then write several variables from the data.
I can split out the various sections by selecting their position on each line as the column sizes will never vary.
A sample of my text file is below... (2 Replies)
Discussion started by: kcpoole
2 Replies
LEARN ABOUT DEBIAN
unify
UNIFY(1) User Commands UNIFY(1)NAME
unify - manual page for unify 1.1.2
SYNOPSIS
unify [OPTION]... [FILE]
DESCRIPTION
unify - Transforms context diffs into unidiffs, or vice-versa.
-c, --context-diffs
force output to context diffs
-e, --echo-comments
echo comments to standard error
-o, --old-diffs
output old-style diffs, no matter what
-p, --patch-format
generate patch format
-P same as -p
-s, --strip-comments
strip comment lines
-u, --unidiffs
force output to unidiffs
-U same as -p and -u
-=, --use-equals
replace spaces by equal signs in unidiffs
--help display this help then exit
--version
display program version then exit
If FILE is not specified, read standard input.
AUTHOR
Written by Wayne Davison <davison@borland.com>.
REPORTING BUGS
Report bugs to <wdiff-bugs@gnu.org>.
COPYRIGHT
Copyright (C) 1994, 1997 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
The full documentation for unify is maintained as a Texinfo manual. If the info and unify programs are properly installed at your site,
the command
info unify
should give you access to the complete manual.
unify 1.1.2 May 2012 UNIFY(1)