Sponsored Content
Full Discussion: awk+cat
Top Forums UNIX for Dummies Questions & Answers awk+cat Post 302566416 by vbe on Thursday 20th of October 2011 10:17:06 AM
Old 10-20-2011
Code:
ant:/home/vbe $ uname -a
HP-UX ant B.11.11 U 9000/800 168921511 unlimited-user license
ant:/home/vbe $ ll -tr  i*.txt| awk '{print $6, $7, $8, $9}'| while read titi tata toto; do cat $toto; done
...
o - bottom line - only /etc/inetd.conf changes require inetd -c. inetd.sec changes are real-time.
Good catch Darrell.

Rgds,
Jeff
cat: Cannot open 2007: No such file or directory
Class       I  H/W Path  Driver    S/W State H/W Type  Description
===================================================================
processor   0  160       processor CLAIMED   PROCESSOR Processor
processor   1  162       processor CLAIMED   PROCESSOR Processor
processor   2  164       processor CLAIMED   PROCESSOR Processor
processor   3  166       processor CLAIMED   PROCESSOR Processor
cat: Cannot open 2007: No such file or directory
Class       I  H/W Path  Driver    S/W State H/W Type  Description
===================================================================
processor   0  160       processor CLAIMED   PROCESSOR Processor
processor   1  166       processor CLAIMED   PROCESSOR Processor
cat: Cannot open 2007: No such file or directory
Class       I  H/W Path  Driver    S/W State H/W Type  Description
===================================================================
processor   0  33        processor CLAIMED   PROCESSOR Processor
processor   1  97        processor CLAIMED   PROCESSOR Processor
cat: Cannot open 2008: No such file or directory
IF u want to use if-Syntax[ksh],
.
.

What don't you get?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Difference between cat , cat > , cat >> and touch !!!

Hi Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX? Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies

2. Shell Programming and Scripting

cat & awk

Hi there, Can show some hit why i got this error? For eg i have a.txt in which consist of contents as below 1|781494-0015|IV\|I||C|RECHARGE|Success\|V\|\||2007-12-04 02:33:13.000| 2|762405-0405|IV\|I||C|RECHARGE|Success\|V\|\||2007-12-04 02:33:17.000| In fact , i want to perfrom to have... (2 Replies)
Discussion started by: rauphelhunter
2 Replies

3. Shell Programming and Scripting

cat in the command line doesn't match cat in the script

Hello, So I sorted my file as I was supposed to: sort -n -r -k 2 -k 1 file1 | uniq > file2 and when I wrote > cat file2 in the command line, I got what I was expecting, but in the script itself ... sort -n -r -k 2 -k 1 averages | uniq > temp cat file2 It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies

4. UNIX for Dummies Questions & Answers

tr, sed, awk, cat or scripting

I need to change all Newline caracters (\12) to Fieldseparator(\34). tr -A '\12' '\34' <file1> file2 Replace all delete (\177) with Newline (\12) tr -A '\177' '\12' <file2> file3 Put the name of the file first in all rows. awk '{printf "%s\34%s\n", FILENAME,$0} file3 > file4 So far no... (6 Replies)
Discussion started by: MrKlint
6 Replies

5. Shell Programming and Scripting

Understanding Awk and Cat

Hi Guys, I was recently come across some code to hopefully learn a little bit about putting Shell commands into PHP application to run on a Linux server. However, I don't understand the command AT ALL... and was wondering if anyone can interpret it: cat userIDs.dat | awk '{s=s+1; if... (1 Reply)
Discussion started by: jordRiot
1 Replies

6. Shell Programming and Scripting

Using cat and awk.......

Im trying to use cat and awk to calculate the total space, then display it using the print command. But something in my script is not correct? cat | awk '{print$1}' | sort -n | grep -v used | awk '{sum += $1} END { p rint sum;}' ??? Any help would be greatly appreciated!! (10 Replies)
Discussion started by: bigben1220
10 Replies

7. UNIX for Dummies Questions & Answers

How to pass cat file in awk statement?

Hi, I am working on kernel parameters, want to check values under /proc/sys/kernel below I tried for kernel.sem SEMMNS: 4096 cat /proc/sys/kernel/sem | awk '{print $2}' awk '{ if ($2 < 33000) print }' /proc/sys/kernel/sem |awk '{print $2}' 32000 The above... (7 Replies)
Discussion started by: stew
7 Replies

8. Shell Programming and Scripting

Spacing off when files combined using awk or cat

I have 133 .txt files in a directory that I am combining into 1 file. The problem is when I use awk or cat to combine the files I get out put like this: output 85 138662360 KCNT1 86 138662962 KCNT1 82 138657053 KCNT1 83 138657635 KCNT1 95 138646881 KCNT1... (12 Replies)
Discussion started by: cmccabe
12 Replies

9. Shell Programming and Scripting

Need to add prefix using sed or awk from cat the file

I need the use sed or AWK using cat the file Node1 TDEV RW 1035788 TDEV RW 1035788 Server1 TDEV RW 69053 Server2 TDEV RW 69053 TDEV RW 103579 Server3 TDEV RW 69053 server4 RDF1+TDEV RW 69053 RDF1+TDEV RW 517894 RDF1+TDEV RW 621473 server6 TDEV RW 34526 TDEV RW 34526 (22 Replies)
Discussion started by: ranjancom2000
22 Replies
cpu_family(3alleg4)						  Allegro manual					       cpu_family(3alleg4)

NAME
cpu_family - Contains the CPU type. Allegro game programming library. SYNOPSIS
#include <allegro.h> extern int cpu_family; DESCRIPTION
Contains the Intel type, where applicable. Allegro defines the following CPU family types: CPU_FAMILY_UNKNOWN - The type of processor is unknown CPU_FAMILY_I386 - The processor is an Intel-compatible 386 CPU_FAMILY_I486 - The processor is an Intel-compatible 486 CPU_FAMILY_I586 - The processor is a Pentium or equivalent CPU_FAMILY_I686 - The processor is a Pentium Pro, II, III or equivalent CPU_FAMILY_ITANIUM - The processor is an Itanium processor CPU_FAMILY_POWERPC - The processor is a PowerPC processor CPU_FAMILY_EXTENDED - The processor type needs to be read from the cpu_model You can read this variable after you have called check_cpu() (which is automatically called by allegro_init()). SEE ALSO
check_cpu(3alleg4), cpu_vendor(3alleg4), cpu_model(3alleg4), cpu_capabilities(3alleg4), allegro_init(3alleg4) Allegro version 4.4.2 cpu_family(3alleg4)
All times are GMT -4. The time now is 04:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy