Search Results

Search: Posts Made By: aaditya321
4,622
Posted By rovf
Look at the man page of sftp: It has an option...
Look at the man page of sftp: It has an option (-b) for providing a batch file with the FTP commands to be executed.
4,622
Posted By RudiC
For us to avoid blindly guessing, please post...
For us to avoid blindly guessing, please post what OS you deploy and which tools you have at your fingertips, like ftp, sftp/scp, rsync, others...
4,622
Posted By Chubler_XL
Is this to run as a background job or do you just...
Is this to run as a background job or do you just want to run the transfer from the command line. The reason is that if you need to run stuff in the background (without someone at the keyboard to...
4,622
Posted By RudiC
You could create a "batch file" containing only...
You could create a "batch file" containing only the non-zero files on X and then use this to sftp them to Y.
918
Posted By Don Cragun
I don't get it. You say a camp-id keyword starts...
I don't get it. You say a camp-id keyword starts with C, but all of your examples start with 1-C. Then you say the task-id (which starts from T, but all of your examples start with 1-T and 1 of...
1,143
Posted By RavinderSingh13
Hello aaditya321, If your question is to...
Hello aaditya321,

If your question is to get explaination of above code then following is same.
Let me know if you have any other queries with complete input and required output.
...
1,143
Posted By RavinderSingh13
Hello aaditya321, Could you please use...
Hello aaditya321,

Could you please use following code and let me know if this helps.

awk '{sub(/\-.*/,X,$NF);A[$NF]++} END{for(i in A){print i OFS A[i]}}' Input_file


Output will be as...
1,767
Posted By Scrutinizer
Ok any filename ? Are they in a file? How about...
Ok any filename ? Are they in a file? How about just picking the first one?
awk -F- '!A[$1]++' file
Output:
sms_task_id_01-12345.csv
sms_task_id_02-12345.csv
sms_task_id_03-12345.csv
1,767
Posted By Scrutinizer
What's missing is why / on what basis you want to...
What's missing is why / on what basis you want to select a file for a task id. For example for sms_task_id_01 it is the forst one, for sms_task_id_02 and 03 it is the middle one. In aother words,...
1,651
Posted By RavinderSingh13
Hello aditya321, If I understood...
Hello aditya321,

If I understood requirement correctly you can use following command to check records in tar file.

tar --list --file=TEST1.tar
Syntax is tar --list --file=archive-name

...
3,070
Posted By RavinderSingh13
Hello Aditya121, Could you please try...
Hello Aditya121,

Could you please try following command for same.

find -maxdepth 1 -type f | awk '{sub(/\.\//,X,$0);print "tar -cvf " $0".tar " $0}'


If you are happy with the results of...
1,776
Posted By vbe
Just do the same but putting all the commands in...
Just do the same but putting all the commands in a file ( script ) that you make executable chmod +x ... and try executing it by calling it:
e.g. ./myscript then try to add positional...
1,172
Posted By RavinderSingh13
Hello Aditya, Here are some examples for...
Hello Aditya,

Here are some examples for basic sed operations. Let's say we have an input file as follows.

cat check_pipie
1|John|32|US|
2|Matt|35|UK
3|Rex|36|EU|


Then some of the...
1,172
Posted By RudiC
sed 's/\([a-z]*\) \1/\1/' is a basic (obsolete)...
sed 's/\([a-z]*\) \1/\1/' is a basic (obsolete) regular expression, which replaces the first occurrence of zero or more lower case chars (lets call it PAT1) followed by a space followed by PAT1...
1,972
Posted By junior-helper
s sed command: substitute Ram regexp Shyam...
s sed command: substitute
Ram regexp
Shyam replacement
g sed pattern flag: global substitution
-i sed command line option: "in place" editing

In other words, substitute every occurrence of...
1,972
Posted By RavinderSingh13
Thank you Aditya, you can refer man sed which is...
Thank you Aditya, you can refer man sed which is the best. Following links are also having good knowledge for sed too.
Hope this helps you.

Sed - An Introduction and Tutorial...
Showing results 1 to 16 of 16

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