Search Results

Search: Posts Made By: reddyr
3,309
Posted By neutronscott
both of these read operations work on the same...
both of these read operations work on the same stdin. you need to assign to a different fd and use that for one of them. the easiest way to do this is to ditch the useless use of cat (uuoc award...
2,060
Posted By Don Cragun
Building on SriniShoo's code, try: awk -F ',' '...
Building on SriniShoo's code, try:
awk -F ',' '
NR == 2 { p=($3 FS $4 FS $5 FS $6 FS $7 FS $8 FS $9 FS $10); a=$0; nsp=p; gsub(/ /, "", nsp)
getline; q=($3 FS $4 FS $5 FS $6 FS $7 FS $8 FS $9...
2,060
Posted By SriniShoo
awk -F ',' ' NR == 2 { p=($3 FS $4 FS $5 FS $6...
awk -F ',' '
NR == 2 { p=($3 FS $4 FS $5 FS $6 FS $7 FS $8 FS $9 FS $10); a=$0;
getline; q=($3 FS $4 FS $5 FS $6 FS $7 FS $8 FS $9 FS $10); b=$0;
getline; r=($3 FS $4 FS $5 FS $6 FS $7 FS $8...
2,863
Posted By RudiC
Should you use a recent bash with extended...
Should you use a recent bash with extended pattern matching, you could try:shopt -s extglob
ls !(*.wmv|*.WMV)
2,863
Posted By bakunin
Use "find": cd /path/to/sourcedir find . !...
Use "find":

cd /path/to/sourcedir
find . ! -name "*.[wW][mM][vV]" -exec cp {} /path/to/targetdir \;

Note that you have to change into the directory first, because "find" will find ./file,...
1,052
Posted By Chubler_XL
You could use awk like this: awk ' ...
You could use awk like this:

awk '
FS==","{ k[$4]=($4 in k? k[$4]"," : "") "/dev/dsk/" $2; next}
$2 in k {
dev=k[$2]
if (sub(",.*",x,dev)) sub(dev",",x,k[$2])
else delete k[$2]
print...
Forum: Red Hat 02-11-2011
4,066
Posted By titanic4u
you can use "sosreport" command to generate a...
you can use "sosreport" command to generate a system report, if it fits your requirement.
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 12:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy