Search Results

Search: Posts Made By: eskay
2,789
Posted By eskay
It worked with a Python script I found online....
It worked with a Python script I found online. Thank you all
2,789
Posted By eskay
Executed: ls -l /etc/services Reply=0 Output...
Executed: ls -l /etc/services
Reply=0
Output from command ====>
-rw-r--r-- 1 root root 646199 Feb 6 13:33 /etc/services
2,789
Posted By eskay
FTP file with a different port
I am using below code to ftp file and it errors out saying Servname not supported for ai_socktype ... if I do not use port number 2020 then it is not connected

#!/bin/sh
USER=$1
PASSWD=$2...
1,995
Posted By eskay
But with iconv function Ñ is converted to N.. but...
But with iconv function Ñ is converted to N.. but I need to add a space at the end as it is a multi-byte character to not change the length. Is it possible?
1,995
Posted By eskay
UTF-8 Unicode text, with very long lines
UTF-8 Unicode text, with very long lines
1,995
Posted By eskay
Unicode Characters in Fixed Length file
I have a requirement to remove all non-ascii characters from a fixed length file. I used the below command which is removing special characters but somehow the total record length is being truncated...
4,832
Posted By eskay
Rename File Name with Special Characters
I am trying to rename files with spaces and other characters and not able to be successful.

FileNames:
UPLOAD REFERENCE.xls
UPLOAD MASS REFERENCE.XLS




find /UPLOAD REFERENCE/ -depth...
4,889
Posted By eskay
Encrypt and Decrypt a File with Password
Hello,

I have few files on unix which are payroll related and I need them to encrypt with password so others wouldn't see the data. I use ETL tool and would like to know the unix command that does...
1,872
Posted By eskay
Remove characters and replace with space
tr -cd '\11\12\15\40-\176' < file-with-binary-chars > clean-file

This removes special characters but how can I replace it with space
4,240
Posted By eskay
How do I give the date? find /data/ -type f...
How do I give the date?

find /data/ -type f -newer 11042016103500

Files are like

1.5M (1612002) Fri Nov 04 10:33:32 CDT 2016 887.txt
1.5M (1612002) Fri Nov 04 10:33:32 CDT 2016 889.txt ...
4,240
Posted By eskay
How to move files older than certain time?
If there are 100 files created in a directory /data/ today from 2:00 AM to 10:00 AM

I need to move files older than 3:00 AM to a new directory /hold/

How to do that?

Also, if I have to move...
2,874
Posted By eskay
Thanks for your inputs Dummy file didn't...
Thanks for your inputs

Dummy file didn't work either

---------- Post updated at 09:40 AM ---------- Previous update was at 01:07 AM ----------

Posted question in stack exchange and got this...
2,874
Posted By eskay
We does use UNIX commands If you can tell me...
We does use UNIX commands

If you can tell me other way to do the task I can try and let you know.

If you search my posts before I wrote here many times for support and everyone suggested a lot...
2,874
Posted By eskay
I use an ETL tool which is installed on Linux but...
I use an ETL tool which is installed on Linux but we have a command stage which will let us use one line unix commands.



type cat

output

cat is /bin/cat

ls -l /a/file[1-4].txt...
2,874
Posted By eskay
Appending multiple files
I am trying to append multiple files in a directory



cat /a/file1.txt /a/file2.txt /a/file3.txt /a/file4.txt > /a/file.txt



Except file2 every other file is appending.

I interchanged...
1,664
Posted By eskay
Thanks MadeInGermany I have tried something...
Thanks MadeInGermany

I have tried something like


ls /data/abc/txt | awk '#ZENCO/{x="#ZENCO"++i;}{print > x;}'


I found the code online and didn't work well.

My requirement is I need...
1,664
Posted By eskay
The output I need is 3 4 5 6
The output I need is

3
4
5
6
1,664
Posted By eskay
Sorry, ls is not part of data. It's just...
Sorry, ls is not part of data.

It's just path where file exist.

---------- Post updated at 04:18 PM ---------- Previous update was at 04:15 PM ----------

So, if I need lines from first...
1,664
Posted By eskay
Reading between a repeated string
I have a requirement where I have to read the lines between a repeated string

FileName: abc.txt


ls /data/abc.txt

1
2
#ZENCO
3
4
5
6
#ZENCO
11
213
454
7
#ZENCO
1,505
Posted By eskay
Copy Files From a big list
Requirement:

When I do ls -ltr /home/data/orders I get a huge list of files, I need to copy that last 50 to another directory say /home/work/ later, I will do my ETL process and then again I...
2,092
Posted By eskay
the list is sorted but not always sure
the list is sorted but not always sure
2,092
Posted By eskay
Thank you! Will try this and let know
Thank you! Will try this and let know
2,092
Posted By eskay
Okay what is the command for file, I can move...
Okay what is the command for file, I can move those into file

/home/data/orders.txt
2,092
Posted By eskay
in a directory /home/date/orders/
in a directory

/home/date/orders/
2,092
Posted By eskay
List files after a certain filename
Requirement:

I need to ls all files based on date timestamp after a trigger file

In the below example, I need to pull only files uploaded after orders.bmk by date timestamp ascending.

...
Showing results 1 to 25 of 51

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