Search Results

Search: Posts Made By: 4walters
2,315
Posted By Don Cragun
Hi dev.devil.1983, Here is a copy of the awk...
Hi dev.devil.1983,
Here is a copy of the awk script with comments...
# Invoke the awk utility with the input field separator set to a comma (-F,)
# and a variable named sq that is set to a string...
23,275
Posted By Yoda
Using awk:- awk 'NR==FNR{A[$1];next}$1 in A'...
Using awk:-
awk 'NR==FNR{A[$1];next}$1 in A' reference.txt data.txt
Using grep (no need to use cat):-
grep -f reference.txt data.txt
1,676
Posted By rdrtx1
try: sed...
try:
sed 's/\([0-9][0-9][0-9][0-9]\)-\([0-9][0-9]\)-\([0-9][0-9]\)/\3-\2-\1/' infile
2,212
Posted By Don Cragun
Unless you had backups of your files before you...
Unless you had backups of your files before you destroyed some of them, they are gone. To avoid the problem in the future, change the script suggested by rdrtx1 to something more like:
#!/bin/bash...
1,550
Posted By Don Cragun
If you were willing to post details about your...
If you were willing to post details about your system and the tiny project for beginners that you need to complete, there would be a good chance that you would get a solution for free.

If you are...
1,840
Posted By Don Cragun
Maybe you mean something more like: #!/bin/ksh ...
Maybe you mean something more like:
#!/bin/ksh
time="${1:-1441678454803}"
sec=$((time % 60))
time=$((time / 60))
min=$((time % 60))
time=$((time / 60))
hrs=$((time % 24))
days=$((time / 24))...
Forum: Linux 03-30-2015
1,869
Posted By Don Cragun
Since you seem to be running as root and are...
Since you seem to be running as root and are getting an EPERM when trying to use chown, I would assume that the file img is from a filesystem that is either mounted:
read-only, or
from a remote...
Showing results 1 to 7 of 7

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