hi I want to write a script, while using the SED editor, to output the text, in this case a variable, to the result file but highlighted it in bold, is it possible to do that? can you tell me how?
eg.
I have a text file in which I have something like this-
10.2.57.44 56538154 3028
120.149.20.197 28909678 3166
10.90.158.161 869126135 6025
In that text file, I have around 1,000,000 rows exactly as above. I am working in SunOS environment. I needed a way to remove everything from that text file leaving only IP Address (first column in the above text file is IP Address).
Hi Gurus,
I am working on a script that sends a text file attachment on mail from unix server to my widows outlook mail box.
When i see the text file in UNIX it is perfectly formatted but when i open the same file in the mail, it looks weird as the next line is added to the same line.
For example, in unix the file looks like,
Code:
ABC#DEF
GHI#JKL
MNO#PQR
But the mail attachment looks lik
Hi All,
when i ftp the file from windows machine to unix server the record count in the file is decreased by 1.
example: Say a text file has three lines in it and when you place this file in unix server from your local machine and run a below command
cat filename | wc -l
the output is showing as 2
but when you create a same file and same lines in unix machine directly it will show r
Dear ALL,
How to remove junk charecter ^M from unix file i am using sun solaris unix.
I already tried few commands
Code:
:%s/^M//g
:%s/r//g
but it didnt helped me.
Any help appriciated.
Thanks
Ripudaman
Moderator's Comments:
Please view this code tag video for how to use code tags wh
Hi All,
My requirement is to remove the more than 60 days files from Archive folder, so prepared this command.
Code:
for files in `find /abc/Archive/<file_name_25032012.dat> -type f -mtime 61|xargs ls -lrt`
do
rm -f $files
done
I tested this command in both unix and informatica.
In unix if files are exists on this date then it's identifying files and removing else it's removing
Hi Team,
I created one file like tst.pl, it contains
Code:
#!/usr/bin/perl
use Spreadsheet::ParseExcel;
During execution it's showing error like use: command not found.
Pleast let me suggest how to use this perl menthods in Unix.
Thanks in Advance,
Reards,
Harris
Hi,
Am having a file. I checked that file format by the following command
Code:
file filename
Output is
Code:
filename: data
So the file is data format file
Am trying to view that file so i have used some commands like cat,more so on but it showing the contents like compressed form(full of Symbols).
hi,
i have a directory at
Code:
/path/unix
with the following files
Code:
1.txt
2.txt
3.txt
4.txt
I want to make another file called
Code:
filenames.txt
at a different location called /path/home.