Search Results

Search: Posts Made By: tarun_agrawal
4,473
Posted By tarun_agrawal
Please don't give just an example data
Please don't give just an example data. This is a form to help people who really seeking for help. And if, you are looking for any answer please give exact data to help you out. Thanks.
2,456
Posted By tarun_agrawal
try this ls -lrtd * | grep "^d"
try this


ls -lrtd * | grep "^d"
4,473
Posted By tarun_agrawal
with sed sed ' /[^[:digit:]]$/ { N ...
with sed


sed '
/[^[:digit:]]$/ {
N
s/\n//g
}' filename
2,177
Posted By tarun_agrawal
try this as well sed...
try this as well


sed 's/^[^[:digit:]].*/>>/g'
9,440
Posted By tarun_agrawal
try du | cut -f2
try


du | cut -f2
8,978
Posted By tarun_agrawal
sed -n ' /^[[:digit:]]/ { p n ...
sed -n '
/^[[:digit:]]/ {
p
n
/^[[:digit:]]/ {
i \
XXXXXX
p}
}
/^[^[:digit:]]/ p' filename
26,749
Posted By tarun_agrawal
try this awk...
try this


awk '{a=$0;gsub(/[^[:alnum:]]/,"_");print "mv " a " " $0;}' filename | sh
2,072
Posted By tarun_agrawal
try this awk...
try this


awk 'BEGIN{IGNORECASE=1}/peter/{gsub(/peter/,"Peter");print}' filename
2,859
Posted By tarun_agrawal
try xargs xargs -n 10 < filename
try xargs


xargs -n 10 < filename
17,386
Posted By tarun_agrawal
with find find . -print or with du ...
with find

find . -print


or with du


du -a | cut -f2
5,891
Posted By tarun_agrawal
1. length > 20 -- checks line length 2. ...
1. length > 20 -- checks line length
2. $0=substr($0,0,20) -- if step1 is true then do this action
set line to first 20 characters
3. Print the complete line.
5,891
Posted By tarun_agrawal
Might I'm late but with awk awk '...
Might I'm late but with awk


awk ' length > 20 {$0=substr($0,0,20); } 1' filename
2,315
Posted By tarun_agrawal
try this awk 'NR==FNR{a[$0];next;}...
try this


awk 'NR==FNR{a[$0];next;} {for(i in a) {b="EGLV"i;gsub(b,"CHNJ"i,$0)}}1 ' file1 file2
1,683
Posted By tarun_agrawal
sed '/N\/A/d' filename | awk '{print $1}'
sed '/N\/A/d' filename | awk '{print $1}'
4,023
Posted By tarun_agrawal
find . -type f -name "*lay" -exec grep -q "$old"...
find . -type f -name "*lay" -exec grep -q "$old" {} \; -exec sed -i "s|$old|$new|g" {} \;
2,686
Posted By tarun_agrawal
tr -d "@" | wc -m or cat...
tr -d "@" | wc -m


or


cat abinaryfile | sed -e s/@@//g;s/@$// | wc -m
1,712
Posted By tarun_agrawal
with sed sed 's/.*\*\*\*\(.*\)/\1/g'...
with sed


sed 's/.*\*\*\*\(.*\)/\1/g' filename.txt


---------- Post updated at 01:41 PM ---------- Previous update was at 01:39 PM ----------

with awk


awk -vFS="\*\*\*" '{print...
3,590
Posted By tarun_agrawal
try this paste -d "|" file1 file2 |...
try this



paste -d "|" file1 file2 | sed 's/|/\n/g' | tail -n +2
14,883
Posted By tarun_agrawal
cat filename.txt | xargs -n3 | awk '{print $NF}'
cat filename.txt | xargs -n3 | awk '{print $NF}'
3,733
Posted By tarun_agrawal
try to explore command xmllint * in...
try to explore command

xmllint

* in Linux it is working perfect, pls check your OS before looking into it.
2,980
Posted By tarun_agrawal
try this v="$( egrep -vi...
try this


v="$( egrep -vi 'sort|group|shft' $list)"
2,248
Posted By tarun_agrawal
try this #! /bin/bash ...
try this


#! /bin/bash

filea=/blah1/blah2/blah3
fileb=/blah1/blah2/blah3/blah4
filec=/blah1/blah2/blah3/blah4/blah5
for i in $filea $fileb $filec
do
temp=${i//\//\\v}
echo -e "$temp"...
5,538
Posted By tarun_agrawal
try this awk -F"|" -va="\"" '{print $1...
try this


awk -F"|" -va="\"" '{print $1 "|" a "#GT_properties_xyz" a}' filename
2,211
Posted By tarun_agrawal
with sed.. sed '/\*\|ORA/d' filename
with sed..


sed '/\*\|ORA/d' filename
18,080
Posted By tarun_agrawal
with awk awk '{sub(/\//,"/newplace/");...
with awk


awk '{sub(/\//,"/newplace/"); print}' filename
Showing results 1 to 25 of 86

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