Search Results

Search: Posts Made By: bishnu.bhatta
56,684
Posted By bishnu.bhatta
Try this...The target file name is same as the...
Try this...The target file name is same as the source file name but the extension will be CSV instead of XLS
#!/usr/bin/perl

use strict;
use Spreadsheet::ParseExcel;

my $sourcename = shift...
1,161
Posted By bishnu.bhatta
Best approach would be to use stream line editor...
Best approach would be to use stream line editor (SED)
cat a1.dat|sed 's/[/_/g' > a2.dat
cat a2.dat|sed 's/]/_/g' > a1.dat
17,658
Posted By bishnu.bhatta
How about this one? simple and easy to understand...
How about this one? simple and easy to understand
cat a1.dat|tr -s ' ' '|'| sed 's/$/|/'
abc|12|34|45|code|
abcdef|451|1|4|code|
ghtyggg|4|56|3|code|
Forum: Filesystems, Disks and Memory 08-06-2009
2,708
Posted By bishnu.bhatta
Regarding File permissions
Hi,

I have a shellscript.I want to protect the source code.

So I gave 711 permission on the file(owner=rwx,group=x,others=x)

but still others are not able to execute it.

Please help me in...
2,672
Posted By bishnu.bhatta
Unix man pages and unix.com
Unix man pages and unix.com
5,554
Posted By bishnu.bhatta
No need to install unix on your system.Get a live...
No need to install unix on your system.Get a live CD.Run it directly from CD
4,349
Posted By bishnu.bhatta
Diff script for 2 files.
Hi all,

I am stuck up in middle of a process.
I have 2 files A and B.
Some lines in A are commented with either // or /* */

But basically content (uncommented portion) of both the files are...
1,706
Posted By bishnu.bhatta
Access permisions issue for directories
I am getting the different accessing permissions for the directories ,for some directories it is drwxr-sr-x, for some other directories it is like drwxr-xr-x.
what is the difference between these 2...
4,371
Posted By bishnu.bhatta
go through the following link and try to analyze...
go through the following link and try to analyze the solutions provided .......


www.student.northpark.edu/pemente/awk/awk1line.txt

Cheers :cool:
7,420
Posted By bishnu.bhatta
thanks anbu23 and ghostdog74 for the...
thanks anbu23 and ghostdog74 for the solutions.....

we need to add a "g" in the solution provided by anbu23

perl -i -ne ' s/search_str/replacement_str/g; print ' file
9,975
Posted By bishnu.bhatta
Hi hagemaro, I think your solution will only...
Hi hagemaro,

I think your solution will only serve the purpose when the word "filesystem" is at the begining.

Please correct if i am wrong.

Cheers
Forum: Open Source 03-26-2007
335,868
Posted By bishnu.bhatta
VI is the best.......
VI is the best.......
7,420
Posted By bishnu.bhatta
I want the updates in the same file......what is...
I want the updates in the same file......what is the -i option in sed used for???
17,369
Posted By bishnu.bhatta
This is the oneliner that will serve your purpose...
This is the oneliner that will serve your purpose

Replace ksh with your shell.....eg.sh,csh,zsh

ls -ltr aa.*2007|awk -f '{"mv "print $8 print $8".gz" }'|ksh


:cool:

Cheers,
Bishnu
7,420
Posted By bishnu.bhatta
Awk/Sed One liner for text replacement
Hi group,

I want to replace the occurance of a particular text in a paragraph.I tried with Sed,but Sed only displays the result on the screen.How can i update the changes in the original file???
...
Showing results 1 to 15 of 15

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