10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Input:
ak=70&cat15481=lot=6991901">Kaschau (1820-1840)
ak=7078&cat15482=lot=70121">Principauté (1940-1993)
ak=709&cat=lot15484=70183944">Arubas (4543-5043)Output:
70 15481 6991901
7078 15482 70121
709 15484 70183944 (11 Replies)
Discussion started by: sdf
11 Replies
2. Shell Programming and Scripting
Hello all,
I have a data like this:
X:04252 X:05524 X:04176
X:05509 X:05524 X:04674-
X:1662912 X:10181
X:16491 X:05506
X:05216- X:05488
X:46872 X:08471
X:04834 X:30170
The except result is like this:
X:04252 X:05524 X:04176
X:05509 X:05524 X:04674
X:16629 X:10181... (3 Replies)
Discussion started by: yhkoo
3 Replies
3. UNIX for Dummies Questions & Answers
After spending sometime playing around with my script I just cannot get it to do what I want. So I decided to ask. My file looks something like this:
I am using the following code to extract sequences that contain dashes
awk '/^>/{id=$0;next}{if (match($1,"-")) print id "\n" $0}' infile
... (17 Replies)
Discussion started by: Xterra
17 Replies
4. Shell Programming and Scripting
Hi,
I have this header on a script:
echo "*************************************"
How can I print 1000 "*" characters without to put them on the echo command? Understand?
THIS IS AN EXAMPLE WHAT I NEED:
print "1000 *"
Or is possible to print or echo "*" characters until they... (8 Replies)
Discussion started by: iga3725
8 Replies
5. Shell Programming and Scripting
Hi,
i want to use awk to print the first 6 characters of a variable
awk -F"|" '$3>0 { print $3 }' z00.unl > z001.unl
but $3= 7 digits
and i just want to print the first 6 digits.
eg 1005779 but i want to print only 100577 (3 Replies)
Discussion started by: dealerso
3 Replies
6. UNIX for Dummies Questions & Answers
Assuming one does not have such luxuries as bash, zsh, jot, rs, perl, etc. what is the most elegant way to print out a formatted date series like this:
01-01-2010
01-02-2010
01-03-2010
...
02-01-2010
02-02-2010
...
Can I accomplish this with just basic shell builtins and seq, or... (3 Replies)
Discussion started by: uiop44
3 Replies
7. Shell Programming and Scripting
greetings citizens of Unix.com
I am perplexed with an issue.
The issue is trying to print the last 5 characters of a string in PERL.
Below are demonstrated my daft attempts at performing the forementioned task.
$row =~ m/^.*(.....)\s$/;
$row =~ m/\w{5}\s*$/i;$row =~... (3 Replies)
Discussion started by: simply seth
3 Replies
8. Shell Programming and Scripting
Hey,
I'm trying to print the first four characters of the hostname of a computer.
I can get it from using:
hostname -s | sed 's/...........$//'"
but this is when I know how many characters are in the computer name.
I dont understand why some like:
hostname -s | sed '/..../p'
wont... (7 Replies)
Discussion started by: yxian
7 Replies
9. Shell Programming and Scripting
Hi,
How can I split the characters in a word?
For Eg:
If my input is:
command
my output should be:
c
o
m
m
a
n
d
Please help me in doing it so. (5 Replies)
Discussion started by: chella
5 Replies
10. AIX
Anyone has experience on this?
The additional language has been smitty added and enabled. But it still prints garbage. What else needs to be done?
Printer is a HP laserjet 4350. (0 Replies)
Discussion started by: ivanwee
0 Replies