10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a file, the long listing output by 'ls -l' is
-rw-r--r-- 1 usera agroup 1246 Jul 7 14:44 temp.R
The file is under a Solaris ZFS file system. As a different user (userb), I did
cp temp.R /tmp
ls -l /tmp/temp.R
-rw-r--r-- 1 userb agroup 1246 Nov 16 14:45 /tmp/temp.R
... (14 Replies)
Discussion started by: nugulus
14 Replies
2. Shell Programming and Scripting
This script is giving weird output
#!/bin/bash
NETPATH=(`/bin/traceroute -n 4.2.2.2 | awk '{print $2}'`)
for i in "${NETPATH}"
do
echo $i
done
The output:
to
11.11.11.1
1.1.1.1
99.111.208.2
traceroute_test.sh
traceroute_test.sh (7 Replies)
Discussion started by: thumbs
7 Replies
3. Shell Programming and Scripting
Okay, guys, I've got one:
I've got a script that formats all of the messages in a log file.
It works on a completely verbose method.
I'm trying to write a filter that will search for a bunch of case-insensitive strings, but also, always print the first 2 lines.
Here's the egrep part:
... (4 Replies)
Discussion started by: quirkasaurus
4 Replies
4. Programming
I am new to Linux system programming, and I found the sophisiticated definition of some library function differ a lot with what I learnt in classes.
Here is the question:
what does the suffix of function `chmod' in sys/stat.h mean. The funtion claimation is like following:
extern int... (5 Replies)
Discussion started by: JackCrital2005
5 Replies
5. Shell Programming and Scripting
Good day. I am doing an enq -WA (AIX), to get a list of the print queues, I then compare that to the /etc/hosts file to 'match' the IP address associated with the print queues. What I want to do is to run a traceroute with up to 5 hops, and perform an output to a file with some "specific items".... (0 Replies)
Discussion started by: smurphy_it
0 Replies
6. Shell Programming and Scripting
I am just learning over here unix scripting and the OS in general.
I wrote this script (with some great help from you guys here) when I test at my desktop with cygwin it works fine, but when I take it to work and try it on the Solaris 2 system there I get an error on line 4 syntax error... (4 Replies)
Discussion started by: Fred Goldman
4 Replies
7. Shell Programming and Scripting
Hi,
I am trying to figure out if there is a way to make linux take me back to the previous directory I was working in. For instance, I am in
/home/username/directory1
Then if I cd into /home/username/directory1/temp1/temp2/temp3
I would like to immediately go back to the previous... (2 Replies)
Discussion started by: Legend986
2 Replies
8. Shell Programming and Scripting
hey guys,
i'm having some problems with my understanding of this whole regexp thing.
I'm just exploring here really by trying to do various match & filter & print stuff on the console.
I figured i want to get the IP of an interface. So my idea here was that first i filter to extract only... (4 Replies)
Discussion started by: jad
4 Replies
9. UNIX for Dummies Questions & Answers
I understand the concept of traceroute - can anyone explain the output to me e.g. 39ms 39ms 39ms are these the times for each trip it takes? Assuming each machine is pinged 3 times.
and how does the RTT work? Is this the time it takes from one machine to another because it doesn't look like... (6 Replies)
Discussion started by: justine petrie
6 Replies
10. Shell Programming and Scripting
Hi all. Here's what i want to do:
my_first_file
#!/usr/bin/ksh
# BLA BLA BLA BLA
printf "this is my first file \n"
echo " I understand this far"
printf "the day's over \n"
echo "great"
my_second_file
#!/usr/bin/ksh
# BLA BLA BLA BLA
printf "this is my first file \n"
AN_INSERTED_LINE... (2 Replies)
Discussion started by: penguin-friend
2 Replies