Forum: Shell Programming and Scripting
08-22-2017
|
Replies: 3
Views: 609
|
Forum: Shell Programming and Scripting
08-16-2017
|
Replies: 11
Views: 3,538
|
Forum: Shell Programming and Scripting
08-16-2017
|
Replies: 3
Views: 405
Not tested..
this script will check the...
Not tested..
this script will check the directory size is in GB and if its more than 50GB then it get the corresponding userid in for loop. implement your notification method in for loop
...
|
Forum: Shell Programming and Scripting
08-08-2017
|
Replies: 12
Views: 802
why dont you just change Mr. to Mr# using sed...
why dont you just change Mr. to Mr# using sed command then pass the file to awk command. later.. change Mr# to Mr.
can you give the sample input file and expected output file
sed 's/Mr\./Mr#/g'...
|
Forum: UNIX for Beginners Questions & Answers
03-24-2017
|
Replies: 3
Views: 305
|
Forum: Shell Programming and Scripting
01-05-2017
|
Replies: 6
Views: 465
ha.. your script is big and not in readable...
ha.. your script is big and not in readable format.. sorry for that...
can you post sample input contents and the logic you are using and the expected output
how many files inside your <path> ?...
|
Forum: Shell Programming and Scripting
01-05-2017
|
Replies: 9
Views: 664
paste file1 file2
$ awk...
paste file1 file2
$ awk 'NR==FNR{a[NR]=$0;next}{print a[FNR],$0}' file1 file2
1 text1
2 text2
3 text3
4 text4
|
Forum: Shell Programming and Scripting
12-30-2016
|
Replies: 4
Views: 299
based on your given input and output.
...
based on your given input and output.
bash-4.1$ grep -o "<tr.*/tr>" a.txt
<tr><td>text </td> </tr>
bash-4.1$ sed "s#.*<tr#<tr#;s#/tr>.*#/tr>#" a.txt
<tr><td>text </td> </tr>
|
Forum: Shell Programming and Scripting
12-27-2016
|
Replies: 11
Views: 750
|
Forum: What is on Your Mind?
12-26-2016
|
Replies: 15
Views: 1,135
|
Forum: What is on Your Mind?
12-25-2016
|
Replies: 3
Views: 390
|
Forum: Shell Programming and Scripting
12-14-2016
|
Replies: 1
Views: 376
|
Forum: Shell Programming and Scripting
12-14-2016
|
Replies: 8
Views: 559
$ awk -F\| '$1~/^[0-9]/{printf("\n%s...
$ awk -F\| '$1~/^[0-9]/{printf("\n%s ",$0);next}{printf("%s",$0)}END{print "\n"}' input.txt
113321|107|E|1|828|20|4032832|EL POETA|VILLALOBOS MIJARES PABLO NEPTALI RICARDO...
|
Forum: Shell Programming and Scripting
12-12-2016
|
Replies: 2
Views: 293
|
Forum: Shell Programming and Scripting
12-08-2016
|
Replies: 10
Views: 553
|
Forum: Shell Programming and Scripting
12-08-2016
|
Replies: 10
Views: 553
|
Forum: Shell Programming and Scripting
12-08-2016
|
Replies: 2
Views: 459
|
Forum: Shell Programming and Scripting
12-08-2016
|
Replies: 4
Views: 325
its wildcard
refer more details from this...
its wildcard
refer more details from this link (http://www.robelle.com/smugbook/wildcard.html)
? any single character, except a leading dot
* zero or more characters, except a leading dot
[...
|
Forum: Shell Programming and Scripting
12-08-2016
|
Replies: 1
Views: 428
|
Forum: Shell Programming and Scripting
12-08-2016
|
Replies: 10
Views: 553
|
Forum: Shell Programming and Scripting
12-07-2016
|
Replies: 10
Views: 553
|
Forum: Shell Programming and Scripting
12-02-2016
|
Replies: 4
Views: 457
|
Forum: Shell Programming and Scripting
12-02-2016
|
Replies: 2
Views: 297
try this...
awk...
try this...
awk 'NF<2{$0="NAME;"$0"\tfailed"}1' incomplete_case_list
aname val
NAME;r'(1,) 3.28584
NAME;r'(2,) failed
NAME;r'(3,) 6.13003
NAME;r'(4,) 4.18037
NAME;r'(5,) ...
|
Forum: Shell Programming and Scripting
11-29-2016
|
Replies: 3
Views: 299
|
Forum: Shell Programming and Scripting
11-29-2016
|
Replies: 6
Views: 1,756
|