Search Results

Search: Posts Made By: tarun_agrawal
3,655
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,063
Posted By tarun_agrawal
try this ls -lrtd * | grep "^d"
try this


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


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


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


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


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


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


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

find . -print


or with du


du -a | cut -f2
4,943
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.
4,943
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,123
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,516
Posted By tarun_agrawal
sed '/N\/A/d' filename | awk '{print $1}'
sed '/N\/A/d' filename | awk '{print $1}'
3,523
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,511
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,568
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...
2,980
Posted By tarun_agrawal
try this paste -d "|" file1 file2 |...
try this



paste -d "|" file1 file2 | sed 's/|/\n/g' | tail -n +2
14,477
Posted By tarun_agrawal
cat filename.txt | xargs -n3 | awk '{print $NF}'
cat filename.txt | xargs -n3 | awk '{print $NF}'
3,374
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,621
Posted By tarun_agrawal
try this v="$( egrep -vi...
try this


v="$( egrep -vi 'sort|group|shft' $list)"
2,057
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,083
Posted By tarun_agrawal
try this awk -F"|" -va="\"" '{print $1...
try this


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


sed '/\*\|ORA/d' filename
17,291
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 01:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy