9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to have the user select two files from a numbered list which will eventually be turned into a variable then combined. This is probably something simple and stupid that I am doing.
clear
echo "Please Select the Show interface status file"
select FILE1 in *;
echo "Please Select the... (3 Replies)
Discussion started by: dis0wned
3 Replies
2. Shell Programming and Scripting
Hi All,
Below is the 2 different ouputs of the command "ls -lrt", my question is what exactly "total 0" & "total 8" means here ?
$ ls -rtl
total 0
-rw-r--r-- 1 oracle dba 0 Feb 10 20:16 c
-rw-r--r-- 1 oracle dba 0 Feb 10 20:16 b
-rw-r--r-- 1... (1 Reply)
Discussion started by: kannan84
1 Replies
3. Shell Programming and Scripting
Hi,
I have some hundreds/thousands of files named logX.dat, where X can be any integer, and they are sequential, X ranges between 1 and any number:
log1.dat log2.dat log3.dat log6.dat log10.dat ... log6000.dat
I would like to rename them to
scatter_params_0001.dat... (6 Replies)
Discussion started by: pau
6 Replies
4. Shell Programming and Scripting
Hi All
If i run the following command
nvidia-settings -V -q screens
I get this output
X Screen on sutton:0
sutton:0.0 (Quadro FX 4600)
Is connected to the following display devices:
DELL 2007FP (DFP-0: 0x00010000)
Eizo CG243W (DFP-1:... (1 Reply)
Discussion started by: ab52
1 Replies
5. Shell Programming and Scripting
Hi;
I have an output of a particular command say
$command
fstl:r-x
ajay:r-x
how can i get this in comma separated list,
eg:
fstl:r-x,ajay:r-x
Thnks; (4 Replies)
Discussion started by: ajaypadvi
4 Replies
6. Shell Programming and Scripting
Hello,
I used the following script to conect to cisco router:
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long;
use Opsware::NAS::Connect;
my($host, $port, $user, $pass) = ('localhost','$tc_proxy_telnet_port$','$tc_user_username$','$tc_user_password$');
my $device =... (5 Replies)
Discussion started by: ahmed_zaher
5 Replies
7. Shell Programming and Scripting
Hi All,
How I will read the output of the tail -F command in perl.
I have text file with below contains
file1.txt
1
2
3
4
$running=1;
sub openLog($)
{
(my $log) = @_; (1 Reply)
Discussion started by: pravin27
1 Replies
8. Shell Programming and Scripting
Hi there
could anybody point me in the right direction when it comes to looping through the output of a system command in perl (i.e. df -k) doing a test against each line to see if it matches?
for example if i have a df -k output like this and I wanted to grab the lines that matched "sda" or... (3 Replies)
Discussion started by: rethink
3 Replies
9. UNIX for Dummies Questions & Answers
I would like to add "word -esque" numbered bulletpoints to the output of a grep search, which has multiple hits for the search term
i.e. grep x filename
1) abcd x
2) efgh x
3) ijkl x
I dont have a clue to how to start writing such a script, i cant use SED or AWK so i was maybe thinking... (2 Replies)
Discussion started by: rprules
2 Replies