10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Unix forum.
I have the following requirement to add a sequence value to each record in a file but only if it meets certain conditions. Field value in pos. 1 and 2 must be '0B' or 'OA' else leave as is. Sequence value must be preserved for each OB and OA pair.
Data Before:
123
456... (5 Replies)
Discussion started by: pchang
5 Replies
2. Shell Programming and Scripting
Hi, (I am not too good in command-lines).
I am running a bash script and at some point my loop starts to run super quickly. Then, the steps after do not get processed and there is no further outpout generated. I tried with the sleep 20s option, as I thought some steps would get overlapped, but... (22 Replies)
Discussion started by: tremblayemilie9
22 Replies
3. Shell Programming and Scripting
Hi,
I am completely new to shell scripting. Basically I am wanting to create a simple while loop script to check if a network connection is available from 'netstat -a' and if its present then output a character to the serial port. I think i am nearly there.. but need some assistance.. this is... (9 Replies)
Discussion started by: zippyzip
9 Replies
4. Solaris
Hi,
Thanks (10 Replies)
Discussion started by: rocky1954
10 Replies
5. BSD
Hi all,
I currently run an OpenSolaris (b134) server at home for share media between a few computers (all Macs at the moment). I use ZFS to mirror a couple of disks and have a couple of SMF manifests.
My background is as a user of OS X and as a user of (Open)Solaris with formal training in... (7 Replies)
Discussion started by: forquare
7 Replies
6. Programming
Hi,
I have an output file which has more than 1,000,000,000 lines. I am accessing this file in another C++ program. Now while accessing the output file using cin, I want to jump, say, to the 5,000,000th line directly and start accessing data from there. Is this possible? Could someone please... (4 Replies)
Discussion started by: mugga
4 Replies
7. Shell Programming and Scripting
Hi,
We have a requirement to find the set of filenames from the group of files in a specified folder based on
(i) version number
(ii) sequence number
such that, for any given sequence number in a day only the latest version filenames have to indentified.
Below is the format of... (4 Replies)
Discussion started by: Deepakbabu
4 Replies
8. Shell Programming and Scripting
hi all,
Ive been trying to find some way of doing this for ages but i have is a shell script that activates a python search and there it no tab completion. more familliar with tcsh at the moment but i'm a newbe.
i was trying to make an easy way to browse to a list of working directories.
... (0 Replies)
Discussion started by: jvan
0 Replies
9. Shell Programming and Scripting
Hi
Can anyone please help with the following script I need - .ksh preferably?
I have external disks attached to a system that I have to label and then run the dd command on all external disk found.
I have kicked off the dd command as follows manually to see what its output is like first... (1 Reply)
Discussion started by: angusyoung
1 Replies
10. Shell Programming and Scripting
I am defining an awk function (Solaris v8 ksh) of:
function firstletter {
echo "$line" | awk '{get=substr($1,1,1);print get}' | read FL
}
I am starting a wile loop with a:
for line in `cat inputfile.lst`
When I call the function from within the for loop it works great fine. From within... (4 Replies)
Discussion started by: gozer13
4 Replies