Search Results

Search: Posts Made By: sumoka
6,564
Posted By Yoda
Generalized:- awk -F'[\|,]' ' { f=3;...
Generalized:-
awk -F'[\|,]' ' { f=3; s=(NF/2)+2; while(s<=NF) { printf "%s|%s|%s|%s\n",$1,$2,$f,$s; f++;s++; } } ' infile
8,863
Posted By penchal_boddu
HI, sort filename | uniq -c | awk ' $1 > 1 {...
HI,

sort filename | uniq -c | awk ' $1 > 1 { print $2}'

Thanks
Penchal
6,396
Posted By Rksiva
Try this, it will check only the files having...
Try this, it will check only the files having permissions and we can also avoid the errors.

find . -type f -perm 666 -exec grep "pattern" {} \;

Change the permission, as what ever you want.
5,139
Posted By Scott
Hi. Not sure why you are still using echo,...
Hi.

Not sure why you are still using echo, when it should work fine using printf!:

#!/bin/ksh

export delm=`printf "\t"`

cat <<!
SELECT
COALESCE(TRIM(CAST(col1 AS VARCHAR(10))),'')...
8,497
Posted By Corona688
Because it usually doesn't need to care about...
Because it usually doesn't need to care about line boundaries. Stopping in the middle of a line won't make it "binary". (though cat without parameters ought to be binary-safe.) What blocks it does...
8,497
Posted By drl
Hi. Along this line, here is something...
Hi.

Along this line, here is something similar to an exercise I usually had students do:
#!/usr/bin/env bash

# @(#) s1 Demonstrate cat copying a system executable file.

# Utility functions:...
8,497
Posted By Corona688
Not so much "fine" as "negligible". Correct. ...
Not so much "fine" as "negligible". Correct. It's a bad habit in general -- test data tends to be small so the problem isn't apparent, only when you make it do real work will you run into trouble.
24,908
Posted By felipe.vinturin
3 usefull links about sed: - sed - Wikipedia,...
3 usefull links about sed:
- sed - Wikipedia, the free encyclopedia (http://en.wikipedia.org/wiki/Sed)
- sed_tutorial (http://www.selectorweb.com/sed_tutorial.html)
- Using sed...
Showing results 1 to 8 of 8

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