Search Results

Search: Posts Made By: palsevlohit_123
3,103
Posted By palsevlohit_123
Only the scp script is not going to help. If...
Only the scp script is not going to help.

If you do the automate (ssh-keygen) login, then scp will be automated/more useful.

How it going to help u?
how frequently this will be used?
what OS...
2,673
Posted By palsevlohit_123
Before making the old -> new, put a conditional...
Before making the old -> new, put a conditional check for the input with a counter.

1. use something like below for the validation
echo "asbc123" | tr -dc '[:alpha:]' #if something return...
4,236
Posted By palsevlohit_123
echo "12.12.52.125.in-addr.arpa name =...
echo "12.12.52.125.in-addr.arpa name = hostname.domain.main.gov" | awk -F"="
'{print $2}'
931
Posted By palsevlohit_123
Try this out... input.txt file should have your...
Try this out... input.txt file should have your input values.

FYI: this can be done little easier in awk too. but for understanding unix script will be better I think.



while read line...
1,774
Posted By palsevlohit_123
Considering the input files are "*.txt" and the...
Considering the input files are "*.txt" and the output will be generated with a new file as "filename.txt.new".

The below code will search for files from current position recursively. if you want...
115,675
Posted By palsevlohit_123
file <<f1.txt>> will have the data > cat...
file <<f1.txt>> will have the data

> cat f1.txt
abc 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
abc 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
tas 3420 3562 2123 1343 2176 7654...
3,642
Posted By palsevlohit_123
awk '{printf "%s,%s\n",$0,FILENAME}' *.dat...
awk '{printf "%s,%s\n",$0,FILENAME}' *.dat >new_filename
Showing results 1 to 7 of 7

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