Search Results

Search: Posts Made By: shekhar_v4
2,636
Posted By shekhar_v4
Thanks shubhendu. ur code working pefectly
Thanks shubhendu. ur code working pefectly
2,636
Posted By shekhar_v4
Can you give the code using sed
Can you give the code using sed
2,636
Posted By shekhar_v4
Deleting lines ending with . from a file
HI

I'm looking to delete lines ending with .tk from below data file
---------
abc.tk
mgm.tk
dtk
mgmstk
------

I have written below code
----
sed '/.tk *$/d' dat_file.txt > temp.txt...
3,221
Posted By shekhar_v4
I tried with the below command grep -v -f...
I tried with the below command

grep -v -f str.txt list.txt

Its not working, saying grep usage not allowed with -f.


Is there any other way to acheive the task.


Thanks,
Shekhar
3,221
Posted By shekhar_v4
Hi Franklin, Can you tell me the syntax to...
Hi Franklin,

Can you tell me the syntax to use grep with -v & -f. I have strings to be matched in a file.
3,221
Posted By shekhar_v4
Deleting multiple lines from file
Hi,

I have 10 different strings. I have to delete the whole line matching with any one string.

I can use sed like below

sed '/$keyword1/d' fileList.txt > temp_fileList.txt
sed...
34,341
Posted By shekhar_v4
Hi franklin, Its giving sysntax error. ...
Hi franklin,

Its giving sysntax error.


awk: syntax error near line 1
awk: bailing out near line 1


Thanks.
34,341
Posted By shekhar_v4
Comparing 2 files and return the unique lines in first file
Hi,

I have 2 files

file1
********
01-05-09|java.xls|
02-05-08|c.txt|
08-01-09|perl.txt|
01-01-09|oracle.txt|
********

file2
********
01-02-09|windows.xls|
02-05-08|c.txt|...
2,399
Posted By shekhar_v4
Hi, Its giving output as 01-20-09 |...
Hi,

Its giving output as

01-20-09 | ABC Valuation-2009.xls|

Can you make it to

01-20-09|ABC Valuation-2009.xls|


Thanks.
2,399
Posted By shekhar_v4
Hi, Its making output to ...
Hi,

Its making output to

01-20-09|DEF|GHI|Equation-2009.xls|

But I need in the format of

01-20-09| DEF GHI Equation-2009.xls|

Can you please give the script.

Thanks.
2,399
Posted By shekhar_v4
Script for data formatting
Hi

I have to convert the data in a file

*******
01-20-09 11:14AM 60928 ABC Valuation-2009.xls
01-20-09 11:16AM 55808 DEF GHI Equation-2009.xls
01-20-09 ...
7,488
Posted By shekhar_v4
Hi, I'm using the first approach fetching...
Hi,

I'm using the first approach fetching filenames and then determining files which I need to fetch.

I'm connected to the FTP and by using ls -l listing the filenames to local file. And then...
7,488
Posted By shekhar_v4
Hi, As per yor suggestion I'm trying to...
Hi,

As per yor suggestion I'm trying to download the list of files to text file.
Here I'm not able to output the list to text file when using below command

ls -l remote_directory local_file
...
7,488
Posted By shekhar_v4
Problem in Downloading one day old files from FTP site
HI,

I'm downloading one day old files from ftp site.

Below is my script
----------------------------

printf "open $HOST \n" > ftp.cmd
printf "user $USER $PASSWD\n" >> ftp.cmd
printf...
1,844
Posted By shekhar_v4
Renaming Files (Multiple files)
Hi,

I have a directory with files names like ABC20090101AXY.txt, ABC20090102BZ.txt,ABC20090101COF.txt etc. The digits in the filenames represent the date. I want to rename the files to AXY.txt,...
3,664
Posted By shekhar_v4
Renaming multiple files
hi I have a directory with files names like ABC20090101AXY.txt, ABC20090102BZ.txt,ABC20090101COF.txt etc. The digits in the filenames represent the date. I want to rename the files to AXY.txt, BZ.txt...
Showing results 1 to 16 of 16

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