10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello:
I have the following HTML table:
<table>
<thead>
<tr>
<th>Code</th>
<th>Percentage</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>30%</td>
</tr>
<tr>
<td>2</td>
... (3 Replies)
Discussion started by: Cacializ
3 Replies
2. Shell Programming and Scripting
In a nutshell, I want $USER to reflect my user ID in a script run with sudo. I'm working with OSX in case that makes a difference.
If I 'sudo echo $USER', I get my user ID. But if I 'sudo myscript.sh' and myscript.sh has a line to echo $USER, I get 'root' I'm hoping there's a switch I can add... (1 Reply)
Discussion started by: jnojr
1 Replies
3. Shell Programming and Scripting
Below is the issue I am having.
I have a few variables which have certain values in them like
var1=23
var2=46
var3=78 etc...
I want to save these values with the help of a for loop in a single variable so that I can use it later,beacuse a few lines down the script, some of these... (3 Replies)
Discussion started by: Elizabeth H
3 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
I'm trying to unzip a file and rename it to another while preserving the original timestamp:
$ cat file.dat.gz | gzip -d > newfile.dat
My goal is to assign the file.dat.gz timestamp to newfile.dat.
I cannot use gunzip, due to various checks done with wget. Basically, I have to... (1 Reply)
Discussion started by: TECK
1 Replies
5. HP-UX
I'm trying to get a number of old disks on HP-UX 10.2 copied over to a new Debian machine which has a NAS on it.
The HP does not have rsync, but does have scp. Scp unfortunately does not always preserve permissions, and does not save links which were on the disk.
Apparently rsync has a flag... (2 Replies)
Discussion started by: PasadenaDave
2 Replies
6. Debian
I'm trying to get a number of old disks on HP-UX 10.2 copied over to a new Debian machine which has a NAS on it.
The HP does not have rsync, but does have scp. Scp unfortunately does not always preserve permissions, and does not save links which were on the disk.
Apparently rsync has a flag... (3 Replies)
Discussion started by: PasadenaDave
3 Replies
7. Shell Programming and Scripting
I obviously haven't learned my lesson with shell and whitespace.
find /path/to/some/where/ -name "*.pdf" | awk '{print $5}'| uniq -d
results:
some Corporation
other Corporate junk
firmx
Works fine from cmdline but the whitespace turns into another FS in a for loop.
for... (7 Replies)
Discussion started by: s_becker
7 Replies
8. SCO
I am a 10 years windows person with basic unix training (very basic).
I have a sco server where it originally had 3 physical drives. Drive 0 had to be replaced so I did that but because I am really new to Unix I was afraid to detroy the data on DRIVE 1 and 2, so I took them out when I loaded the... (3 Replies)
Discussion started by: mhenry
3 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I am caught up in a problem .... tried all possible ways i knew .. but ended up in big zero ... ;-(
I have a file as below ..
$ cat siv.txt
1234567890BF00522000095ibsadministrator@ae.ge.com ibsadministrator@ae.ge.com
Note the spaces in between .... I am... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies
10. Filesystems, Disks and Memory
I'm trying to make a backup of a directory tree on Solaris 8. I'm doing this with my own ID, not root. The problem I am running into is when I extract the archive, all files are owned by me and the group is my default group. The man page lists this as the default behavior when executed by a... (1 Reply)
Discussion started by: bergerj3
1 Replies