10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all, the value in the following file is just an example. It could be a different value/network addresses.
Here is my example of initial output in a file name net.txt
Initial Output, net.txt
The goal is to produce the following format which is to convert from CIDR to Netmask... (6 Replies)
Discussion started by: type8code0
6 Replies
2. Shell Programming and Scripting
Hi,
I have text file like the following:
Start
a
b
121
c
d
End
Start
a
31
e
f
End
Start
p
o
i
k (5 Replies)
Discussion started by: ysrini
5 Replies
3. Shell Programming and Scripting
I'm writing a script for remote access. I wanted to put all my server's name on a file (server.txt) per line. and then the user will input the serversname and do ssh to it.
sample.
servers.txt
server1
server2
server3
user will be asked to put what server he would like to ssh... (2 Replies)
Discussion started by: lhareigh890
2 Replies
4. Shell Programming and Scripting
Hi ,
I want to read below output, lets called it output1.txt and each string for every line will be declare as a variables.
This is the input file
196 server_a server_unix_2 FW
196 server_b server_win_1 CD
196 server_c server_win_2 CD
196 server_bd ... (2 Replies)
Discussion started by: sQew
2 Replies
5. Shell Programming and Scripting
Hi,
I'm using bash and brand new to shell script. I would like to do the following.
I have a string which is "UPDATE=1.0". I would like to read the value "1.0" alone in a variable. i.e the things afer "=" How do I do that?
Thanks, (1 Reply)
Discussion started by: scriptfriend
1 Replies
6. Shell Programming and Scripting
Hello All,
I have a sequence value like
2
2a
3
3a
when I execute this command ls -1v *.sql | cat -n | grep 2 | awk ' { print $1 } '
it greps 2 and 3 which is 2 and 2a. I want the output to only display 3 ie, 2a.
$ ls -1v *.sql
1.taba.sql
2.tab2.sql
2a.ta.sql
3.view.sql
3a.se.sql... (6 Replies)
Discussion started by: r_bastawala
6 Replies
7. Shell Programming and Scripting
Hello,
I need to read from a file consisting of only one integer and enter that number into variable.can anyone help?
the script is written in cshell.
thanks. (4 Replies)
Discussion started by: offerbukra
4 Replies
8. Shell Programming and Scripting
I have a file that contains the something like this
a=15
b=21.5
c=544
and so on
the question is how could I find the line that contains the value of c and store its value on a variable in bash shell?, Thanks in advanced (4 Replies)
Discussion started by: josegr
4 Replies
9. UNIX for Dummies Questions & Answers
HI
In my script, i am reading the input from the user and want to find the length of the string.
The input may contain leading spaces. Right now, when leading spaces are there, they are not counted.
Kindly help me
My script is like below. I am using the ksh.
#!/usr/bin/ksh
echo... (2 Replies)
Discussion started by: dayamatrix
2 Replies
10. Shell Programming and Scripting
Hello All,
Plz help me with:
I have a csv file with data separated by ',' and optionally enclosed by "". I want to check each of these values to see if they exceed the specified string length, and if they do I want to cut just that value to the max length allowed and keep the csv format as it... (9 Replies)
Discussion started by: ozzy80
9 Replies