I have been working on this problem, but could only get so far. I have a file that looks like this
I would like after each instance of the word 'cat' to have an incrementing numerical label.
I would like my end file to look like this
so far i have tried this
which places #1 & #2 after the first cat, and ignores the rest.
I then tried this
which was even more useless as it just placed a 1 at the end of my string. If anyone has any suggestions or tips to put me in the right direction i would very much appreciate it.
Hi all,
I have a EFI disk and it is use in zfs pool.
partition> p
Volume: rpool
Current partition table (original):
Total disk sectors available: 1172107117 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 usr wm ... (8 Replies)
Greetings!
My first PHP question; and, no doubt, a "no-brainer" for the initiated :)
The question centers around the proper syntax for input field labeling. The snippet which puzzles me (and the candidate which I wish to modify) goes like this:<?php _e('Hello World'); ?>:<br />What I'd like... (0 Replies)
friends that way I can validate that the value is numeric taken
instance
var = 12re
if var = numeric then a
echo "Numerical
else
echo "not mumerico"
fi
edit by bakunin: please use CODE-tags for code, data and terminal output (yourself). (9 Replies)
Say for example I have a list of numbers..
5
10
13
48
1
could I use grep to show only those numbers that are above 10? For various reasons I can only use grep... not awk or sed etc. (7 Replies)
Hi, All,
I want to calculate a specific value of a Gaussian distribution, say the mean is a=3, variance is b=5, the indepentent variable is x=2, how could I get the y which is the Gaussian distribution value of x.
Thanks,
Jenny (1 Reply)
First post :) ...
Here is a script for automatic labeling of previously unlabeled disks.
Other methods exist (format -f cmd_file), but I like this because it's all in one place.
#!/bin/ksh
#----------------------
# format_label
# Automatic labeling of previously unlabeled disks
#... (1 Reply)
I'm tryning to do something like this,
I have this file:
spaces12tabgoodbye
spaces3tabhello
I want to copy to another file the lines that have the number above 10...
I thought using sort -rn but I don't know how to discard the lines that have the number below 10.
Any idea?
Thanks (3 Replies)