They both have the ethernet network card. I have the cable that runs between them. When I connect them, the netwok icons indicate that connections have been established. However, I cannot access any files. What am I missing?
I want to read in an input file of numbers.
I want the output to give me each unique number found and the count for each number found.
Currently, my script prints all the numbers with the count ascending.
sample output:
1 - 1
1 - 2
1 - 3
2 - 1
2 - 2
2 - 3
2 - 4
3 - 1
3 - 2
What I want is:
1 -...
The record is pipe-delimited.
I want to check if a field is numeric or alpha-numeric.
something like: if ($2 is numeric) { do something; }
Any suggestions?
I want to use awk to insert system date in a pipe-delimited file, so the output looks like:
firstname|lastname|20021203|address
The other fields of records in the file is created by the same awk script.
Thanks for any ideas?
The file is comma delimited.
There are trailing spaces before the next comma.
eg: first name,last name ,address1 ,address2,
How do I remove these trailing spaces before the next comma
so that the output looks as follows?
eg: first name,last name,address1,address2,
I have a pipe-delimited file that has 1 or more leading spaces. Do you know how to remove these leading spaces, using AWK, while I'm proceesing the file?
ex: 987| 234| 2| 567
I wrote an awk script. It executed successfully untill I added quite a few lines of comments (for readability). The awk swcipt is 528 lines long with 17282 characters.
Any idea how I can get successful execution without removing the comments?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.